Adding video poster loading animation so user

knows that the background video is coming.

Will likely change the animation.
This commit is contained in:
Caretaker0699 2023-04-18 13:25:07 -07:00
parent 46137cf883
commit 21199b765a
4 changed files with 4 additions and 4 deletions

View File

@ -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 = [

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -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) {