Esteves Enzo
header subtitle
900465b
raw
history blame
1.52 kB
"use client";
import Image from "next/image";
import HeaderImage from "@/assets/images/header.svg";
import { useInputGeneration } from "@/components/main/hooks/useInputGeneration";
import classNames from "classnames";
export const Header = () => {
const { hasMadeFirstGeneration } = useInputGeneration();
return (
<header
className={classNames(
"bg-black z-[1] transition-all duration-1000 overflow-hidden",
{
"!max-h-[0px]": hasMadeFirstGeneration,
"max-h-[450px]": !hasMadeFirstGeneration,
}
)}
>
<div className="relative bg-cover bg-fixed bg-black z-[1]">
<div className="flex items-start px-6 mx-auto max-w-[1722px] relative pt-24 pb-20">
<div className="w-full lg:w-1/2 relative z-10">
<h1 className="font-bold text-5xl lg:text-7xl text-white text-center lg:text-left">
Fast Stable Diffusion XL on TPU v5e ⚡
</h1>
<p className="text-base text-white/70 mt-3 text-center lg:text-left">
Generate your own images - all images generated are community
shared.
</p>
</div>
<Image
src={HeaderImage}
alt="Hugging Face header"
className="absolute w-full -right-10 bottom-0 max-w-lg lg:max-w-4xl z-[-1]"
/>
</div>
<div className="absolute bottom-0 w-full h-full left-0 bg-gradient-to-b from-transparent to-black z-[1]" />
</div>
</header>
);
};