mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
add Hero with links to collections
This commit is contained in:
parent
259b38c7aa
commit
b643e4b292
@ -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
27
components/hero.tsx
Normal 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
BIN
public/hero.mp4
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user