From 798ad0504209fbb2763429b508e8903ee452dcde Mon Sep 17 00:00:00 2001 From: KaranUnique Date: Thu, 11 Dec 2025 09:55:33 +0530 Subject: [PATCH] Enhanced the about section --- src/components/About.jsx | 214 +++++++++++++++++++++------------------ 1 file changed, 114 insertions(+), 100 deletions(-) diff --git a/src/components/About.jsx b/src/components/About.jsx index 18e29c7..62b1d50 100644 --- a/src/components/About.jsx +++ b/src/components/About.jsx @@ -1,160 +1,174 @@ import { useState } from "react"; import { useTranslation } from "react-i18next"; -import { Code2, Palette, Database, Zap } from "lucide-react"; +import { + Code2, + Palette, + Database, + Zap, + Sparkles, + LayoutGrid, + Users +} from "lucide-react"; import { accordionItems } from "../data/accordionItems"; const About = ({ theme }) => { - const [openAccordion, setOpenAccordion] = useState(null); const { t } = useTranslation(); + const [openAccordion, setOpenAccordion] = useState(null); const toggleAccordion = (id) => { setOpenAccordion(openAccordion === id ? null : id); }; + const glassLight = "bg-white/20 border-white/30 shadow-lg backdrop-blur-xl"; + const glassDark = "bg-gray-800/30 border-gray-600/30 shadow-xl backdrop-blur-xl"; + const techStack = [ - { - name: "React", - icon: Code2, - description: "UI Library", - color: "text-blue-500" + { name: "React", icon: Code2, description: "UI Library", color: "text-blue-400" }, + { name: "Tailwind", icon: Palette, description: "Styling Framework", color: "text-cyan-400" }, + { name: "Contentful", icon: Database, description: "Headless CMS", color: "text-purple-400" }, + { name: "Vite", icon: Zap, description: "Build Tool", color: "text-yellow-400" }, + ]; + + const features = [ + { + title: "Modern UI/UX", + description: "Smooth animations, layered glass cards & premium interactions.", + icon: LayoutGrid, + }, + { + title: "Performance Optimized", + description: "Built using Vite, lazy-loading and caching for speed.", + icon: Zap, }, - { - name: "Tailwind CSS", - icon: Palette, - description: "Styling Framework", - color: "text-cyan-500" + { + title: "Scalable Architecture", + description: "Reusable components, modular structure & clean code.", + icon: Database, }, - { - name: "Contentful", - icon: Database, - description: "Content API", - color: "text-purple-500" + { + title: "Community First", + description: "Open-source, contributor friendly and well documented.", + icon: Users, }, - { - name: "Vite", - icon: Zap, - description: "Build Tool", - color: "text-yellow-500" - } ]; return (
-
-

- {t("aboutPage.heading", "About Us")} -

- - {/* Tech Stack Section */} -
-

- {t("aboutPage.techStack", "Built With")} -

-
- {techStack.map((tech) => { - const IconComponent = tech.icon; - return ( -
-
- -
-
{tech.name}
-
- {tech.description} -
+
+ + {/* ================= HERO GLASS ================= */} +
+

+ {t("aboutPage.heading", "About Us")} +

+ +

+ We combine design, innovation, and technology to craft delightful user experiences. + Everything here is built with attention to detail and modern development practices. +

+
+ + {/* ================= TECH STACK GLASS GRID ================= */} +

{t("aboutPage.techStack", "Built With")}

+ +
+ {techStack.map((tech) => { + const Icon = tech.icon; + return ( +
+ +

{tech.name}

+

{tech.description}

+
+ ); + })} +
+ + {/* ================= FEATURES SECTION (GLASS) ================= */} +

Key Highlights

+ +
+ {features.map((feature, index) => { + const Icon = feature.icon; + return ( +
+
+ +

{feature.title}

- ); - })} -
+

{feature.description}

+
+ ); + })}
- {/* Accordion Section */} -
+ {/* ================= GLASS ACCORDION (Q/Q TYPE) ================= */} +

How It Works

+ +
{accordionItems.map((item) => { const isOpen = openAccordion === item.id; - const titleText = t(item.titleKey || item.title); const bodyText = t(item.contentKey || item.content); return (
+ {/* Accordion Content */}
-
- {bodyText} -
+
{bodyText}
); })}
+
); }; -export default About; \ No newline at end of file +export default About;