From c2e81375deb3795a190698a06b5e7c10147d0420 Mon Sep 17 00:00:00 2001 From: Eshan Roy Date: Sat, 7 Dec 2024 23:19:03 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(=5Fdetails):=20addition=20++?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/About.tsx | 217 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 179 insertions(+), 38 deletions(-) diff --git a/src/pages/About.tsx b/src/pages/About.tsx index e908b44..6ecf304 100644 --- a/src/pages/About.tsx +++ b/src/pages/About.tsx @@ -1,20 +1,72 @@ -import React from 'react'; -import { Heart, Users, Shield } from 'lucide-react'; +import React, { useEffect, useState } from "react"; +import { Heart, Users, Shield, Package, Coffee } from "lucide-react"; + +interface TeamMember { + login: string; + avatar_url: string; + html_url: string; +} export function About() { + const [teamMembers, setTeamMembers] = useState([]); + const [loading, setLoading] = useState(true); + + useEffect(() => { + const fetchTeamMembers = async () => { + try { + const response = await fetch( + "https://api.github.com/orgs/Snigdha-OS/members" + ); + if (!response.ok) { + throw new Error("Failed to fetch team members"); + } + const data = await response.json(); + setTeamMembers(data); + } catch (error) { + console.error("Error fetching team members:", error); + } finally { + setLoading(false); + } + }; + + fetchTeamMembers(); + }, []); + return (
{/* Mission Section */}
-

About Linux Mint

+

About Snigdha OS

- Linux Mint is one of the most popular desktop Linux distributions and + Snigdha OS is one of the most upcoming desktop Linux distributions and used by millions of people. It is elegant, easy to use, comfortable, and powerful.

+ {/* Features Section */} +
+

Features

+
+ } + title="Fast & Lightweight" + description="Snigdha OS is optimized for performance, ensuring fast boot times and smooth user experiences." + /> + } + title="Security First" + description="We prioritize your privacy and security, offering regular security updates and patches." + /> + } + title="Developer Friendly" + description="Snigdha OS comes with a wide range of tools and a solid environment for developers." + /> +
+
+ {/* Values Section */}
@@ -36,30 +88,58 @@ export function About() {
+ {/* Testimonials Section */} +
+

What Our Users Say

+
+ + + +
+
+ {/* History Section */}

Our History

@@ -67,30 +147,45 @@ export function About() { {/* Team Section */}
-

Leadership Team

-
- - - -
+

Leadership Team

+ {loading ? ( +

Loading team members...

+ ) : ( +
+ {teamMembers.map((member) => ( + + ))} +
+ )}
); } +function FeatureCard({ + icon, + title, + description, +}: { + icon: React.ReactNode; + title: string; + description: string; +}) { + return ( +
+
{icon}
+

{title}

+

{description}

+
+ ); +} + function ValueCard({ icon, title, @@ -101,7 +196,7 @@ function ValueCard({ description: string; }) { return ( -
+
{icon}

{title}

{description}

@@ -109,6 +204,45 @@ function ValueCard({ ); } +function Testimonial({ + name, + role, + quote, + avatarUrl, + profileUrl, +}: { + name: string; + role: string; + quote: string; + avatarUrl: string; + profileUrl: string; +}) { + return ( +
+

"{quote}"

+
+ {name} +
+

{name}

+

{role}

+ + View Profile + +
+
+
+ ); +} + function TimelineItem({ year, title, @@ -129,24 +263,31 @@ function TimelineItem({ ); } -function TeamMember({ +function TeamMemberCard({ name, - role, image, + profileUrl, }: { name: string; - role: string; image: string; + profileUrl: string; }) { return ( -
+
{name} -

{name}

-

{role}

+

{name}

+ + View Profile +
); -} \ No newline at end of file +}