Adding video poster loading animation so user
knows that the background video is coming. Will likely change the animation.
This commit is contained in:
parent
46137cf883
commit
21199b765a
@ -1,7 +1,6 @@
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
import React, { useState } from "react";
|
||||
//import Logo from "./Logo";
|
||||
import NavItem from "./nav-item";
|
||||
|
||||
const MENU_LIST = [
|
||||
|
@ -52,6 +52,7 @@ const Section = ({
|
||||
muted
|
||||
loop
|
||||
autoPlay={isPlaying}
|
||||
poster="/loading1.gif" // loading animation
|
||||
/>
|
||||
<div className="relative z-10 flex flex-col items-center justify-center h-full">
|
||||
<div className="relative flex justify-center items-end w-full mb-20">
|
||||
@ -68,4 +69,4 @@ const Section = ({
|
||||
);
|
||||
};
|
||||
|
||||
export default Section;
|
||||
export default Section;
|
||||
|
BIN
public/loading1.gif
Normal file
BIN
public/loading1.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
@ -4,8 +4,8 @@
|
||||
|
||||
:root {
|
||||
--foreground-rgb: 0, 0, 0;
|
||||
--background-start-rgb: 214, 219, 220;
|
||||
--background-end-rgb: 255, 255, 255;
|
||||
--background-start-rgb: 39,40,34;
|
||||
--background-end-rgb:117,113,94;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
Reference in New Issue
Block a user