'use client'; import { motion } from 'framer-motion'; import Image from 'next/image'; import { projects } from '@/content/projects'; import styles from './Projects.module.scss'; import { SiGithub } from 'react-icons/si'; import { ArrowUpRight } from 'lucide-react'; export default function Projects() { const featured = projects.find(p => p.featured); const rest = projects.filter(p => !p.featured); const hasProjects = projects.length > 0; return (

Selected Work.

{hasProjects ? 'A selection of recent projects and side work.' : 'Projects will be added here soon.'}

{!hasProjects && (

Nothing here yet — check back later or get in touch.

)} {/* Featured Project */} {hasProjects && featured && ( {featured.image && (
{featured.title}
)}

{featured.title}

{featured.description}

{featured.liveUrl && ( Live )} {featured.githubUrl && ( GitHub )}
)} {/* Project Grid */} {hasProjects && ( {rest.map((project, i) => (

{project.title}

{project.description}

{project.liveUrl && ( View )} {project.githubUrl && ( )}
))}
)}
); }