import Image, { type ImageProps } from 'next/image' import Link from 'next/link' import clsx from 'clsx' import { Button } from '@/components/Button' import { Card } from '@/components/Card' import { Container } from '@/components/Container' import { GitHubIcon, InstagramIcon, LinkedInIcon, MediumIcon, TwitterIcon, } from '@/components/SocialIcons' import logoAirbnb from '@/images/logos/spacebolt.svg' import logoFacebook from '@/images/logos/voluntree.svg' import logoPlanetaria from '@/images/logos/sonr.svg' import logoStarbucks from '@/images/logos/superball.svg' import image1 from '@/images/photos/image-1.jpg' import image2 from '@/images/photos/image-2.jpg' import image3 from '@/images/photos/image-3.jpg' import image4 from '@/images/photos/image-4.jpg' import image5 from '@/images/photos/image-5.jpg' import { type ArticleWithSlug, getAllArticles } from '@/lib/articles' import { formatDate } from '@/lib/formatDate' function MailIcon(props: React.ComponentPropsWithoutRef<'svg'>) { return ( ) } function BriefcaseIcon(props: React.ComponentPropsWithoutRef<'svg'>) { return ( ) } function ArrowDownIcon(props: React.ComponentPropsWithoutRef<'svg'>) { return ( ) } function Article({ article }: { article: ArticleWithSlug }) { return ( {article.title} {formatDate(article.date)} {article.description} Read article ) } function SocialLink({ icon: Icon, ...props }: React.ComponentPropsWithoutRef & { icon: React.ComponentType<{ className?: string }> }) { return ( ) } function Newsletter() { return (

Stay up to date

Get notified when I publish something new, and unsubscribe at any time.

) } interface Role { company: string title: string logo: ImageProps['src'] start: string | { label: string; dateTime: string } end: string | { label: string; dateTime: string } } function Role({ role }: { role: Role }) { let startLabel = typeof role.start === 'string' ? role.start : role.start.label let startDate = typeof role.start === 'string' ? role.start : role.start.dateTime let endLabel = typeof role.end === 'string' ? role.end : role.end.label let endDate = typeof role.end === 'string' ? role.end : role.end.dateTime return (
  • Company
    {role.company}
    Role
    {role.title}
    Date
    {' '} {' '}
  • ) } function Resume() { let resume: Array = [ { company: 'Sonr', title: 'Founder', logo: logoPlanetaria, start: '2020', end: { label: 'Present', dateTime: new Date().getFullYear().toString(), }, }, { company: 'Airbnb', title: 'Product Designer', logo: logoAirbnb, start: '2014', end: '2019', }, { company: 'Facebook', title: 'iOS Software Engineer', logo: logoFacebook, start: '2011', end: '2014', }, { company: 'Starbucks', title: 'Shift Supervisor', logo: logoStarbucks, start: '2008', end: '2011', }, ] return (

    Work

      {resume.map((role, roleIndex) => ( ))}
    ) } function Photos() { let rotations = ['rotate-2', '-rotate-2', 'rotate-2', 'rotate-2', '-rotate-2'] return (
    {[image1, image2, image3, image4, image5].map((image, imageIndex) => (
    ))}
    ) } export default async function Home() { let articles = (await getAllArticles()).slice(0, 4) return ( <>

    Software engineer, product designer, and founder.

    I’m Prad, a software designer and entrepreneur based in New York City. I’m the founder and Founder of Sonr, where we develop technologies that empower regular people to explore space on their own terms.

    {articles.map((article) => (
    ))}
    ) }