Update src/app/projects/[id]/page.tsx

This commit is contained in:
2026-03-09 08:28:00 +00:00
parent d2bda4e745
commit 055d8feb7d

View File

@@ -2,88 +2,180 @@
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
import FeatureCardTwentyFour from '@/components/sections/feature/FeatureCardTwentyFour';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import HeroBillboard from "@/components/sections/hero/HeroBillboard";
import TextSplitAbout from "@/components/sections/about/TextSplitAbout";
import FeatureCardTwentyFour from "@/components/sections/feature/FeatureCardTwentyFour";
import ContactCenter from "@/components/sections/contact/ContactCenter";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import { useParams } from "next/navigation";
const projectsData: Record<string, any> = {
"1": {
title: "Digital Brand Identity System", subtitle: "Complete visual identity redesign for tech startup", category: "Brand Strategy", heroImage:
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AhRowzw9k0ZSJ87n7KX34EwoE1/a-beautiful-case-study-image-showing-a-c-1773043067456-ca425d2a.png", heroAlt: "Brand identity project showcase", overview:
"This comprehensive brand identity project transformed a tech startup's visual presence. We developed a cohesive brand system that aligned their values with market positioning.", challenge:
"The startup needed a distinctive visual identity that could scale across digital and physical touchpoints while maintaining brand consistency.", solution:
"We created a comprehensive brand guidelines document, typography system, color palette, and digital asset library. The new identity increased brand recognition by 40% within six months.", results: [
"40% increase in brand recognition", "Comprehensive brand guidelines", "150+ digital and physical assets", "Scalable design system"],
images: [
{
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AhRowzw9k0ZSJ87n7KX34EwoE1/a-beautiful-case-study-image-showing-a-c-1773043067456-ca425d2a.png", alt: "Brand identity system overview"},
],
},
"2": {
title: "E-commerce Platform Redesign", subtitle: "User-centered redesign of enterprise e-commerce platform", category: "UX Design", heroImage:
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AhRowzw9k0ZSJ87n7KX34EwoE1/professional-portfolio-project-image-fea-1773043068039-3c07e3ca.png", heroAlt: "E-commerce platform design", overview:
"This e-commerce redesign focused on improving user experience and conversion rates through streamlined navigation and optimized checkout flow.", challenge:
"The existing platform had high cart abandonment rates and complex navigation that confused users during the purchase process.", solution:
"We implemented a mobile-first approach, created accessible design patterns, and simplified the checkout process. The new design achieved a 35% improvement in conversion rates.", results: [
"35% increase in conversion rates", "50% reduction in cart abandonment", "WCAG 2.1 AA accessibility compliance", "Mobile-first responsive design"],
images: [
{
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AhRowzw9k0ZSJ87n7KX34EwoE1/professional-portfolio-project-image-fea-1773043068039-3c07e3ca.png", alt: "E-commerce platform interface"},
],
},
"3": {
title: "SaaS Product Interface Design", subtitle: "Intuitive interface for data analytics SaaS platform", category: "Product Design", heroImage:
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AhRowzw9k0ZSJ87n7KX34EwoE1/contemporary-design-project-featured-in--1773043068896-89ed9073.png", heroAlt: "SaaS product interface design", overview:
"We designed an intuitive interface for a data analytics platform, creating interactive prototypes and a comprehensive design system for consistency.", challenge:
"The platform needed to present complex data in an accessible way while maintaining an intuitive user experience for both novice and advanced users.", solution:
"We created a hierarchical information architecture, developed 15+ reusable components, and built an enhanced onboarding experience that reduced support tickets by 50%.", results: [
"50% reduction in support tickets", "15+ component variations", "Interactive prototype suite", "Comprehensive design system"],
images: [
{
src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AhRowzw9k0ZSJ87n7KX34EwoE1/contemporary-design-project-featured-in--1773043068896-89ed9073.png", alt: "SaaS platform dashboard"},
],
},
};
export default function ProjectDetail() {
const navItems = [
{ name: "Home", id: "/" },
{ name: "Projects", id: "/projects" },
{ name: "About", id: "about" },
{ name: "Contact", id: "contact" },
];
const params = useParams();
const id = params.id as string;
const project = projectsData[id];
if (!project) {
return (
<ThemeProvider
defaultButtonVariant="shift-hover"
defaultTextAnimation="reveal-blur"
borderRadius="soft"
contentWidth="smallMedium"
sizing="mediumLarge"
background="circleGradient"
cardStyle="outline"
primaryButtonStyle="shadow"
secondaryButtonStyle="solid"
headingFontWeight="normal"
>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingOverlay
brandName="Portfolio"
navItems={[
{ name: "Work", id: "/" },
{ name: "About", id: "/" },
{ name: "Services", id: "/" },
{ name: "Contact", id: "/" },
]}
button={{
text: "Get in Touch", href: "/"}}
/>
</div>
<div className="flex items-center justify-center min-h-screen">
<h1>Project not found</h1>
</div>
</ThemeProvider>
);
}
return (
<ThemeProvider
defaultButtonVariant="text-stagger"
defaultTextAnimation="entrance-slide"
borderRadius="rounded"
contentWidth="medium"
sizing="medium"
defaultButtonVariant="shift-hover"
defaultTextAnimation="reveal-blur"
borderRadius="soft"
contentWidth="smallMedium"
sizing="mediumLarge"
background="circleGradient"
cardStyle="glass-elevated"
primaryButtonStyle="gradient"
secondaryButtonStyle="glass"
cardStyle="outline"
primaryButtonStyle="shadow"
secondaryButtonStyle="solid"
headingFontWeight="normal"
>
<div id="nav" data-section="nav">
<NavbarLayoutFloatingOverlay navItems={navItems} />
<NavbarLayoutFloatingOverlay
brandName="Portfolio"
navItems={[
{ name: "Back to Work", id: "/" },
{ name: "About", id: "/" },
{ name: "Services", id: "/" },
{ name: "Contact", id: "/" },
]}
button={{
text: "Get in Touch", href: "/"}}
/>
</div>
<div id="hero" data-section="hero">
<HeroBillboardCarousel
title="Project Details"
description="Explore the complete project overview and case study"
background={{ variant: "animated-grid" }}
mediaItems={[
{
imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Project showcase"},
]}
<HeroBillboard
title={project.title}
description={project.subtitle}
tag={project.category}
background={{ variant: "sparkles-gradient" }}
imageSrc={project.heroImage}
imageAlt={project.heroAlt}
buttons={[
{ text: "Back to Projects", href: "/projects" },
{ text: "Back to Portfolio", href: "/" },
{ text: "Start a Project", href: "/" },
]}
/>
</div>
<div id="work" data-section="work">
<FeatureCardTwentyFour
title="Project Breakdown"
description="See how we approached and executed this project"
textboxLayout="default"
animationType="slide-up"
useInvertedBackground={false}
features={[
{
id: "1", title: "Discovery Phase", author: "Strategy", description: "Initial research and stakeholder interviews", tags: ["Research", "Planning"],
imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Discovery phase"},
{
id: "2", title: "Design Process", author: "Design", description: "Wireframing, prototyping, and visual design", tags: ["Design", "Prototyping"],
imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Design process"},
{
id: "3", title: "Implementation", author: "Development", description: "Development and quality assurance", tags: ["Development", "QA"],
imageSrc: "/placeholders/placeholder1.webp", imageAlt: "Implementation phase"},
<div id="overview" data-section="overview">
<TextSplitAbout
title="Project Overview"
description={[
project.overview,
`Challenge: ${project.challenge}`,
`Solution: ${project.solution}`,
]}
useInvertedBackground={true}
/>
</div>
<div id="results" data-section="results">
<FeatureCardTwentyFour
title="Key Results"
description="Measurable outcomes and impact"
tag="Achievements"
features={project.results.map((result: string, index: number) => ({
id: `result-${index}`,
title: result,
author: "Impact", description: "Delivered value", tags: ["Success"],
imageSrc:
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AhRowzw9k0ZSJ87n7KX34EwoE1/a-beautiful-case-study-image-showing-a-c-1773043067456-ca425d2a.png", imageAlt: "Result"}))}
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
/>
</div>
<div id="contact" data-section="contact">
<ContactCenter
tag="Ready to Start?"
title="Let's Create Something Amazing"
description="Interested in working with us on your next project?"
background={{ variant: "plain" }}
tag="Let's Talk"
title="Ready to Start Your Project?"
description="Get in touch to discuss your design needs and how we can collaborate to create exceptional digital experiences."
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
buttonText="Get Started"
inputPlaceholder="Enter your email address"
buttonText="Send Message"
termsText="I'll respond within 24 hours. We respect your privacy and will never share your information."
/>
</div>
<div id="footer" data-section="footer">
<FooterLogoReveal
logoText="Our Studio"
leftLink={{ text: "Privacy Policy", href: "/privacy" }}
rightLink={{ text: "Contact", href: "contact" }}
logoText="Portfolio"
leftLink={{ text: "Privacy Policy", href: "#" }}
rightLink={{ text: "Terms of Service", href: "#" }}
/>
</div>
</ThemeProvider>