Got rid of the poster attribure and replaced

with the preload attribute so it feels snappier
This commit is contained in:
Caretaker0699 2023-04-20 13:09:40 -07:00
parent f2e387f9d3
commit 641728773a

View File

@ -52,7 +52,7 @@ const Section = ({
muted
loop
autoPlay={isPlaying}
poster="/loading1.gif" // loading animation
preload="metadata"
/>
<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">
@ -61,13 +61,14 @@ const Section = ({
<div className="flex justify-start space-x-4">
<VideoButton videoId={videoId} buttonOneText={buttonOneText} />
{buttonLink && (
<Link
href={buttonLink}
id="ButtonLink" className="px-4 mt-8 mx-5 py-2 text-white "
>
{buttonTwoText}
</Link>
)}
<Link
href={buttonLink}
id="ButtonLink"
className="px-4 mt-8 mx-5 py-2 text-white "
>
{buttonTwoText}
</Link>
)}
</div>
</div>
</div>