space-browser / app /page.tsx
DeathDaDev's picture
fix: remove undefined `fetchSpaceRandomly` function calls from `Home` component
9311a44
raw
history blame
1.15 kB
import Image from "next/image";
import CardsSvg from "@/images/cards.svg";
import { fetchFilteredSpaces } from "@/utils/network";
import { SpaceBrowser } from "@/components/shuffler/index";
export default async function Home() {
return (
<main className="flex min-h-screen flex-col items-center justify-start lg:justify-start p-8 pt-16 lg:p-24 lg:pt-44">
<div className="w-full max-w-xl mx-auto grid gap-16 lg:gap-24 grid-cols-1">
<header className="grid grid-cols-1 gap-5">
<h1 className="relative font-sans text-center text-4xl lg:text-7xl font-extrabold max-w-max mx-auto text-transparent bg-clip-text bg-flashy">
Space Shuffler
<Image
src={CardsSvg}
alt="Cards"
width={70}
height={70}
className="w-10 lg:w-14 absolute -right-9 lg:-right-12 -top-5 lg:-top-6 -rotate-6"
/>
</h1>
<h2 className="font-serif text-white/60 text-lg lg:text-2xl text-center">
Find hidden gems from 180k Spaces
</h2>
</header>
<SpaceBrowser />
</div>
</main>
);
}