This commit is contained in:
@@ -3,6 +3,7 @@ import { Dialog, DialogPanel } from "@headlessui/react";
|
||||
import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/outline";
|
||||
import general from "../content/settings/general.json";
|
||||
|
||||
|
||||
export default function Header({
|
||||
navigation,
|
||||
ctaLabel,
|
||||
@@ -23,24 +24,16 @@ export default function Header({
|
||||
<div className="flex lg:flex-1">
|
||||
<a
|
||||
href="/"
|
||||
className="flex items-center bg-[white] rounded-3xl shadow-md
|
||||
ps-0.5 pe-2 pt-1 pb-0.5
|
||||
md:ps-1 md:pe-3 md:pt-2 md:pb-1
|
||||
|
||||
"
|
||||
className="flex items-center justify-center bg-[white] rounded-full shadow-md p-2"
|
||||
>
|
||||
<div className="p-1 bg-[white] rounded-full ">
|
||||
<div className="rounded-full ">
|
||||
<span className="sr-only">{general.siteName}</span>
|
||||
<img
|
||||
alt={general.siteName}
|
||||
src="/images/logo.png"
|
||||
className="h-10 w-auto"
|
||||
src="/images/logo-vignette.svg"
|
||||
className="h-10 w-10 object-fill"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<p className="text-xl sm:text-2xl md:text-3xl font-semibold text-brand-600 uppercase">
|
||||
{general.brandName}
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
<div className="flex lg:hidden">
|
||||
@@ -93,7 +86,7 @@ export default function Header({
|
||||
<span className="sr-only">{general.siteName}</span>
|
||||
<img
|
||||
alt={general.siteName}
|
||||
src="/images/logo.png"
|
||||
src="/images/logo-vignette.svg"
|
||||
className="h-10 w-auto"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -10,10 +10,11 @@ import photo2 from "@/assets/photos/the-attic-of-a-home-with-white-ceilings-and-
|
||||
import photo3 from "@/assets/photos/silver-and-white-apartment-interior-2023-11-27-05-32-03-utc.webp";
|
||||
import photo4 from "@/assets/photos/a-bedroom-with-white-walls-and-a-bed-and-a-2023-11-27-05-25-30-utc.webp";
|
||||
import photo5 from "@/assets/photos/empty-room-with-window-2023-11-27-05-08-12-utc.webp";
|
||||
|
||||
import logo from "@/assets/cachet-hero-logo.svg";
|
||||
export type HeroContent = {
|
||||
pillCta: string;
|
||||
title: string;
|
||||
title2: string;
|
||||
subtitle: string;
|
||||
cta: string;
|
||||
ctaHref: string;
|
||||
@@ -28,13 +29,13 @@ const slides = [
|
||||
];
|
||||
|
||||
const autoplayPlugin = Autoplay({
|
||||
delay: 5000,
|
||||
delay: 4000,
|
||||
stopOnInteraction: false,
|
||||
stopOnMouseEnter: false,
|
||||
});
|
||||
|
||||
export default function Hero({ content }: { content: HeroContent }) {
|
||||
const { pillCta, title, subtitle, cta, ctaHref } = content;
|
||||
const { pillCta, title, title2, subtitle, cta, ctaHref } = content;
|
||||
|
||||
return (
|
||||
<div className="bg-white dark:bg-gray-900">
|
||||
@@ -59,7 +60,7 @@ export default function Hero({ content }: { content: HeroContent }) {
|
||||
</Carousel>
|
||||
|
||||
<div className="relative z-10 mx-auto max-w-7xl px-6 lg:px-8 h-full flex items-center justify-center pt-14">
|
||||
<div className="mx-auto max-w-2xl text-center">
|
||||
<div className="mx-auto max-w-4xl text-center">
|
||||
<div className="hidden sm:mb-8 sm:flex sm:justify-center">
|
||||
<div className="flex flex-wrap items-center justify-center gap-2 gap-x-3.5 rounded-full px-4 py-2 text-sm/6 text-gray-300 ring-1 ring-white/20">
|
||||
<span>RBQ {general.rbq}</span>
|
||||
@@ -73,12 +74,19 @@ export default function Hero({ content }: { content: HeroContent }) {
|
||||
<span>{pillCta}</span>
|
||||
</div>
|
||||
</div>
|
||||
<h1
|
||||
{/* <h1
|
||||
className="text-5xl font-semibold tracking-tight text-balance text-white sm:text-7xl"
|
||||
style={{ fontFamily: "var(--font-display)" }}
|
||||
>
|
||||
{title}
|
||||
</h1>
|
||||
<h2
|
||||
className="text-5xl font-semibold tracking-tight text-balance text-white sm:text-6xl"
|
||||
style={{ fontFamily: "var(--font-display)" }}
|
||||
>
|
||||
{title2}
|
||||
</h2> */}
|
||||
<img src={logo.src} alt={general.siteName} className="w-full h-auto" />
|
||||
<p className="mt-8 text-lg font-medium text-pretty text-gray-300 sm:text-xl/8">
|
||||
{subtitle}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user