Mirrored from https://github.com/Camo67/OCIU-npo.git
Synced Nov 21, 04:45 UTC
main
| 1 | import React from 'react'; |
| 2 | import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; |
| 3 | import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; |
| 4 | import { Badge } from "@/components/ui/badge"; |
| 5 | import { Button } from "@/components/ui/button"; |
| 6 | import { MapPin, Mail, Link as LinkIcon, Edit } from "lucide-react"; |
| 7 | |
| 8 | export const MemberProfile = () => { |
| 9 | const member = { |
| 10 | name: "John Doe", |
| 11 | role: "Mentor / Builder", |
| 12 | location: "Soweto, Johannesburg", |
| 13 | skills: ["React", "TypeScript", "Tailwind CSS"], |
| 14 | bio: "Passionate about building community tools and learning new technologies.", |
| 15 | email: "john@example.com", |
| 16 | links: ["github.com/johndoe", "portfolio.ociu.org/john"], |
| 17 | }; |
| 18 | |
| 19 | return ( |
| 20 | <Card> |
| 21 | <CardHeader className="flex flex-row items-center gap-4"> |
| 22 | <Avatar className="h-16 w-16"> |
| 23 | <AvatarImage src="" /> |
| 24 | <AvatarFallback>JD</AvatarFallback> |
| 25 | </Avatar> |
| 26 | <div className="flex-1"> |
| 27 | <div className="flex justify-between items-start"> |
| 28 | <div> |
| 29 | <CardTitle>{member.name}</CardTitle> |
| 30 | <p className="text-sm text-muted-foreground">{member.role}</p> |
| 31 | </div> |
| 32 | <Button size="icon" variant="ghost"><Edit size={16} /></Button> |
| 33 | </div> |
| 34 | <p className="text-xs text-muted-foreground flex items-center gap-1 mt-1"> |
| 35 | <MapPin size={10} /> {member.location} |
| 36 | </p> |
| 37 | </div> |
| 38 | </CardHeader> |
| 39 | <CardContent className="space-y-4"> |
| 40 | <div> |
| 41 | <h4 className="text-sm font-semibold mb-2">Skills</h4> |
| 42 | <div className="flex flex-wrap gap-2"> |
| 43 | {member.skills.map(s => <Badge key={s} variant="secondary">{s}</Badge>)} |
| 44 | </div> |
| 45 | </div> |
| 46 | |
| 47 | <div> |
| 48 | <h4 className="text-sm font-semibold mb-1">Bio</h4> |
| 49 | <p className="text-sm text-muted-foreground">{member.bio}</p> |
| 50 | </div> |
| 51 | |
| 52 | <div className="pt-2 space-y-2"> |
| 53 | <div className="flex items-center gap-2 text-xs text-muted-foreground"> |
| 54 | <Mail size={12} /> {member.email} |
| 55 | </div> |
| 56 | {member.links.map(link => ( |
| 57 | <div key={link} className="flex items-center gap-2 text-xs text-primary hover:underline cursor-pointer"> |
| 58 | <LinkIcon size={12} /> {link} |
| 59 | </div> |
| 60 | ))} |
| 61 | </div> |
| 62 | </CardContent> |
| 63 | </Card> |
| 64 | ); |
| 65 | }; |