Skip to content

Commit b37c62b

Browse files
committed
1.5.0
1 parent 71fe0ce commit b37c62b

11 files changed

Lines changed: 315 additions & 26 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
- name: compile
3131
run: npm run compile
3232

33+
- name: Create .env.production
34+
run: |
35+
echo "GATSBY_GOOGLE_MAPS_API_KEY=${{ secrets.GATSBY_GOOGLE_MAPS_API_KEY }}" >> .env.production
36+
echo "GATSBY_FONTAWESOME_KIT_URL=${{ secrets.GATSBY_FONTAWESOME_KIT_URL }}" >> .env.production
37+
3338
- name: Gatsby Publish
3439
uses: steebe/gatsby-gh-pages-action@v2.2.4
3540
with:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ build/
99
# IDE
1010
.idea/
1111

12+
# Environment variables
13+
.env*
14+
1215
# System
1316
**/.DS_Store

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ A revamping of Steve Bass’ personal site, using Gatsby.
44

55
### Release Notes
66

7+
- `1.5.0`: /antipode and minor /tools update
78
- `1.4.1`: Gatsby 5.16 ; React 19
89
- `1.4.0`: Easter egg, featuring central widgetiness
910
- `1.3.0`: Restored blog with more intentional line listing with fixed sorting and tagging capabilities

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"name": "steebe.dev",
1111
"private": true,
12-
"version": "1.4.1",
12+
"version": "1.5.0",
1313
"scripts": {
1414
"build": "gatsby build",
1515
"clean": "gatsby clean",
@@ -27,6 +27,7 @@
2727
"@fortawesome/free-solid-svg-icons": "^6.7.2",
2828
"@fortawesome/react-fontawesome": "^0.2.2",
2929
"@mdx-js/react": "^2.2.1",
30+
"@react-google-maps/api": "^2.20.8",
3031
"@types/react": "19.2.14",
3132
"@types/react-dom": "19.2.3",
3233
"classnames": "^2.3.2",

src/components/layout/layout.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import classnames from "classnames";
66
import Footer from "../footer/footer";
77

88
export const Head = () => (
9-
<script src="https://kit.fontawesome.com/fa5a068953.js" crossOrigin="anonymous"></script>
9+
<script src={process.env.GATSBY_FONTAWESOME_KIT_URL} crossOrigin="anonymous"></script>
1010
);
1111

1212
type Props = {
@@ -60,15 +60,13 @@ class NavLocation {
6060

6161
const Layout: React.FC<Props> = ({ children }) => {
6262
const path = typeof window !== "undefined" ? window.location.pathname : undefined;
63-
// const isPhotos = path?.includes("photos");
6463
const isTools = path?.includes("tool");
6564
const isAbout = path?.includes("about");
6665
const isBlogRoot = path?.endsWith("lines") || path?.endsWith("lines/") || path?.includes("lines");
6766
const isHome = path === "/";
6867

6968
const navLocations = [
7069
new NavLocation(isHome, TITLES.HOME),
71-
// new NavLocation(isPhotos, TITLES.PHOTOS),
7270
new NavLocation(isBlogRoot, TITLES.LINES),
7371
new NavLocation(isTools, TITLES.TOOLS),
7472
new NavLocation(isAbout, TITLES.ABOUT),
@@ -89,7 +87,7 @@ const Layout: React.FC<Props> = ({ children }) => {
8987
))}
9088
</ul>
9189
</nav>
92-
<p>{children}</p>
90+
{children}
9391
</div>
9492
<Footer />
9593
</>

src/components/tools/tools.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import React, { ReactNode } from "react";
22
import { siteImage } from "../globals.module.css";
3-
import { container, contentContainer, description, image } from "./tools.module.css";
3+
import { contentContainer, description, image } from "./tools.module.css";
44
import { StaticImage } from "gatsby-plugin-image";
5+
import Widget from "../widgets/widget";
6+
import AntipodeWidget from "../widgets/antipodeWidget";
57

68
type Tool = {
79
name: string;
@@ -44,21 +46,17 @@ const Tools = () => {
4446
];
4547

4648
return (
47-
<>
49+
<div style={{ display: "flex", flexDirection: "column", gap: "1rem" }}>
4850
{tools.map((tool) => (
49-
<div className={container} key={tool.name}>
50-
<h1>
51-
<a href={tool.link} target="_blank" rel="noreferrer">
52-
{tool.name}
53-
</a>
54-
</h1>
51+
<Widget key={tool.name} title={tool.name} url={tool.link}>
5552
<div className={contentContainer}>
5653
<div className={image}>{tool.image}</div>
5754
<p className={description}>{tool.description}</p>
5855
</div>
59-
</div>
56+
</Widget>
6057
))}
61-
</>
58+
<AntipodeWidget />
59+
</div>
6260
);
6361
};
6462

0 commit comments

Comments
 (0)