Compare commits
38 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a3efb38726 | |||
| 9f61d5b0c2 | |||
| 7c4d244816 | |||
| 05f01137b2 | |||
| 4e7689eb03 | |||
| 41e0054b26 | |||
| 7853df33a6 | |||
| c21800806d | |||
| e305d21f4f | |||
| c4def11e98 | |||
| 642abf0992 | |||
| 3ef55aa1de | |||
| 4f419e7190 | |||
| fdaf2107da | |||
| a6494a783f | |||
| ca7c8ee479 | |||
| 94d93b9076 | |||
| 79f6346e37 | |||
| d9a8e313bd | |||
| 38e5effbc5 | |||
| 23590f9f07 | |||
| 4eae5ddc0f | |||
| 372d7b593a | |||
| 3a54d4e5c7 | |||
| 62a763af5c | |||
| 2126638860 | |||
| 80c05f196d | |||
| a6b6f6b414 | |||
| 5002c80afd | |||
| 4389f8942f | |||
| d513885a41 | |||
| 949ebcfddb | |||
| 7a8945520d | |||
| 892ae4d405 | |||
| c941dab6e0 | |||
| 1415f0e81f | |||
| 57a2c861f2 | |||
| 0fc491d50a |
@@ -12,9 +12,6 @@ import TestimonialCardSixteen from '@/components/sections/testimonial/Testimonia
|
|||||||
import { Award, Briefcase, Calendar, Cog, Home, Hammer, MessageCircle, Paintbrush, Sparkles, Star, Brush, ClipboardCheck } from "lucide-react";
|
import { Award, Briefcase, Calendar, Cog, Home, Hammer, MessageCircle, Paintbrush, Sparkles, Star, Brush, ClipboardCheck } from "lucide-react";
|
||||||
|
|
||||||
export default function LandingPage() {
|
export default function LandingPage() {
|
||||||
// Placeholder for a translation function. In a real app, this would be imported from an i18n library.
|
|
||||||
const t = (key: string) => key;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="directional-hover"
|
defaultButtonVariant="directional-hover"
|
||||||
@@ -191,14 +188,14 @@ export default function LandingPage() {
|
|||||||
testimonials={[]}
|
testimonials={[]}
|
||||||
kpiItems={[
|
kpiItems={[
|
||||||
{
|
{
|
||||||
value: "5.0", label: t('home_testimonials.kpi_average_rating')},
|
value: "5.0", label: "Average Rating"},
|
||||||
{
|
{
|
||||||
value: "98%", label: t('home_testimonials.kpi_client_retention')},
|
value: "98%", label: "Client Retention"},
|
||||||
{
|
{
|
||||||
value: "100%", label: t('home_testimonials.kpi_satisfaction')},
|
value: "100%", label: "Satisfaction"},
|
||||||
]}
|
]}
|
||||||
title={t('home_testimonials.title')}
|
title="What Our Family of Customers Says"
|
||||||
description={t('home_testimonials.description')}
|
description="Hearing from our satisfied clients is the greatest reward. Their trust in our craftsmanship and personal approach is the foundation of our business."
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -206,15 +203,9 @@ export default function LandingPage() {
|
|||||||
<SocialProofOne
|
<SocialProofOne
|
||||||
textboxLayout="default"
|
textboxLayout="default"
|
||||||
useInvertedBackground={false}
|
useInvertedBackground={false}
|
||||||
names={[
|
names={[]}
|
||||||
t('social_proof.client_a'),
|
title=""
|
||||||
t('social_proof.client_b'),
|
description=""
|
||||||
t('social_proof.client_c'),
|
|
||||||
t('social_proof.client_d'),
|
|
||||||
t('social_proof.client_e'),
|
|
||||||
]}
|
|
||||||
title={t('social_proof.title')}
|
|
||||||
description={t('social_proof.description')}
|
|
||||||
speed={40}
|
speed={40}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -223,46 +214,46 @@ export default function LandingPage() {
|
|||||||
<FooterBase
|
<FooterBase
|
||||||
columns={[
|
columns={[
|
||||||
{
|
{
|
||||||
title: t('footer.navigation_title'), items: [
|
title: "Navigation", items: [
|
||||||
{
|
{
|
||||||
label: t('footer.home_label'), href: "/"},
|
label: "Home", href: "/"},
|
||||||
{
|
{
|
||||||
label: t('footer.services_label'), href: "/services"},
|
label: "Services", href: "/services"},
|
||||||
{
|
{
|
||||||
label: t('footer.gallery_label'), href: "/gallery"},
|
label: "Gallery", href: "/gallery"},
|
||||||
{
|
{
|
||||||
label: t('footer.contact_label'), href: "/contact"},
|
label: "Contact", href: "/contact"},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('footer.services_column_title'), items: [
|
title: "Services", items: [
|
||||||
{
|
{
|
||||||
label: t('footer.service_hardwood_installation'), href: "/services#hardwood-installation"},
|
label: "Hardwood Installation", href: "/services#hardwood-installation"},
|
||||||
{
|
{
|
||||||
label: t('footer.service_floor_sanding'), href: "/services#floor-sanding"},
|
label: "Floor Sanding", href: "/services#floor-sanding"},
|
||||||
{
|
{
|
||||||
label: t('footer.service_free_estimates'), href: "/services#free-estimates"},
|
label: "Free Estimates", href: "/services#free-estimates"},
|
||||||
{
|
{
|
||||||
label: t('footer.service_custom_designs'), href: "/services#custom-designs"},
|
label: "Custom Designs", href: "/services#custom-designs"},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('footer.about_us_title'), items: [
|
title: "About Us", items: [
|
||||||
{
|
{
|
||||||
label: t('footer.about_our_story'), href: "/#about"},
|
label: "Our Story", href: "/#about"},
|
||||||
{
|
{
|
||||||
label: t('footer.about_testimonials'), href: "/#home-testimonials"},
|
label: "Testimonials", href: "/#home-testimonials"},
|
||||||
{
|
{
|
||||||
label: t('footer.about_service_areas'), href: "/services#service-areas"},
|
label: "Service Areas", href: "/services#service-areas"},
|
||||||
{
|
{
|
||||||
label: t('footer.about_faqs'), href: "/contact#faq"},
|
label: "FAQs", href: "/contact#faq"},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3EsInlEOoSiMI8mFEzeygc6zaoo/uploaded-1780963238289-ovhlz3j6.png"
|
logoSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3EsInlEOoSiMI8mFEzeygc6zaoo/uploaded-1780963238289-ovhlz3j6.png"
|
||||||
logoAlt="FloorCraft Logo"
|
logoAlt="FloorCraft Logo"
|
||||||
logoText={t('footer.logo_text')}
|
logoText="FloorCraft"
|
||||||
copyrightText={t('footer.copyright_text')}
|
copyrightText="© 2024 FloorCraft. All rights reserved."
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</ReactLenis>
|
</ReactLenis>
|
||||||
|
|||||||
13
src/i18n.ts
13
src/i18n.ts
@@ -1,13 +0,0 @@
|
|||||||
// @ts-expect-error next-intl server config type mismatch
|
|
||||||
import { getRequestConfig } from 'next-intl/server';
|
|
||||||
import { notFound } from 'next/navigation';
|
|
||||||
|
|
||||||
export const locales = ['en', 'es'];
|
|
||||||
|
|
||||||
export default getRequestConfig(async ({ locale }) => {
|
|
||||||
if (!locales.includes(locale as any)) notFound();
|
|
||||||
|
|
||||||
return {
|
|
||||||
messages: (await import(`../messages/${locale}.json`)).default,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
// @ts-expect-error next-intl middleware type incompatibility
|
|
||||||
import createMiddleware from 'next-intl/middleware';
|
|
||||||
import { locales } from './i18n';
|
|
||||||
|
|
||||||
export default createMiddleware({
|
|
||||||
locales,
|
|
||||||
defaultLocale: 'en',
|
|
||||||
localePrefix: 'as-needed',
|
|
||||||
});
|
|
||||||
|
|
||||||
export const config = {
|
|
||||||
matcher: [
|
|
||||||
'/',
|
|
||||||
'/(es|en)/:path*',
|
|
||||||
// Enable a redirect to a matching locale at the root
|
|
||||||
// '/((?!_next|_vercel|.*\..*).*)',
|
|
||||||
],
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user