Skip to content

Commit 7718d51

Browse files
feat: add /faqs page (#14)
## Overview Adds an `/faqs` page very similar to https://2024.squiggleconf.com/faqs. 💖
1 parent a45be39 commit 7718d51

11 files changed

Lines changed: 297 additions & 11 deletions

File tree

.astro/types.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
/// <reference types="astro/client" />
2-
/// <reference path="content.d.ts" />

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"pnpm-lock.yaml"
1313
],
1414
"words": [
15+
"astropub",
1516
"astrojs",
1617
"Bluesky",
1718
"Devries",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"dependencies": {
3333
"@astrojs/check": "0.9.4",
3434
"@astrojs/vercel": "^8.0.7",
35+
"@astropub/md": "^1.0.0",
3536
"@fontsource-variable/inter": "^5.1.1",
3637
"@fontsource-variable/josefin-sans": "^5.1.1",
3738
"@fontsource-variable/urbanist": "^5.1.1",

pnpm-lock.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/assets/glyphs/dropdown.svg

Lines changed: 13 additions & 0 deletions
Loading

src/components/Header.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function hrefProps(pathname: string) {
2323
<a {...hrefProps("/about")}>About</a>
2424
<a {...hrefProps("/articles")}>Articles</a>
2525
<a {...hrefProps("/cfp")}>CFP</a>
26+
<a {...hrefProps("/faqs")}>FAQs</a>
2627
<a {...hrefProps(links.shop)}>Shop</a>
2728
<a {...hrefProps("/travel")}>Travel</a>
2829
<Button
@@ -42,6 +43,7 @@ function hrefProps(pathname: string) {
4243
<a {...hrefProps("/about")}>About</a>
4344
<a {...hrefProps("/articles")}>Articles</a>
4445
<a {...hrefProps("/cfp")}>CFP</a>
46+
<a {...hrefProps("/faqs")}>FAQs</a>
4547
<a {...hrefProps(links.shop)}>Shop</a>
4648
<a {...hrefProps("/travel")}>Travel</a>
4749
<Button
@@ -148,7 +150,7 @@ function hrefProps(pathname: string) {
148150
display: flex;
149151
align-items: center;
150152
font-weight: var(--fontWeightLight);
151-
gap: clamp(1rem, 1.5vw, 2rem);
153+
gap: clamp(0.75rem, 1.5vw, 2rem);
152154
}
153155

154156
.header-link-inactive {

src/components/Newsletter.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import ContentArea from "./ContentArea.astro";
88
import Heading from "./Heading.astro";
99
---
1010

11-
<div class="newsletter">
11+
<div class="newsletter" id="newsletter">
1212
<svg
1313
class="light-beam"
1414
fill="none"

src/layouts/base.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
--sizeContentAreaNormal: 70.5rem;
5757
--sizeContentAreaWide: 75rem;
5858

59+
--transitionMedium: 280ms;
60+
5961
color-scheme: light;
6062
}
6163

src/pages/articles/how-to-attend-squiggleconf-for-free.astro

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@ import PageLayout from "~/layouts/PageLayout.astro";
1212
1313
const description =
1414
"13 different ways you can get a free ticket to SquiggleConf 2025. Free!";
15+
16+
const title = "How to Attend SquiggleConf for Free";
1517
---
1618

17-
<PageLayout
18-
description={description}
19-
title="How to Attend SquiggleConf for Free"
20-
>
19+
<PageLayout description={description} title={title}>
2120
<Hero>
22-
<HeroContentsStandard
23-
heading="How to Attend SquiggleConf for Free"
24-
squiggly="none"
25-
>
21+
<HeroContentsStandard heading={title} squiggly="none">
2622
{description}
2723
</HeroContentsStandard>
2824
</Hero>

src/pages/cfp.astro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ const topicAreas = [
243243
Apply to the CFP here!
244244
<Arrow />
245245
</Button>
246+
247+
<BodyText class="faq-link">
248+
See <a href="/faqs#cfp">FAQs &gt; CFP</a> for answers to common questions.
249+
</BodyText>
246250
</CommonContent>
247251
</PageLayout>
248252

@@ -259,4 +263,8 @@ const topicAreas = [
259263
.apply-button-bottom {
260264
margin: 3.5rem auto 0;
261265
}
266+
267+
.faq-link {
268+
margin-top: 3.5rem;
269+
}
262270
</style>

0 commit comments

Comments
 (0)