Skip to content

Commit

Permalink
Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
daneden committed May 1, 2023
1 parent 8cd724a commit e3ef4aa
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 49 deletions.
4 changes: 2 additions & 2 deletions app/(branches)/blog/2018/subatomic-design-systems/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ Button = Label + View
$$

$$
Label = p_\{type\} + p_\{color\}
Label = p_{type} + p_{color}
$$

$$
View = p_\{color\} + p_\{line\} + p_\{spacing\}
View = p_{color} + p_{line} + p_{spacing}
$$

## Views comprise the majority of the system
Expand Down
2 changes: 1 addition & 1 deletion app/(branches)/blog/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPosts } from "@/app/get-posts"
import formatDate from "@/utils/formatDate"
import formatDate from "@/app/utils/formatDate"
import { Metadata } from "next"
import Link from "next/link"

Expand Down
13 changes: 10 additions & 3 deletions app/(branches)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Footer from "@/app/components/Footer"
import Header from "@/app/components/Header"
import SkipLink from "@/app/components/SkipLink"
import Wrapper from "@/app/components/Wrapper"
import defaultMetadata, { config } from "@/data/siteconfig"
import { Analytics } from "@vercel/analytics/react"
import { Metadata } from "next"
import { JetBrains_Mono } from "next/font/google"
import { soehne, tiemposHeadline, tiemposText } from "../fonts"
import "../styles/global.css"
Expand All @@ -15,7 +15,14 @@ const jetbrainsMono = JetBrains_Mono({
display: "swap",
})

export const metadata = defaultMetadata
export const metadata: Metadata = {
title: {
template: `%s | "Daniel Eden, Designer"`,
absolute: "Daniel Eden, Designer",
},
description:
"The personal site, blog, and portfolio of Daniel Eden, a designer writing and thinking about design systems.",
}

export default function BranchPageLayout({
children,
Expand All @@ -29,7 +36,7 @@ export default function BranchPageLayout({
<body>
<SkipLink />
<div className={`sp-m ${jetbrainsMono.variable}`}>
<Header siteTitle={config.title} />
<Header />
<Wrapper>{children}</Wrapper>
<Footer />
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/(branches)/playlist/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Media, { MediaItem } from "@/app/components/Media"
import { client } from "@/utils/graphql-client"
import widont from "@/utils/widont"
import { client } from "@/app/utils/graphql-client"
import widont from "@/app/utils/widont"
import { gql } from "graphql-request"
import { Metadata } from "next"
import { cache } from "react"
Expand Down
15 changes: 10 additions & 5 deletions app/(root)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
/* eslint-disable prefer-const */
import LightswitchImage from "@/app/components/LightSwitchImage"
import Timeline from "@/app/components/Timeline"
import defaultMetadata from "@/data/siteconfig"
import { Metadata } from "next"
import Image from "next/image"
import Link from "next/link"
import styles from "./home.module.css"
import wwcg from "./wwcg.jpg"

export const metadata: Metadata = defaultMetadata
export const metadata: Metadata = {
title: {
template: `%s | "Daniel Eden, Designer"`,
absolute: "Daniel Eden, Designer",
},
description:
"The personal site, blog, and portfolio of Daniel Eden, a designer writing and thinking about design systems.",
}

export default function HomePage() {
return (
Expand Down Expand Up @@ -47,9 +54,7 @@ export default function HomePage() {
</p>
<div className="align-bottom">
<Image
src="/images/wwcg.jpg"
width={686}
height={386}
src={wwcg}
alt="Daniel Eden presenting “Where We Can Go” at Clarity Conference 2019"
/>
</div>
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion app/api/opengraph-image/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import opengraphImage from "@/utils/opengraphImage"
import opengraphImage from "@/app/utils/opengraphImage"
import { NextRequest } from "next/server"

export async function GET(request: NextRequest) {
Expand Down
8 changes: 2 additions & 6 deletions app/components/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import Link from "next/link"
import styles from "./styles.module.css"

interface HeaderProps {
siteTitle: string
}

const links = [
{
to: "/blog",
Expand All @@ -20,12 +16,12 @@ const links = [
},
]

const Header = ({ siteTitle }: HeaderProps) => {
const Header = () => {
return (
<>
<header className={styles.root}>
<Link className="plainlink" href="/">
{siteTitle}
Daniel Eden, Designer
</Link>

<nav>
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion app/opengraph-image.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import opengraphImage from "@/utils/opengraphImage"
import opengraphImage from "@/app/utils/opengraphImage"

export default async function og() {
return await opengraphImage()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions src/utils/opengraphImage.tsx → app/utils/opengraphImage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { config } from "@/data/siteconfig"
import widont from "@/utils/widont"
import widont from "@/app/utils/widont"
import { ImageResponse } from "next/server"

const tiemposHeadline = fetch(
Expand All @@ -10,7 +9,9 @@ const soehne = fetch(
new URL("https://daneden.me/og-fonts/Soehne-Buch.otf")
).then((res) => res.arrayBuffer())

export default async function opengraphImage(title = config.title) {
const defaultTitle = "Daniel Eden, Designer"

export default async function opengraphImage(title = defaultTitle) {
const tiemposFontData = await tiemposHeadline
const soehneFontData = await soehne

Expand Down Expand Up @@ -55,7 +56,7 @@ export default async function opengraphImage(title = config.title) {
right: -80,
}}
>
{title != config.title ? config.title : null}
{title != defaultTitle ? defaultTitle : null}
</div>
</div>
),
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import nextMdx from "@next/mdx"
import { rehypePlugins, remarkPlugins } from "./src/utils/mdxPlugins.mjs"
import { rehypePlugins, remarkPlugins } from "./app/utils/mdxPlugins.mjs"

const withMDX = nextMdx({
options: {
Expand Down
1 change: 0 additions & 1 deletion public/images/favicon.svg

This file was deleted.

Binary file removed public/images/og.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/images/outbound.svg

This file was deleted.

Binary file removed public/images/solstice.png
Binary file not shown.
Binary file removed public/images/zeitgeist.png
Binary file not shown.
20 changes: 0 additions & 20 deletions src/data/siteconfig.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"@/utils/*": ["src/utils/*"],
"@/utils/*": ["app/utils/*"],
"@/app/*": ["app/*"],
"@/data/*": ["src/data/*"],
"@/components/*": ["app/components/*"]
Expand Down

0 comments on commit e3ef4aa

Please sign in to comment.