Debian Codegraph @

www/src/content/about.mdx

raw
1 ---
2 title: "About"
3 description: "The project, the team, and the community."
4 ---
5
6 import { getFile } from '../lib/content';
7 import { Image } from 'astro:assets';
8
9 import hypermediaSystems from '../assets/img/hypermedia-systems.png';
10 import serverDrivenWebApps from '../assets/img/server-driven-web-apps.png';
11 import modernFrontends from '../assets/img/modern-frontends-htmx.jpg';
12 import hypermediaSystemsJp from '../assets/img/hypermedia-systems-japanese.png';
13 import htmxJp from '../assets/img/htmx-japanese.png';
14
15 export const teamImages = import.meta.glob('/src/assets/img/team/*.{png,jpg,jpeg,webp}', {eager: true});
16 export const teamFile = await getFile('team.yaml');
17 export const team = (teamFile?.frontmatter || []).map(m => ({
18 ...m,
19 image: teamImages[m.image]?.default ?? m.image,
20 }));
21 export const creator = team.find(m => m.name === 'Carson Gross');
22 export const contributors = team.filter(m => m.name !== 'Carson Gross');
23 export const linksFile = await getFile('links.yaml');
24 export const communityLinks = linksFile?.frontmatter?.social || [];
25
26 export const books = [
27 {href: "https://hypermedia.systems", img: hypermediaSystems, title: "Hypermedia Systems"},
28 {href: "https://www.amazon.com/Server-Driven-Web-Apps-htmx-Language/dp/B0D9N35GKP", img: serverDrivenWebApps, title: "Server-Driven Web Apps with htmx"},
29 {href: "https://www.wimdeblauwe.com/books/modern-frontends-with-htmx/", img: modernFrontends, title: "Modern frontends with htmx"},
30 {href: "https://www.amazon.co.jp/-/en/dp/4297149451/", img: hypermediaSystemsJp, title: "ハイパーメディアシステム"},
31 {href: "https://www.amazon.co.jp/-/en/dp/4863544693", img: htmxJp, title: "HTMX (Japanese)"},
32 ];
33
34 export const communityItems = communityLinks.map((link) => ({
35 title: link.name,
36 description: link.description,
37 icon: link.iconClass,
38 url: link.url,
39 target: link.url.startsWith('http') ? "_blank" : undefined,
40 rel: link.url.startsWith('http') ? "noopener noreferrer" : undefined,
41 }));
42
43 export const exploreItems = [
44 {url: "/interviews", icon: "icon-[mdi--microphone]", title: "Interviews", description: "Conversations about hypermedia"},
45 {url: "/podcasts", icon: "icon-[mdi--podcast]", title: "Podcasts", description: "Talks and appearances"},
46 {url: "/memes", icon: "icon-[mdi--emoticon-cool-outline]", title: "Memes", description: "For hypermedia teens"},
47 ];
48
49 {/* Team */}
50 <section class="not-prose mb-16">
51 <h2 class="font-sans text-xs font-medium uppercase tracking-widest text-neutral-600 dark:text-neutral-400 mb-6">Team</h2>
52
53 {creator && (
54 <div class="card lg flex flex-col sm:flex-row sm:items-center gap-6 p-4 sm:p-6 mb-6">
55 <Image src={creator.image} alt={creator.name}
56 class="object-cover size-20 rounded-full" width={224} height={224} />
57 <div class="flex-1 min-w-0">
58 <div class="flex items-center gap-1">
59 <h3 class="font-chicago text-xl leading-none text-neutral-900 dark:text-neutral-100">{creator.name}</h3>
60 {creator.github && (
61 <a href={`https://github.com/${creator.github}`} target="_blank" rel="noopener noreferrer"
62 class="p-2 sm:p-3 flex justify-center items-center text-neutral-600 dark:text-neutral-400 interact:text-black dark:interact:text-white sm:transition"
63 aria-label={`${creator.name} on GitHub`}>
64 <i class="icon-[mdi--github] size-5.5"></i>
65 </a>
66 )}
67 </div>
68 <span class="inline-block font-mono text-[11px] uppercase tracking-wider text-neutral-600 dark:text-neutral-400">Creator of htmx / Head Grug (same thing)</span>
69 <p class="text-sm leading-relaxed mt-1.5" set:html={creator.content}></p>
70 </div>
71 </div>
72 )}
73
74 <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
75 {contributors.map((member) => (
76 <div class="card lg flex items-center gap-4 p-4">
77 <div class="shrink-0 size-12 rounded-full overflow-hidden ring-1 ring-neutral-100 dark:ring-neutral-800">
78 <Image src={member.image} alt={member.name}
79 class="w-full h-full object-cover" width={96} height={96} />
80 </div>
81 <div class="flex-1 min-w-0 pt-0.5">
82 <div class="flex items-center mb-1">
83 <h3 class="font-chicago text-sm leading-none text-neutral-900 dark:text-neutral-100">{member.name}</h3>
84 {member.github && (
85 <a href={`https://github.com/${member.github}`} target="_blank" rel="noopener noreferrer"
86 class="px-3 py-0.5 sm:py-1 flex justify-center items-center text-neutral-600 dark:text-neutral-400 interact:text-black dark:interact:text-white sm:transition"
87 aria-label={`${member.name} on GitHub`}>
88 <i class="icon-[mdi--github] size-4.5"></i>
89 </a>
90 )}
91 </div>
92 <p class="text-xs leading-relaxed" set:html={member.content}></p>
93 </div>
94 </div>
95 ))}
96 </div>
97 </section>
98
99 {/* Books */}
100 <section class="not-prose mb-16">
101 <h2 class="font-sans text-xs font-medium uppercase tracking-widest text-neutral-600 dark:text-neutral-400 mb-6">Books</h2>
102 <div class="grid grid-cols-[repeat(auto-fill,minmax(140px,1fr))] gap-8">
103 {books.map(book => (
104 <a href={book.href} target="_blank" rel="noopener noreferrer"
105 class="group font-chicago text-sm text-center text-neutral-900 dark:text-neutral-100 interact:text-blue-700 dark:interact:text-blue-300 interact:underline">
106 <Image src={book.img} alt={book.title} width={280} class="mb-3 rounded-sm group-interact:-translate-y-0.5" />
107 {book.title}
108 </a>
109 ))}
110 </div>
111 </section>
112
113 {/* Community */}
114 {[
115 { title: "Community", gridClass: "grid grid-cols-1 sm:grid-cols-2 gap-4", centered: false, items: communityItems },
116 { title: "Keep Exploring", gridClass: "grid grid-cols-1 sm:grid-cols-3 gap-4", centered: true, items: exploreItems },
117 ].map((section) => (
118 <section class="not-prose mb-16">
119 <h2 class="font-sans text-xs font-medium uppercase tracking-widest text-neutral-600 dark:text-neutral-400 mb-6">{section.title}</h2>
120 <div class={section.gridClass}>
121 {section.items.map((item) => (
122 <div class="card lg group relative isolate p-5 overflow-hidden outline-hidden interact:border-neutral-300 dark:interact:border-neutral-600 interact:bg-neutral-50 dark:interact:bg-neutral-875 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-offset-2 has-[:focus-visible]:ring-neutral-500 dark:has-[:focus-visible]:ring-neutral-400">
123 <div class:list={[
124 "flex items-center gap-4",
125 section.centered && "sm:flex-col sm:items-center sm:text-center"
126 ]}>
127 <i class={`${item.icon} ${section.centered ? 'size-8' : 'size-7'} text-neutral-500 dark:text-neutral-450 shrink-0 group-interact:text-neutral-700 dark:group-interact:text-neutral-300`}></i>
128 <div class:list={["min-w-0", section.centered || "flex-1"]}>
129 <h3 class="font-chicago text-sm text-neutral-900 dark:text-neutral-100 mb-1 sm:mb-2">
130 <a href={item.url} target={item.target} rel={item.rel}
131 class="outline-hidden text-neutral-700 dark:text-neutral-300 group-interact:text-neutral-900 dark:group-interact:text-white">
132 {item.title}
133 <span class="absolute inset-0 z-10"></span>
134 </a>
135 </h3>
136 <p class:list={[
137 "text-xs group-interact:text-neutral-700 dark:group-interact:text-neutral-300",
138 section.centered ? "" : "truncate"
139 ]}>
140 {item.description}
141 </p>
142 </div>
143 </div>
144 </div>
145 ))}
146 </div>
147 </section>
148 ))}