Compare commits
47 Commits
version_6_
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 0e15ac6743 | |||
| 6d9e9dd1de | |||
| 5ad5b70abd | |||
| bbd1d940f5 | |||
| c4d6150f97 | |||
| 8669205162 | |||
| 4b80d12b1a | |||
| 6f12638b6c | |||
| 53fb5395ee | |||
| b835d782b5 | |||
| 2261f26964 | |||
| 23ffe58c4c | |||
| 7e04d96a45 | |||
| e573943c1e | |||
| 159b470218 | |||
| 8ff368d3d3 | |||
| e7acd3741f | |||
| 4853a321d0 | |||
| 7326f957e8 | |||
| 4aff06cf99 | |||
| 230bf054b7 | |||
| 3610bf240e | |||
| c4ca5dab37 | |||
|
|
4de0487e6c | ||
| b6adf8ab20 | |||
| ac1e2fd51c | |||
| 2c5f386918 | |||
| 87c07e5050 | |||
| b5332b9636 | |||
| a0d6e7e4c7 | |||
| d0f76043dc | |||
| fba5e53632 | |||
| 5aa88dabc7 | |||
| b756664b32 | |||
| 3f55b4a35e | |||
| 47c3e1b0f0 | |||
| b6f9a2ddaf | |||
| ae1363e964 | |||
| 6e407a553c | |||
| 4d1236ab14 | |||
| 92eef808f6 | |||
| 5dff9f9582 | |||
| 9fc21d6dbd | |||
| 1d0b0edca0 | |||
| c0811a63b8 | |||
| 06ff7b8c2e | |||
| dfbef698d0 |
@@ -2,64 +2,72 @@ import Button from "@/components/ui/Button";
|
||||
import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import AvatarGroup from "@/components/ui/AvatarGroup";
|
||||
import AutoFillText from "@/components/ui/AutoFillText";
|
||||
import ScrollReveal from "@/components/ui/ScrollReveal";
|
||||
import LoopCarousel from "@/components/ui/LoopCarousel";
|
||||
|
||||
type HeroCenteredLogosProps = {
|
||||
avatarsSrc: string[];
|
||||
avatarText: string;
|
||||
title: string;
|
||||
type HeroBillboardBrandProps = {
|
||||
brand: string;
|
||||
description: string;
|
||||
primaryButton: { text: string; href: string };
|
||||
secondaryButton: { text: string; href: string };
|
||||
logos: string[];
|
||||
hideMedia?: boolean;
|
||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||
|
||||
const HeroInline = () => {
|
||||
return (
|
||||
<section aria-label="Hero section" className="relative h-svh flex flex-col mb-20">
|
||||
<section aria-label="Hero section" className="relative pt-25 pb-20 md:pt-30">
|
||||
<HeroBackgroundSlot />
|
||||
{!undefined && (
|
||||
<div className="absolute inset-0 z-0">
|
||||
<ImageOrVideo imageSrc={"http://img.b2bpic.net/free-photo/medium-shot-woman-working-bakery_23-2150273148.jpg"} className="size-full object-cover" />
|
||||
<div className="absolute inset-0 bg-background/80" />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="relative z-10 flex-1 flex items-center justify-center">
|
||||
<div className="flex flex-col items-center gap-3 pt-8 w-content-width mx-auto text-center">
|
||||
<AvatarGroup avatarsSrc={["https://i.pravatar.cc/150?img=1","https://i.pravatar.cc/150?img=2","https://i.pravatar.cc/150?img=3"]} label={"Trusted by 500+ bakeries"} size="lg" />
|
||||
|
||||
<TextAnimation
|
||||
text={"Taste the Freshness: Your Daily Slice of Joy Awaits"}
|
||||
variant="slide-up"
|
||||
gradientText={true}
|
||||
tag="h1"
|
||||
className="md:max-w-8/10 text-7xl 2xl:text-8xl leading-[1.15] font-semibold text-center text-balance"
|
||||
/>
|
||||
<div className="flex flex-col gap-10 md:gap-12 w-content-width mx-auto">
|
||||
<div className="flex flex-col items-end gap-5">
|
||||
<AutoFillText className="w-full font-semibold" paddingY="">{"Taste the Freshness: Your Daily Slice of Joy Awaits"}</AutoFillText>
|
||||
|
||||
<TextAnimation
|
||||
text={"Freshly Baked Goodness, Made Daily. Artisan breads, pastries, and custom cakes crafted with premium ingredients. Order online or visit us today."}
|
||||
variant="slide-up"
|
||||
variant="fade-blur"
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="md:max-w-7/10 text-lg md:text-xl leading-snug text-balance"
|
||||
className="w-full md:w-1/2 text-lg md:text-2xl leading-snug text-balance text-right"
|
||||
/>
|
||||
|
||||
<div className="flex flex-wrap justify-center gap-3 mt-2 md:mt-3">
|
||||
<Button text={{"href":"#contact","text":"Order Now"}.text} href={{"href":"#contact","text":"Order Now"}.href} variant="primary" />
|
||||
<Button text={{"text":"Our Menu","href":"#products"}.text} href={{"text":"Our Menu","href":"#products"}.href} variant="secondary" animationDelay={0.1} />
|
||||
<div className="flex flex-wrap justify-end gap-3 mt-1 md:mt-2">
|
||||
<a
|
||||
href="#contact"
|
||||
className="relative inline-flex items-center justify-center px-8 py-4 font-bold text-primary-cta-text bg-primary-cta rounded-xl shadow-[0_8px_0_0_rgba(0,0,0,0.8)] hover:translate-y-1 hover:shadow-[0_4px_0_0_rgba(0,0,0,0.8)] active:translate-y-2 active:shadow-none transition-all"
|
||||
>
|
||||
Order Now
|
||||
</a>
|
||||
<a
|
||||
href="#products"
|
||||
className="relative inline-flex items-center justify-center px-8 py-4 font-bold text-secondary-cta-text bg-secondary-cta rounded-xl shadow-[0_8px_0_0_rgba(0,0,0,0.2)] hover:translate-y-1 hover:shadow-[0_4px_0_0_rgba(0,0,0,0.2)] active:translate-y-2 active:shadow-none transition-all border border-border"
|
||||
>
|
||||
Our Menu
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="relative z-10 w-content-width mx-auto pb-8 overflow-hidden mask-fade-x">
|
||||
<div className="flex w-max animate-marquee-horizontal" style={{ animationDuration: "30s" }}>
|
||||
{[...["https://upload.wikimedia.org/wikipedia/commons/a/a9/Amazon_logo.svg","https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg","https://upload.wikimedia.org/wikipedia/commons/5/51/IBM_logo.svg","https://upload.wikimedia.org/wikipedia/commons/4/44/Microsoft_logo.svg","https://upload.wikimedia.org/wikipedia/commons/0/08/Netflix_2015_logo.svg"], ...["https://upload.wikimedia.org/wikipedia/commons/a/a9/Amazon_logo.svg","https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg","https://upload.wikimedia.org/wikipedia/commons/5/51/IBM_logo.svg","https://upload.wikimedia.org/wikipedia/commons/4/44/Microsoft_logo.svg","https://upload.wikimedia.org/wikipedia/commons/0/08/Netflix_2015_logo.svg"], ...["https://upload.wikimedia.org/wikipedia/commons/a/a9/Amazon_logo.svg","https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg","https://upload.wikimedia.org/wikipedia/commons/5/51/IBM_logo.svg","https://upload.wikimedia.org/wikipedia/commons/4/44/Microsoft_logo.svg","https://upload.wikimedia.org/wikipedia/commons/0/08/Netflix_2015_logo.svg"], ...["https://upload.wikimedia.org/wikipedia/commons/a/a9/Amazon_logo.svg","https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg","https://upload.wikimedia.org/wikipedia/commons/5/51/IBM_logo.svg","https://upload.wikimedia.org/wikipedia/commons/4/44/Microsoft_logo.svg","https://upload.wikimedia.org/wikipedia/commons/0/08/Netflix_2015_logo.svg"]].map((logo, index) => (
|
||||
<div key={index} className="shrink-0 mx-3 px-4 py-2 card rounded">
|
||||
<span className="text-xl font-semibold whitespace-nowrap text-foreground/75">{logo}</span>
|
||||
</div>
|
||||
))}
|
||||
<ScrollReveal variant="fade" delay={0.2} className="w-full p-2 xl:p-3 2xl:p-4 card rounded overflow-hidden">
|
||||
<ImageOrVideo imageSrc={"http://img.b2bpic.net/free-photo/medium-shot-woman-working-bakery_23-2150273148.jpg"} className="aspect-4/5 md:aspect-video" />
|
||||
</ScrollReveal>
|
||||
|
||||
<div className="w-full max-w-4xl mx-auto mt-12">
|
||||
<p className="text-sm font-semibold text-muted-foreground uppercase tracking-wider mb-8 text-center">
|
||||
Trusted by companies we work with
|
||||
</p>
|
||||
<div className="w-full overflow-hidden">
|
||||
<LoopCarousel>
|
||||
{[
|
||||
"https://upload.wikimedia.org/wikipedia/commons/a/a9/Amazon_logo.svg",
|
||||
"https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg",
|
||||
"https://upload.wikimedia.org/wikipedia/commons/5/51/IBM_logo.svg",
|
||||
"https://upload.wikimedia.org/wikipedia/commons/4/44/Microsoft_logo.svg",
|
||||
"https://upload.wikimedia.org/wikipedia/commons/f/fa/Apple_logo_black.svg"
|
||||
].map((logo, i) => (
|
||||
<div key={i} className="flex items-center justify-center w-40 mx-8">
|
||||
<img src={logo} alt="Company Logo" className="h-8 md:h-12 w-auto object-contain opacity-50 grayscale hover:opacity-100 hover:grayscale-0 transition-all" />
|
||||
</div>
|
||||
))}
|
||||
</LoopCarousel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user