diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index 059386c..07330bc 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -1,5 +1,4 @@ -import { Aperture, Award, Github, Instagram, Linkedin, Mail, Globe, ScrollText } from 'lucide-react' -import { COLORS } from '../constants' +import { COLORS, SOCIALLINKS } from '../constants' interface LinkProps { href: string @@ -26,59 +25,6 @@ const Link: React.FC = ({ icon, href, children }) => { } const Sidebar = () => { - const iconClass = 'text-blue-600 dark:text-blue-400 mr-3' - - const links = { - contact: [ - { - icon: , - href: 'mailto:taqitahmid@gmail.com', - text: 'Email Me', - }, - { - icon: , - href: 'https://portfolio.tahmidcloud.com/', - text: 'My Website', - }, - ], - connect: [ - { - icon: , - href: 'https://www.linkedin.com/in/taqi-tahmid/', - text: 'LinkedIn', - }, - { - icon: , - href: 'https://github.com/theTaqiTahmid', - text: 'GitHub', - }, - ], - follow: [ - { - icon: , - href: 'https://500px.com/p/taqi1203050?view=photos', - text: 'My Photography', - }, - { - icon: , - href: 'https://www.instagram.com/tahmidtaqi/', - text: 'Instagram', - }, - ], - publications: [ - { - icon: , - href: 'https://www.credly.com/badges/abb049aa-d811-4954-a460-8c7351ceba3e/public_url', - text: 'CKA Certification', - }, - { - icon: , - href: 'https://scholar.google.fi/citations?user=w3BoP0AAAAAJ&hl=en', - text: 'Google Scholar', - }, - ], - } - const SectionTitle = ({ children }: { children: React.ReactNode }) => (

{children} @@ -90,28 +36,28 @@ const Sidebar = () => { className={`p-6 max-w-xs mx-auto ${COLORS.PRIMARY} ${COLORS.DARK_PRIMARY} rounded-xl shadow-sm`} > Contact - {links.contact.map((link, index) => ( + {SOCIALLINKS.contact.map((link, index) => ( {link.text} ))} Connect - {links.connect.map((link, index) => ( + {SOCIALLINKS.connect.map((link, index) => ( {link.text} ))} Follow - {links.follow.map((link, index) => ( + {SOCIALLINKS.follow.map((link, index) => ( {link.text} ))} Achievements - {links.publications.map((link, index) => ( + {SOCIALLINKS.publications.map((link, index) => ( {link.text} diff --git a/frontend/src/constants.tsx b/frontend/src/constants.tsx index a36c5b5..d4c4120 100644 --- a/frontend/src/constants.tsx +++ b/frontend/src/constants.tsx @@ -1,4 +1,5 @@ import { Linkedin, Github, Award, Link } from 'lucide-react' +import { Aperture, Instagram, Mail, Globe, ScrollText } from 'lucide-react' import { Camera, Plane, Film, Server, Cpu, Trophy, Car, Gamepad2 } from 'lucide-react' import pythonIcon from './assets/python.svg' import robotIcon from './assets/robotframework-svgrepo-com.svg' @@ -87,23 +88,58 @@ export const PROJECTS = [ }, ] -export const SOCIALLINKS = [ - { - icon: , - href: 'https://www.linkedin.com/in/taqi-tahmid/', - label: 'LinkedIn', - }, - { - icon: , - href: 'https://github.com/TheTaqiTahmid', - label: 'GitHub', - }, - { - icon: , - href: 'https://ti-user-certificates.s3.amazonaws.com/e0df7fbf-a057-42af-8a1f-590912be5460/3da54db2-f994-4148-a0ca-705ae1d748cd-mohammad-taqi-tahmid-094cf8b4-0db8-4a9f-b787-b4efbb2a90fe-certificate.pdf', - label: 'CKA Certificate', - }, -] +export const iconClass = 'text-blue-600 dark:text-blue-400 mr-3' + +export const SOCIALLINKS = { + contact: [ + { + icon: , + href: 'mailto:taqitahmid@gmail.com', + text: 'Email Me', + }, + { + icon: , + href: 'https://portfolio.tahmidcloud.com/', + text: 'My Website', + }, + ], + connect: [ + { + icon: , + href: 'https://www.linkedin.com/in/taqi-tahmid/', + text: 'LinkedIn', + }, + { + icon: , + href: 'https://github.com/theTaqiTahmid', + text: 'GitHub', + }, + ], + follow: [ + { + icon: , + href: 'https://500px.com/p/taqi1203050?view=photos', + text: 'My Photography', + }, + { + icon: , + href: 'https://www.instagram.com/tahmidtaqi/', + text: 'Instagram', + }, + ], + publications: [ + { + icon: , + href: 'https://www.credly.com/badges/abb049aa-d811-4954-a460-8c7351ceba3e/public_url', + text: 'CKA Certification', + }, + { + icon: , + href: 'https://scholar.google.fi/citations?user=w3BoP0AAAAAJ&hl=en', + text: 'Google Scholar', + }, + ], +} export const SKILLS = [ { name: 'Python', icon: pythonIcon },