Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference types="astro/client" />
/// <reference path="content.d.ts" />
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know why this keeps getting added 🤷 some new Astro thing?

4 changes: 4 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ export default defineConfig({
},
integrations: [konamiEmojiBlast()],
output: "server",
redirects: {
"/how-to-attend-squiggleconf-for-free":
"/articles/how-to-attend-squiggleconf-for-free",
},
site: "https://2025.squiggleconf.com",
});
42 changes: 42 additions & 0 deletions src/components/ArticlesList.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
import BodyText from "~/components/BodyText.astro";
import Heading from "./Heading.astro";
import ContentArea from "./ContentArea.astro";

export interface ArticleListInfo {
title: string;
slug: string;
description: string;
}

interface Props {
articles: ArticleListInfo[];
}
---

<ContentArea class="articles-list">
<ul>
{
Astro.props.articles.map((article) => (
<li>
<a href={article.slug}>
<Heading level="h2">{article.title}</Heading>
</a>
<BodyText>{article.description}</BodyText>
</li>
))
}
</ul>
</ContentArea>

<style>
ul {
padding: 5rem 0;
list-style-type: none;
}

h2 {
font-size: var(--fontSizeMedium);
margin-bottom: 0.5rem;
}
</style>
8 changes: 5 additions & 3 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ function hrefProps(pathname: string) {
<details id="details">
<summary aria-label="Toggle header">≡</summary>
<div class="header-contents-mobile">
<a {...hrefProps("/")}>Home</a>
<a {...hrefProps("/about")}>About</a>
<a {...hrefProps("/articles")}>Articles</a>
<a {...hrefProps("/cfp")}>CFP</a>
<a {...hrefProps(links.shop)}>Shop</a>
<a {...hrefProps("/travel")}>Travel</a>
Expand All @@ -38,7 +39,8 @@ function hrefProps(pathname: string) {
<ContentArea class="header-content-area-wide" width="wide">
<a class="logo" href="/"><Logo year /></a>
<div class="header-links">
<a {...hrefProps("/")}>Home</a>
<a {...hrefProps("/about")}>About</a>
<a {...hrefProps("/articles")}>Articles</a>
<a {...hrefProps("/cfp")}>CFP</a>
<a {...hrefProps(links.shop)}>Shop</a>
<a {...hrefProps("/travel")}>Travel</a>
Expand Down Expand Up @@ -146,7 +148,7 @@ function hrefProps(pathname: string) {
display: flex;
align-items: center;
font-weight: var(--fontWeightLight);
gap: 2rem;
gap: clamp(1rem, 1.5vw, 2rem);
}

.header-link-inactive {
Expand Down
28 changes: 28 additions & 0 deletions src/pages/articles.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
import ArticlesList from "~/components/ArticlesList.astro";
import Hero from "~/components/hero/Hero.astro";
import HeroContentsStandard from "~/components/hero/HeroContentsStandard.astro";
import PageLayout from "~/layouts/PageLayout.astro";

const description =
"Assorted guides, information, updates, and other useful articles from the SquiggleConf team.";
---

<PageLayout description={description} title="Articles">
<Hero>
<HeroContentsStandard heading="Articles">
{description}
</HeroContentsStandard>
</Hero>

<ArticlesList
articles={[
{
description:
"13 different ways you can get a free ticket to SquiggleConf 2025. Free!",
slug: "/articles/how-to-attend-squiggleconf-for-free",
title: "How to Attend SquiggleConf for Free",
},
]}
/>
</PageLayout>