Skip to content

Commit 3e4f6eb

Browse files
authored
✨ add schema.org microdata, webring, rss, sitemap, styling
* 📝 add schema.org microdata across the site * ✨ rss, footer, webring, ferris * 📝 add article-dates styling
1 parent ab2c0d9 commit 3e4f6eb

22 files changed

+26539
-31786
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
"workspaces/*"
2626
],
2727
"devDependencies": {
28-
"astro": "4.4.2"
28+
"astro": "4.5.18"
2929
}
3030
}

workspaces/components/.storybook/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'path';
22
/** @type { import('@storybook/web-components-vite').StorybookConfig } */
33
const config = {
4-
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
4+
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
55
addons: ['@storybook/addon-essentials', '@storybook/addon-links', '@storybook/addon-interactions', '@storybook/addon-coverage'],
66
framework: {
77
name: "@storybook/web-components-vite",

workspaces/components/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"author": "scottnath",
1515
"license": "MIT",
1616
"devDependencies": {
17-
"storydocker-storybook": "^0.0.22",
18-
"storydocker-utilities": "^0.0.16"
17+
"storydocker-storybook": "^0.0.25",
18+
"storydocker-utilities": "^0.0.19"
1919
}
2020
}

workspaces/website/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,31 @@
1414
"site-files": "npm run 404file && npm run jekyllfile && npm run cname"
1515
},
1616
"dependencies": {
17-
"@astrojs/mdx": "^2.1.1",
18-
"@astrojs/react": "^3.0.10",
17+
"@astrojs/mdx": "^2.2.4",
18+
"@astrojs/react": "^3.2.0",
1919
"@astrojs/rss": "^4.0.5",
20-
"@astrojs/sitemap": "^3.1.1",
21-
"@types/react": "^18.2.61",
22-
"@types/react-dom": "^18.2.19",
20+
"@astrojs/sitemap": "^3.1.2",
21+
"@types/react": "^18.2.75",
22+
"@types/react-dom": "^18.2.24",
2323
"airtable": "^0.12.2",
24-
"astro": "4.4.2",
25-
"marked": "^12.0.0",
26-
"profile-components": "^0.3.1",
24+
"astro": "4.5.18",
25+
"marked": "^12.0.1",
26+
"profile-components": "^0.4.1",
2727
"react": "^18.2.0",
2828
"react-dom": "^18.2.0",
29-
"typescript": "^5.3.3"
29+
"typescript": "^5.4.5"
3030
},
3131
"devDependencies": {
3232
"@astrojs/lit": "^4.0.1",
3333
"@astrojs/partytown": "^2.0.4",
3434
"@storybook/testing-library": "^0.2.2",
35-
"@testing-library/react": "^14.2.1",
35+
"@testing-library/react": "^15.0.0",
3636
"@webcomponents/template-shadowroot": "^0.2.1",
3737
"astro-icon": "^1.1.0",
3838
"lit": "^3.1.2",
3939
"postcss-nested": "^6.0.1",
4040
"prop-types": "^15.8.1",
41-
"sass": "^1.71.1",
42-
"vite": "^5.1.4"
41+
"sass": "^1.74.1",
42+
"vite": "^5.2.8"
4343
}
4444
}
3.74 KB
Binary file not shown.

workspaces/website/src/components/BaseHead.astro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// all pages through the use of the <BaseHead /> component.
44
import '../styles/global.css';
55
import '../components/resume/styles/resume.css';
6-
import { PROFILE_PIC } from '../consts';
6+
import { PROFILE_PIC, SITE_TITLE, SITE_DESCRIPTION } from '../consts';
77
88
export interface Props {
99
title: string;
@@ -26,6 +26,12 @@ const { title, description, image = PROFILE_PIC } = Astro.props;
2626
<link rel="icon" href="/favicon-mind-blown.ico" id="favicon" />
2727
<meta name="generator" content={Astro.generator} />
2828
<link rel="preload" as="image" href={image} />
29+
<link
30+
rel="alternate"
31+
type="application/rss+xml"
32+
title={`${SITE_TITLE}, ${SITE_DESCRIPTION}`}
33+
href={`${Astro.site}rss.xml`}
34+
/>
2935

3036
<!-- Canonical URL -->
3137
<link rel="canonical" href={canonicalURL} />

workspaces/website/src/components/BlahgList.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
import { getCollection } from 'astro:content';
33
4-
import { BLAHG, STRIPE_COLORS } from '~/consts';
5-
import FormattedDate from '~/components/FormattedDate.astro';
4+
import { STRIPE_COLORS } from '~/consts';
65
76
const posts = (await getCollection('blahg')).sort(
87
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()

workspaces/website/src/components/DevToUser.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { PROFILE_PIC } from '../consts';
66
const declaredDOM = dsd({
77
username: 'scottnath',
88
profile_image: PROFILE_PIC,
9+
schema_itemprop: 'owns'
910
},'no-posts');
1011
const { class: className, ...rest } = Astro.props;
1112
---
Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,55 @@
11
---
2-
import { SITE_TITLE } from '../consts';
2+
import WebRing from './WebRing.astro';
3+
import { SITE_TITLE, STRIPE_COLORS } from '~/consts';
34
const today = new Date();
5+
const navBorder = STRIPE_COLORS[0];
46
---
57

68
<footer>
7-
<hr />
8-
&copy; {today.getFullYear()}&nbsp;{SITE_TITLE} All rights reserved.
9+
<nav>
10+
<a href="/">home</a>
11+
<a href="/whoami">whoami</a>
12+
<a href="/blahg">blahg</a>
13+
<a href="/resume">resume</a>
14+
<a href="/rss.xml" target="_blank">rss feed</a>
15+
</nav>
16+
<p>&copy; 2001-{today.getFullYear()}&nbsp;{SITE_TITLE} All rights reserved.</p>
17+
18+
<WebRing />
19+
20+
<a href="/" class="you-still-here" title="You're still here? Go Home"><img src="/ferris-end-scene.avif" width="381" height="177" alt="You're still here? (Screen shot from Ferris Bueller's Day Off)" /></a>
921
</footer>
10-
<style>
22+
23+
<style define:vars={{ navBorder }}>
1124
footer {
12-
padding: 25px 0;
25+
padding: 2em 0 4em;
1326
text-align: center;
27+
nav {
28+
border-top: 1px solid var(--navBorder);
29+
border-bottom: 1px solid var(--navBorder);
30+
display: inline-block;
31+
width: 100%;
32+
padding: 2em 0;
33+
max-width: var(--max-character-width);
34+
35+
a {
36+
display: inline-block;
37+
text-decoration: none;
38+
&::before {
39+
content: ' • ';
40+
}
41+
&:first-child::before {
42+
content: ''
43+
}
44+
}
45+
}
46+
.you-still-here {
47+
display: block;
48+
margin: 100vh auto 0;
49+
img {
50+
margin: 0 auto;
51+
border-radius: 1em;
52+
}
53+
}
1454
}
1555
</style>

0 commit comments

Comments
 (0)