@atom63/create 0.0.0-stage → 0.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/LICENSE +27 -0
  2. package/README.md +70 -2
  3. package/package.json +27 -3
  4. package/src/generate.mjs +281 -0
  5. package/src/index.mjs +64 -0
  6. package/starter/app/AGENTS.md +17 -0
  7. package/starter/app/README.md +40 -0
  8. package/starter/app/src/app.ts +4 -0
  9. package/starter/app/src/components/app-layout.tsx +49 -0
  10. package/starter/app/src/components/appearance-settings.tsx +87 -0
  11. package/starter/app/src/pages/not-found.tsx +30 -0
  12. package/starter/app/src/router.tsx +79 -0
  13. package/starter/app/src/styles.css +31 -0
  14. package/starter/app/vite.config.ts +10 -0
  15. package/starter/base/_gitignore +4 -0
  16. package/starter/base/components.json +21 -0
  17. package/starter/base/index.html +12 -0
  18. package/starter/base/src/lib/utils.ts +7 -0
  19. package/starter/base/src/main.tsx +21 -0
  20. package/starter/base/src/theme.tsx +89 -0
  21. package/starter/base/tsconfig.json +21 -0
  22. package/starter/content/AGENTS.md +16 -0
  23. package/starter/content/README.md +35 -0
  24. package/starter/content/src/components/site-footer.tsx +9 -0
  25. package/starter/content/src/components/site-header.tsx +32 -0
  26. package/starter/content/src/mdx.d.ts +7 -0
  27. package/starter/content/src/styles.css +32 -0
  28. package/starter/content/vite.config.ts +25 -0
  29. package/starter/docs/src/components/docs-sidebar.tsx +35 -0
  30. package/starter/docs/src/content/docs/installation.mdx +22 -0
  31. package/starter/docs/src/content/docs/introduction.mdx +22 -0
  32. package/starter/docs/src/content/docs/writing-pages.mdx +36 -0
  33. package/starter/docs/src/content/docs.ts +60 -0
  34. package/starter/docs/src/pages/doc-page.tsx +57 -0
  35. package/starter/docs/src/pages/home.tsx +39 -0
  36. package/starter/docs/src/pages/not-found.tsx +30 -0
  37. package/starter/docs/src/router.tsx +86 -0
  38. package/starter/docs/src/site.ts +7 -0
  39. package/starter/portfolio/AGENTS.md +28 -0
  40. package/starter/portfolio/README.md +152 -0
  41. package/starter/portfolio/public/plates/hero.svg +40 -0
  42. package/starter/portfolio/public/projects/front-desk-scheduling/calendar.svg +30 -0
  43. package/starter/portfolio/public/projects/front-desk-scheduling/cover.svg +28 -0
  44. package/starter/portfolio/public/projects/ledger-design-system/cover.svg +13 -0
  45. package/starter/portfolio/public/projects/night-trip-planner/cover.svg +19 -0
  46. package/starter/portfolio/public/projects/night-trip-planner/flow.svg +34 -0
  47. package/starter/portfolio/src/components/mdx-components.tsx +25 -0
  48. package/starter/portfolio/src/components/project-card.tsx +32 -0
  49. package/starter/portfolio/src/components/site-footer.tsx +33 -0
  50. package/starter/portfolio/src/components/site-header.tsx +124 -0
  51. package/starter/portfolio/src/components/site-layout.tsx +62 -0
  52. package/starter/portfolio/src/content/projects/front-desk-scheduling.mdx +47 -0
  53. package/starter/portfolio/src/content/projects/ledger-design-system.mdx +40 -0
  54. package/starter/portfolio/src/content/projects/night-trip-planner.mdx +51 -0
  55. package/starter/portfolio/src/content/projects.ts +43 -0
  56. package/starter/portfolio/src/content/resume.ts +80 -0
  57. package/starter/portfolio/src/content/timeline.ts +69 -0
  58. package/starter/portfolio/src/content/writing/a-design-system-for-one.mdx +21 -0
  59. package/starter/portfolio/src/content/writing/case-studies-that-show-the-work.mdx +24 -0
  60. package/starter/portfolio/src/content/writing/designing-for-interruptions.mdx +23 -0
  61. package/starter/portfolio/src/content/writing.ts +37 -0
  62. package/starter/portfolio/src/modules/assistant/answers.ts +60 -0
  63. package/starter/portfolio/src/modules/assistant/assistant.tsx +107 -0
  64. package/starter/portfolio/src/modules/assistant/transport.ts +36 -0
  65. package/starter/portfolio/src/modules/dock/dock.tsx +141 -0
  66. package/starter/portfolio/src/modules/slides/decks.ts +49 -0
  67. package/starter/portfolio/src/modules/slides/slides-pages.tsx +128 -0
  68. package/starter/portfolio/src/modules/widgets/widget-board.tsx +121 -0
  69. package/starter/portfolio/src/pages/home.tsx +139 -0
  70. package/starter/portfolio/src/pages/not-found.tsx +30 -0
  71. package/starter/portfolio/src/pages/project-page.tsx +102 -0
  72. package/starter/portfolio/src/pages/projects-index.tsx +39 -0
  73. package/starter/portfolio/src/pages/resume.tsx +97 -0
  74. package/starter/portfolio/src/pages/timeline.tsx +89 -0
  75. package/starter/portfolio/src/pages/writing-index.tsx +64 -0
  76. package/starter/portfolio/src/pages/writing-post.tsx +43 -0
  77. package/starter/portfolio/src/portfolio.config.ts +88 -0
  78. package/starter/portfolio/src/router.tsx +113 -0
  79. package/starter/portfolio/src/styles.css +38 -0
  80. package/starter/site/src/content/blog/hello-world.mdx +25 -0
  81. package/starter/site/src/content/blog/writing-with-mdx.mdx +29 -0
  82. package/starter/site/src/content/posts.ts +37 -0
  83. package/starter/site/src/pages/blog-index.tsx +60 -0
  84. package/starter/site/src/pages/blog-post.tsx +43 -0
  85. package/starter/site/src/pages/home.tsx +143 -0
  86. package/starter/site/src/pages/not-found.tsx +30 -0
  87. package/starter/site/src/router.tsx +82 -0
  88. package/starter/site/src/site.ts +7 -0
  89. package/versions.json +27 -0
@@ -0,0 +1,121 @@
1
+ import { type WidgetSize, WidgetGrid, widgetTypeStyle, WidgetViewport } from '@atom63/widgets'
2
+ import {
3
+ WidgetCard,
4
+ WidgetCardContent,
5
+ WidgetCardHeader,
6
+ WidgetCardHeaderLeft,
7
+ WidgetCardTitle,
8
+ } from '@atom63/widgets/primitives'
9
+ import { SectionHeader } from '@atom63/ui-react/layout'
10
+ import { Link } from '@tanstack/react-router'
11
+ import { BriefcaseBusiness, Clock, PenLine } from 'lucide-react'
12
+ import { type ReactNode, useEffect, useState } from 'react'
13
+
14
+ import { resume } from '../../content/resume'
15
+ import { formatDate, posts } from '../../content/writing'
16
+ import { portfolio } from '../../portfolio.config'
17
+
18
+ const fill = { blockSize: '100%', inlineSize: '100%' }
19
+ const muted = { color: 'var(--a63-text-secondary)', margin: 0 }
20
+
21
+ function Tile({
22
+ children,
23
+ icon,
24
+ size,
25
+ title,
26
+ }: {
27
+ children: ReactNode
28
+ icon: ReactNode
29
+ size: WidgetSize
30
+ title: string
31
+ }) {
32
+ return (
33
+ <WidgetViewport size={size}>
34
+ <WidgetCard size={size} style={fill}>
35
+ <WidgetCardHeader>
36
+ <WidgetCardHeaderLeft>
37
+ <WidgetCardTitle icon={icon}>{title}</WidgetCardTitle>
38
+ </WidgetCardHeaderLeft>
39
+ </WidgetCardHeader>
40
+ <WidgetCardContent style={{ flex: 1, justifyContent: 'flex-end' }}>
41
+ {children}
42
+ </WidgetCardContent>
43
+ </WidgetCard>
44
+ </WidgetViewport>
45
+ )
46
+ }
47
+
48
+ function useNow(intervalMs: number): Date {
49
+ const [now, setNow] = useState(() => new Date())
50
+ useEffect(() => {
51
+ const timer = setInterval(() => setNow(new Date()), intervalMs)
52
+ return () => clearInterval(timer)
53
+ }, [intervalMs])
54
+ return now
55
+ }
56
+
57
+ /* Four tracks on a wide screen, two on a phone; widget tracks are fixed, not fluid. */
58
+ function useColumns(): number {
59
+ const query = '(min-width: 48rem)'
60
+ const [wide, setWide] = useState(() => window.matchMedia(query).matches)
61
+ useEffect(() => {
62
+ const media = window.matchMedia(query)
63
+ const onChange = () => setWide(media.matches)
64
+ media.addEventListener('change', onChange)
65
+ return () => media.removeEventListener('change', onChange)
66
+ }, [])
67
+ return wide ? 4 : 2
68
+ }
69
+
70
+ /**
71
+ * A board of small widgets built on @atom63/widgets: the time where you are,
72
+ * what you do now and your latest post. Add a tile by composing a WidgetCard.
73
+ */
74
+ export function WidgetBoard() {
75
+ const now = useNow(30_000)
76
+ const columns = useColumns()
77
+ const current = resume.experience.find(role => role.end === null)
78
+ const latest = posts[0]
79
+
80
+ return (
81
+ <div className="grid gap-6">
82
+ <SectionHeader level={2} title="Right now" variant="secondary" />
83
+ <WidgetGrid columns={columns} gap={12}>
84
+ <Tile icon={<Clock aria-hidden />} size="small" title="Local time">
85
+ <span style={widgetTypeStyle('display', 'small')}>
86
+ {now.toLocaleTimeString('en', {
87
+ hour: '2-digit',
88
+ hourCycle: 'h23',
89
+ minute: '2-digit',
90
+ timeZone: portfolio.person.timeZone,
91
+ })}
92
+ </span>
93
+ <span style={{ ...muted, ...widgetTypeStyle('label', 'small') }}>
94
+ {portfolio.person.location.split(',')[0]}
95
+ </span>
96
+ </Tile>
97
+ <Tile icon={<BriefcaseBusiness aria-hidden />} size="small" title="Now">
98
+ <span style={widgetTypeStyle('headline', 'small')}>
99
+ {current?.company ?? 'Open to work'}
100
+ </span>
101
+ <span style={{ ...muted, ...widgetTypeStyle('label', 'small') }}>{current?.title}</span>
102
+ </Tile>
103
+ {latest ? (
104
+ <Tile icon={<PenLine aria-hidden />} size="medium" title="Latest writing">
105
+ <Link
106
+ className="text-foreground hover:underline"
107
+ params={{ slug: latest.slug }}
108
+ style={widgetTypeStyle('headline', 'medium')}
109
+ to="/writing/$slug"
110
+ >
111
+ {latest.title}
112
+ </Link>
113
+ <span style={{ ...muted, ...widgetTypeStyle('label', 'medium') }}>
114
+ {formatDate(latest.date)}
115
+ </span>
116
+ </Tile>
117
+ ) : null}
118
+ </WidgetGrid>
119
+ </div>
120
+ )
121
+ }
@@ -0,0 +1,139 @@
1
+ import { Button } from '@atom63/ui-react'
2
+ import { Container, Page, Section, SectionHeader } from '@atom63/ui-react/layout'
3
+ import { Link } from '@tanstack/react-router'
4
+ import { ArrowRight, Sparkles } from 'lucide-react'
5
+ import { lazy, Suspense } from 'react'
6
+
7
+ import { ProjectCard } from '../components/project-card'
8
+ import { featuredProjects } from '../content/projects'
9
+ import { resume } from '../content/resume'
10
+ import { formatDate, posts } from '../content/writing'
11
+ import { useAssistant } from '../modules/assistant/assistant'
12
+ import { isOn, portfolio } from '../portfolio.config'
13
+
14
+ const WidgetBoard = lazy(() =>
15
+ import('../modules/widgets/widget-board').then(module => ({ default: module.WidgetBoard }))
16
+ )
17
+
18
+ export function HomePage() {
19
+ const assistant = useAssistant()
20
+ const { headline, intro, location, role } = portfolio.person
21
+
22
+ return (
23
+ <Page>
24
+ <Container maxWidth="wide">
25
+ {/* The plate: the art that sets the tone. Swap it in portfolio.config.ts. */}
26
+ <Section removeTopSpacing>
27
+ <img
28
+ alt={portfolio.hero.plateAlt}
29
+ className="aspect-[4/3] w-full rounded-3xl object-cover md:aspect-[21/9]"
30
+ src={portfolio.hero.plate}
31
+ />
32
+ <div className="mt-10 grid gap-8 md:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] md:items-end">
33
+ <SectionHeader description={intro} level={1} title={headline} variant="display" />
34
+ <div className="grid gap-4">
35
+ <p className="text-muted-foreground text-sm">
36
+ {role}
37
+ <br />
38
+ {location}
39
+ </p>
40
+ <div className="flex flex-wrap gap-2">
41
+ <Button render={<Link to="/projects" />}>
42
+ See the work
43
+ <ArrowRight aria-hidden />
44
+ </Button>
45
+ {isOn('assistant') && assistant ? (
46
+ <Button onClick={assistant.open} variant="outline">
47
+ <Sparkles aria-hidden />
48
+ Ask about me
49
+ </Button>
50
+ ) : null}
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </Section>
55
+
56
+ <Section>
57
+ <div className="flex flex-wrap items-end justify-between gap-4">
58
+ <SectionHeader level={2} title="Selected work" variant="secondary" />
59
+ <Button render={<Link to="/projects" />} size="sm" tone="muted" variant="ghost">
60
+ All projects
61
+ <ArrowRight aria-hidden />
62
+ </Button>
63
+ </div>
64
+ <ul className="mt-6 grid gap-6 md:grid-cols-2">
65
+ {featuredProjects.map(project => (
66
+ <li key={project.slug}>
67
+ <ProjectCard project={project} />
68
+ </li>
69
+ ))}
70
+ </ul>
71
+ </Section>
72
+
73
+ {isOn('widgetBoard') ? (
74
+ <Section>
75
+ <Suspense fallback={null}>
76
+ <WidgetBoard />
77
+ </Suspense>
78
+ </Section>
79
+ ) : null}
80
+
81
+ <Section>
82
+ <div className="grid gap-12 md:grid-cols-2">
83
+ <div>
84
+ <div className="flex flex-wrap items-end justify-between gap-4">
85
+ <SectionHeader level={2} title="Writing" variant="secondary" />
86
+ <Button render={<Link to="/writing" />} size="sm" tone="muted" variant="ghost">
87
+ All writing
88
+ <ArrowRight aria-hidden />
89
+ </Button>
90
+ </div>
91
+ <ul className="mt-6 grid gap-6">
92
+ {posts.slice(0, 3).map(post => (
93
+ <li key={post.slug}>
94
+ <Link
95
+ className="group grid gap-1 rounded-md"
96
+ params={{ slug: post.slug }}
97
+ to="/writing/$slug"
98
+ >
99
+ <span className="text-muted-foreground text-xs">{formatDate(post.date)}</span>
100
+ <span className="text-foreground font-semibold group-hover:underline">
101
+ {post.title}
102
+ </span>
103
+ <span className="text-muted-foreground line-clamp-2 text-sm">
104
+ {post.description}
105
+ </span>
106
+ </Link>
107
+ </li>
108
+ ))}
109
+ </ul>
110
+ </div>
111
+ <div>
112
+ <div className="flex flex-wrap items-end justify-between gap-4">
113
+ <SectionHeader level={2} title="Experience" variant="secondary" />
114
+ <Button render={<Link to="/resume" />} size="sm" tone="muted" variant="ghost">
115
+ Resume
116
+ <ArrowRight aria-hidden />
117
+ </Button>
118
+ </div>
119
+ <ol className="mt-6 grid gap-5">
120
+ {resume.experience.map(item => (
121
+ <li
122
+ className="grid grid-cols-[minmax(0,1fr)_auto] gap-x-4"
123
+ key={`${item.company}-${item.start}`}
124
+ >
125
+ <span className="text-foreground font-medium">{item.company}</span>
126
+ <span className="text-muted-foreground text-sm tabular-nums">
127
+ {item.start.slice(0, 4)}–{item.end ? item.end.slice(0, 4) : 'Now'}
128
+ </span>
129
+ <span className="text-muted-foreground text-sm">{item.title}</span>
130
+ </li>
131
+ ))}
132
+ </ol>
133
+ </div>
134
+ </div>
135
+ </Section>
136
+ </Container>
137
+ </Page>
138
+ )
139
+ }
@@ -0,0 +1,30 @@
1
+ import {
2
+ Button,
3
+ Empty,
4
+ EmptyContent,
5
+ EmptyDescription,
6
+ EmptyHeader,
7
+ EmptyTitle,
8
+ } from '@atom63/ui-react'
9
+ import { Container, Page } from '@atom63/ui-react/layout'
10
+ import { Link } from '@tanstack/react-router'
11
+
12
+ export function NotFoundPage() {
13
+ return (
14
+ <Page>
15
+ <Container maxWidth="narrow">
16
+ <Empty>
17
+ <EmptyHeader>
18
+ <EmptyTitle aria-level={1}>Page not found</EmptyTitle>
19
+ <EmptyDescription>
20
+ The page you are looking for does not exist or has moved.
21
+ </EmptyDescription>
22
+ </EmptyHeader>
23
+ <EmptyContent>
24
+ <Button render={<Link to="/" />}>Go home</Button>
25
+ </EmptyContent>
26
+ </Empty>
27
+ </Container>
28
+ </Page>
29
+ )
30
+ }
@@ -0,0 +1,102 @@
1
+ import { ArticleMDXContentProvider } from '@atom63/mdx/article'
2
+ import { Badge, Button } from '@atom63/ui-react'
3
+ import { Container, Page, Section, SectionHeader } from '@atom63/ui-react/layout'
4
+ import { Link, useParams } from '@tanstack/react-router'
5
+ import { ArrowLeft } from 'lucide-react'
6
+
7
+ import { mdxComponents } from '../components/mdx-components'
8
+ import { ProjectCard } from '../components/project-card'
9
+ import { findProject, projects } from '../content/projects'
10
+ import { NotFoundPage } from './not-found'
11
+
12
+ function Fact({ children, label }: { children: React.ReactNode; label: string }) {
13
+ return (
14
+ <div className="grid content-start gap-1">
15
+ <dt className="text-muted-foreground text-xs font-medium tracking-wide uppercase">{label}</dt>
16
+ <dd className="text-foreground text-sm">{children}</dd>
17
+ </div>
18
+ )
19
+ }
20
+
21
+ /**
22
+ * A case study: the header and facts from the frontmatter, the cover, then
23
+ * the MDX body (problem, role, process, outcome) and more projects.
24
+ */
25
+ export function ProjectPage() {
26
+ const { slug } = useParams({ from: '/site/projects/$slug' })
27
+ const project = findProject(slug)
28
+ if (!project) {
29
+ return <NotFoundPage />
30
+ }
31
+ const { Content } = project
32
+ const others = projects.filter(other => other.slug !== project.slug).slice(0, 2)
33
+
34
+ /*
35
+ * One column: the header, the facts, the MDX body (prose and blocks alike)
36
+ * and more projects share the reading column's left edge. Only the cover
37
+ * breaks out, as a wide band.
38
+ */
39
+ return (
40
+ <Page>
41
+ <Container maxWidth="narrower">
42
+ <Section removeTopSpacing>
43
+ <Button render={<Link to="/projects" />} size="sm" tone="muted" variant="ghost">
44
+ <ArrowLeft aria-hidden />
45
+ All projects
46
+ </Button>
47
+ <SectionHeader
48
+ className="mt-6"
49
+ description={project.summary}
50
+ level={1}
51
+ title={project.title}
52
+ variant="display"
53
+ />
54
+ <dl className="mt-10 grid grid-cols-2 gap-6 sm:grid-cols-4">
55
+ <Fact label="Role">{project.role}</Fact>
56
+ <Fact label="Timeline">{project.timeline}</Fact>
57
+ <Fact label="Team">{project.team}</Fact>
58
+ <Fact label="Tools">
59
+ <span className="flex flex-wrap gap-1">
60
+ {project.tools.map(tool => (
61
+ <Badge key={tool} size="sm" variant="secondary">
62
+ {tool}
63
+ </Badge>
64
+ ))}
65
+ </span>
66
+ </Fact>
67
+ </dl>
68
+ </Section>
69
+ </Container>
70
+
71
+ <Container maxWidth="wide">
72
+ <img
73
+ alt={project.coverAlt}
74
+ className="aspect-video w-full rounded-3xl object-cover"
75
+ src={project.cover}
76
+ />
77
+ </Container>
78
+
79
+ <Container maxWidth="narrower">
80
+ <article className="mt-12">
81
+ {/* `article` keeps blocks in the text column instead of breaking out wide. */}
82
+ <ArticleMDXContentProvider components={mdxComponents} variant="article">
83
+ <Content />
84
+ </ArticleMDXContentProvider>
85
+ </article>
86
+
87
+ {others.length > 0 ? (
88
+ <Section>
89
+ <SectionHeader level={2} title="More projects" variant="secondary" />
90
+ <ul className="mt-6 grid gap-6 sm:grid-cols-2">
91
+ {others.map(other => (
92
+ <li key={other.slug}>
93
+ <ProjectCard project={other} />
94
+ </li>
95
+ ))}
96
+ </ul>
97
+ </Section>
98
+ ) : null}
99
+ </Container>
100
+ </Page>
101
+ )
102
+ }
@@ -0,0 +1,39 @@
1
+ import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from '@atom63/ui-react'
2
+ import { Container, Page, Section, SectionHeader } from '@atom63/ui-react/layout'
3
+
4
+ import { ProjectCard } from '../components/project-card'
5
+ import { projects } from '../content/projects'
6
+
7
+ export function ProjectsIndexPage() {
8
+ return (
9
+ <Page>
10
+ <Container maxWidth="wide">
11
+ <Section removeTopSpacing>
12
+ <SectionHeader
13
+ description="Case studies: the problem, my role, the process and what changed."
14
+ level={1}
15
+ title="Projects"
16
+ />
17
+ {projects.length === 0 ? (
18
+ <Empty className="mt-8">
19
+ <EmptyHeader>
20
+ <EmptyTitle>No projects yet</EmptyTitle>
21
+ <EmptyDescription>
22
+ Add an .mdx file to src/content/projects to publish one.
23
+ </EmptyDescription>
24
+ </EmptyHeader>
25
+ </Empty>
26
+ ) : (
27
+ <ul className="mt-8 grid gap-6 md:grid-cols-2 lg:grid-cols-3">
28
+ {projects.map(project => (
29
+ <li key={project.slug}>
30
+ <ProjectCard project={project} />
31
+ </li>
32
+ ))}
33
+ </ul>
34
+ )}
35
+ </Section>
36
+ </Container>
37
+ </Page>
38
+ )
39
+ }
@@ -0,0 +1,97 @@
1
+ import { Badge, Button, Separator } from '@atom63/ui-react'
2
+ import { Container, Page, Section, SectionHeader } from '@atom63/ui-react/layout'
3
+ import { Printer } from 'lucide-react'
4
+
5
+ import { formatMonth, resume } from '../content/resume'
6
+ import { portfolio } from '../portfolio.config'
7
+
8
+ /** The resume from src/content/resume.ts. Print it, or save it as a PDF, from the browser. */
9
+ export function ResumePage() {
10
+ const { email, links, location, name, role } = portfolio.person
11
+
12
+ return (
13
+ <Page>
14
+ <Container maxWidth="narrow">
15
+ <Section removeTopSpacing>
16
+ <div className="flex flex-wrap items-start justify-between gap-4">
17
+ <SectionHeader description={`${role} · ${location}`} level={1} title={name} />
18
+ <Button className="print:hidden" onClick={() => window.print()} variant="outline">
19
+ <Printer aria-hidden />
20
+ Print or save as PDF
21
+ </Button>
22
+ </div>
23
+ <ul className="text-muted-foreground mt-4 flex flex-wrap gap-x-4 gap-y-1 text-sm">
24
+ <li>
25
+ <a className="hover:text-foreground underline" href={`mailto:${email}`}>
26
+ {email}
27
+ </a>
28
+ </li>
29
+ {links.map(link => (
30
+ <li key={link.href}>
31
+ <a className="hover:text-foreground underline" href={link.href}>
32
+ {link.label}
33
+ </a>
34
+ </li>
35
+ ))}
36
+ </ul>
37
+ <p className="text-foreground mt-8 max-w-2xl text-base leading-7">{resume.summary}</p>
38
+ </Section>
39
+
40
+ <Separator />
41
+
42
+ <Section>
43
+ <SectionHeader level={2} title="Experience" variant="secondary" />
44
+ <ol className="mt-6 grid gap-8">
45
+ {resume.experience.map(item => (
46
+ <li className="grid gap-2" key={`${item.company}-${item.start}`}>
47
+ <div className="flex flex-wrap items-baseline justify-between gap-x-4">
48
+ <h3 className="text-foreground text-base font-semibold">
49
+ {item.title}, {item.company}
50
+ </h3>
51
+ <span className="text-muted-foreground text-sm tabular-nums">
52
+ {formatMonth(item.start)} – {formatMonth(item.end)}
53
+ </span>
54
+ </div>
55
+ <ul className="text-muted-foreground grid list-disc gap-1 ps-5 text-sm leading-6">
56
+ {item.highlights.map(highlight => (
57
+ <li key={highlight}>{highlight}</li>
58
+ ))}
59
+ </ul>
60
+ </li>
61
+ ))}
62
+ </ol>
63
+ </Section>
64
+
65
+ <Separator />
66
+
67
+ <Section>
68
+ <div className="grid gap-10 md:grid-cols-2">
69
+ <div>
70
+ <SectionHeader level={2} title="Education" variant="secondary" />
71
+ <ul className="mt-6 grid gap-4">
72
+ {resume.education.map(item => (
73
+ <li className="grid gap-1" key={item.school}>
74
+ <span className="text-foreground font-medium">{item.degree}</span>
75
+ <span className="text-muted-foreground text-sm">
76
+ {item.school}, {item.start}–{item.end}
77
+ </span>
78
+ </li>
79
+ ))}
80
+ </ul>
81
+ </div>
82
+ <div>
83
+ <SectionHeader level={2} title="Skills" variant="secondary" />
84
+ <ul className="mt-6 flex flex-wrap gap-2">
85
+ {resume.skills.map(skill => (
86
+ <li key={skill}>
87
+ <Badge variant="secondary">{skill}</Badge>
88
+ </li>
89
+ ))}
90
+ </ul>
91
+ </div>
92
+ </div>
93
+ </Section>
94
+ </Container>
95
+ </Page>
96
+ )
97
+ }
@@ -0,0 +1,89 @@
1
+ import { Timeline } from '@atom63/mdx/blocks'
2
+ import { Badge, SegmentedControl } from '@atom63/ui-react'
3
+ import { Container, Page, Section, SectionHeader } from '@atom63/ui-react/layout'
4
+ import { Link } from '@tanstack/react-router'
5
+ import { useState } from 'react'
6
+
7
+ import { timeline, type TimelineKind, timelineKindLabels } from '../content/timeline'
8
+
9
+ type Filter = 'all' | TimelineKind
10
+
11
+ const filters: { label: string; value: Filter }[] = [
12
+ { label: 'All', value: 'all' },
13
+ { label: 'Projects', value: 'project' },
14
+ { label: 'Writing', value: 'writing' },
15
+ { label: 'Roles', value: 'role' },
16
+ ]
17
+
18
+ const month = (date: string) =>
19
+ new Date(`${date.slice(0, 7)}-01T00:00:00`).toLocaleDateString('en', { month: 'short' })
20
+
21
+ /** Projects, writing, roles and milestones on one line, grouped by year. */
22
+ export function TimelinePage() {
23
+ const [filter, setFilter] = useState<Filter>('all')
24
+ const entries = timeline.filter(entry => filter === 'all' || entry.kind === filter)
25
+ const years = [...new Set(entries.map(entry => entry.date.slice(0, 4)))]
26
+
27
+ return (
28
+ <Page>
29
+ <Container maxWidth="narrow">
30
+ <Section removeTopSpacing>
31
+ <SectionHeader
32
+ description="Everything in order: work, writing and the road here."
33
+ level={1}
34
+ title="Timeline"
35
+ />
36
+ <div className="mt-8 max-w-full overflow-x-auto">
37
+ <SegmentedControl
38
+ aria-label="Show"
39
+ items={filters}
40
+ onValueChange={value => setFilter(value as Filter)}
41
+ size="sm"
42
+ value={filter}
43
+ />
44
+ </div>
45
+ <div className="mt-10 grid gap-12">
46
+ {years.map(year => (
47
+ <section aria-labelledby={`year-${year}`} key={year}>
48
+ <h2
49
+ className="font-heading text-foreground mb-4 text-2xl font-semibold"
50
+ id={`year-${year}`}
51
+ >
52
+ {year}
53
+ </h2>
54
+ <Timeline>
55
+ {entries
56
+ .filter(entry => entry.date.startsWith(year))
57
+ .map(entry => (
58
+ <Timeline.Item
59
+ date={month(entry.date)}
60
+ key={`${entry.kind}-${entry.date}-${entry.title}`}
61
+ title={
62
+ entry.href ? (
63
+ <Link className="hover:underline" to={entry.href}>
64
+ {entry.title}
65
+ </Link>
66
+ ) : (
67
+ entry.title
68
+ )
69
+ }
70
+ >
71
+ <span className="grid gap-2">
72
+ <span>{entry.description}</span>
73
+ <span>
74
+ <Badge size="sm" variant="outline">
75
+ {timelineKindLabels[entry.kind]}
76
+ </Badge>
77
+ </span>
78
+ </span>
79
+ </Timeline.Item>
80
+ ))}
81
+ </Timeline>
82
+ </section>
83
+ ))}
84
+ </div>
85
+ </Section>
86
+ </Container>
87
+ </Page>
88
+ )
89
+ }
@@ -0,0 +1,64 @@
1
+ import {
2
+ Card,
3
+ CardContent,
4
+ CardDescription,
5
+ CardLabel,
6
+ CardTitle,
7
+ cardLinkClassName,
8
+ Empty,
9
+ EmptyDescription,
10
+ EmptyHeader,
11
+ EmptyTitle,
12
+ } from '@atom63/ui-react'
13
+ import { Container, Page, Section, SectionHeader } from '@atom63/ui-react/layout'
14
+ import { Link } from '@tanstack/react-router'
15
+
16
+ import { formatDate, posts } from '../content/writing'
17
+
18
+ export function WritingIndexPage() {
19
+ return (
20
+ <Page>
21
+ <Container maxWidth="narrow">
22
+ <Section removeTopSpacing>
23
+ <SectionHeader
24
+ description="Notes on design, systems and the work in between."
25
+ level={1}
26
+ title="Writing"
27
+ />
28
+ {posts.length === 0 ? (
29
+ <Empty className="mt-8">
30
+ <EmptyHeader>
31
+ <EmptyTitle>No posts yet</EmptyTitle>
32
+ <EmptyDescription>
33
+ Add an .mdx file to src/content/writing to publish one.
34
+ </EmptyDescription>
35
+ </EmptyHeader>
36
+ </Empty>
37
+ ) : (
38
+ <ul className="mt-8 grid gap-4">
39
+ {posts.map(post => (
40
+ <li key={post.slug}>
41
+ <Link
42
+ className={cardLinkClassName}
43
+ params={{ slug: post.slug }}
44
+ to="/writing/$slug"
45
+ >
46
+ <Card variant="interactive">
47
+ <CardContent>
48
+ <CardLabel className="text-muted-foreground">
49
+ {formatDate(post.date)}
50
+ </CardLabel>
51
+ <CardTitle>{post.title}</CardTitle>
52
+ <CardDescription>{post.description}</CardDescription>
53
+ </CardContent>
54
+ </Card>
55
+ </Link>
56
+ </li>
57
+ ))}
58
+ </ul>
59
+ )}
60
+ </Section>
61
+ </Container>
62
+ </Page>
63
+ )
64
+ }