add Hero with links to collections

This commit is contained in:
June 2023-08-13 14:44:02 +02:00
parent 259b38c7aa
commit b643e4b292
3 changed files with 29 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import { Carousel } from 'components/carousel';
import { ThreeItemGrid } from 'components/grid/three-items';
import Hero from 'components/hero';
import Footer from 'components/layout/footer';
import { Suspense } from 'react';
@ -15,6 +16,7 @@ export const metadata = {
export default async function HomePage() {
return (
<>
<Hero />
<ThreeItemGrid />
<Suspense>
<Carousel />

27
components/hero.tsx Normal file
View File

@ -0,0 +1,27 @@
import Link from 'next/link';
import Navbar from './layout/navbar';
export default function Hero() {
return (
<div className="relative min-h-screen">
<video
autoPlay
muted
loop
className="absolute left-0 top-0 z-0 h-full w-full object-cover"
src="/hero.mp4"
></video>
<Navbar />
<Link href="search/blommor">
<div className="font-petrona absolute inset-0 flex h-full w-1/2 items-center justify-center text-5xl text-white">
Blommor
</div>
</Link>
<Link href="search/gront">
<div className="font-petrona absolute inset-0 left-1/2 flex h-full w-1/2 items-center justify-center text-5xl text-white">
Grönt
</div>
</Link>
</div>
);
}

BIN
public/hero.mp4 Normal file

Binary file not shown.