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
16 changes: 12 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
name: Deploy to GitHub Pages

# Pull requests get the same checks and build, without the deploy
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:

# Read-only by default; only the deploy job can write to Pages
permissions:
contents: read
pages: write
id-token: write

# One run per branch or pull request. A new push replaces a pull request's
# run, but never cancels a deploy that is under way.
concurrency:
group: "pages"
cancel-in-progress: true
group: pages-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
Expand Down Expand Up @@ -55,11 +58,16 @@ jobs:
# artifact as-is, without a Jekyll pass to hide _next/ from, and
# upload-pages-artifact v5 drops dotfiles by default anyway.
- name: Upload artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v5
with:
path: ./out

deploy:
if: github.event_name != 'pull_request'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ npm run dev

```
src/
app/ # App Router: root layout, global styles, shared metadata
(site)/ # The site's chrome (nav, deadline, footer) and its pages
app/ # App Router: the pages, the root layout with the site's
# chrome (nav, deadline, footer), styles and metadata
components/ # UI components
lib/ # Framework-free logic
public/ # Served as-is, including CNAME
media/brand/ # Logo
media/brand/ # Logo: light and dark PNGs, and the mark as SVG
assets/fonts/ # Fonts for the link-preview image (OFL)
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"format": "prettier --write ."
},
"dependencies": {
"katex": "^0.19.1",
"next": "16.4.3",
"react": "19.3.0",
"react-dom": "19.3.0"
Expand Down
File renamed without changes
File renamed without changes
9 changes: 0 additions & 9 deletions src/app/(site)/contact/page.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/app/(site)/get-involved/page.tsx

This file was deleted.

56 changes: 0 additions & 56 deletions src/app/(site)/layout.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/app/(site)/projects/page.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/app/(site)/sponsors/page.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions src/app/(site)/team/page.tsx

This file was deleted.

20 changes: 20 additions & 0 deletions src/app/contact/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { SectionPage } from "@/components/SectionPage";
import { CONTACTS, EMAIL } from "@/components/siteData";

import { sectionMetadata } from "../shared-metadata";

export const metadata = sectionMetadata("contact");

// The one nav page with content already: the email, then the other ways to
// reach the club
export default function ContactPage() {
return (
<SectionPage
slug="contact"
caption="No request yet. Send one."
label="Reach us"
headline={{ text: EMAIL, href: `mailto:${EMAIL}` }}
links={CONTACTS.slice(1)}
/>
);
}
Binary file modified src/app/favicon.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions src/app/get-involved/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SectionPage } from "@/components/SectionPage";
import { EMAIL } from "@/components/siteData";

import { sectionMetadata } from "../shared-metadata";

export const metadata = sectionMetadata("get-involved");

export default function GetInvolvedPage() {
// The landing page's calls to action lead here, so until the page has
// content it still offers a way to reach the club
return (
<SectionPage
slug="get-involved"
links={[{ label: "Email us", href: `mailto:${EMAIL}` }]}
/>
);
}
12 changes: 7 additions & 5 deletions src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@import "tailwindcss";
/* Tailwind for its preflight reset. Class detection is off, so words in
comments and copy can't generate utilities; antialiased, on <body>, is
the one utility in use. */
@import "tailwindcss" source(none);
@source inline("antialiased");

/* Light only. The colors come from the logo. Its PNG has the background
baked in, so whatever sits behind the logo must stay #f9f7f3. */
Expand All @@ -9,13 +13,11 @@
--ink: #11151b;
--accent: #8b2145;
--text: #3a3a3a;
--text-strong: var(--ink);
--text-muted: rgba(17, 21, 27, 0.55);

/* The site's drawing language: ink at fixed alphas over --bg, so a
hairline is the same weight in the nav, a figure and the footer.
--text-muted is too light for the 10-12px mono labels (about 4:1);
--ink-muted clears 4.5:1. --ink-faint never carries text. */
--ink-muted is 0.66 because the 10-12px mono labels need 4.5:1, which
0.55 misses (about 4:1). --ink-faint never carries text. */
--ink-muted: rgba(17, 21, 27, 0.66);
--ink-soft: rgba(17, 21, 27, 0.5);
--ink-faint: rgba(17, 21, 27, 0.3);
Expand Down
16 changes: 16 additions & 0 deletions src/app/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
--mono: var(--font-plex-mono), ui-monospace, Menlo, monospace;
--gutter: 12px;

min-height: 100vh;
padding: 0 var(--gutter);
background: var(--bg);
color: var(--ink);
font-family: var(--sans);
font-size: 16px;
Expand Down
66 changes: 58 additions & 8 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,79 @@
import type { Metadata, Viewport } from "next";
import { IBM_Plex_Mono, Inter_Tight } from "next/font/google";

import { description, openGraph, twitter } from "./shared-metadata";
import { Footer } from "@/components/Footer";
import { Late } from "@/components/Grid";
import { Nav } from "@/components/Nav";

import styles from "./layout.module.css";
import {
SITE_NAME,
description,
openGraph,
titleFor,
twitter,
} from "./shared-metadata";

import "./globals.css";

// Inter Tight for the wordmark and text: a neo-grotesk with tight default
// spacing that holds up at 100px+. IBM Plex Mono for labels, figure
// captions and buttons, like a datasheet. Math is typeset by KaTeX (Tex).
const sans = Inter_Tight({
subsets: ["latin"],
variable: "--font-inter-tight",
display: "swap",
});

const mono = IBM_Plex_Mono({
subsets: ["latin"],
weight: ["400", "500"],
variable: "--font-plex-mono",
display: "swap",
});

export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
};

// metadataBase turns relative metadata paths into the absolute URLs that
// link-preview crawlers need
// What every page shares. metadataBase turns relative metadata paths into
// the absolute URLs that link-preview crawlers need. Pages give a short
// title ("Team") and their own URL; the landing page keeps the default
// title.
export const metadata: Metadata = {
metadataBase: new URL("https://ml3labs.com"),
title: "ML³ Labs",
title: {
default: SITE_NAME,
template: titleFor("%s"),
},
description,
alternates: { canonical: "/" },
openGraph: { ...openGraph, url: "/", title: "ML³ Labs" },
twitter: { ...twitter, title: "ML³ Labs" },
openGraph,
twitter,
};

// The site's chrome around every page, the 404 included: the fonts, the
// nav, the deadline down <main> and the footer
export default function RootLayout({ children }: LayoutProps<"/">) {
return (
<html lang="en">
<body className="antialiased">{children}</body>
<body className="antialiased">
<div
className={`${sans.variable} ${mono.variable} ${styles.root}`}
>
<a href="#main" className={styles.skip}>
Skip to content
</a>
<div className={styles.frame}>
<Nav />
<main id="main" className={styles.main}>
<Late />
{children}
</main>
<Footer />
</div>
</div>
</body>
</html>
);
}
Loading
Loading