Skip to content

Commit 0e3ae6d

Browse files
prodktBryan Funk
authored andcommitted
Merge pull request #11 from prodkt/astro-v5
fix latest shadcn css bugs on blocks - good to close out on this branch and start better documenting fixes and enhancements
2 parents f78e9be + ed85d42 commit 0e3ae6d

1,544 files changed

Lines changed: 220686 additions & 30357 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ node_modules
55
.pnp
66
.pnp.js
77

8+
# fonts
9+
apps/www/assets/fonts/truetype
10+
811
# astro
912
.astro
1013

apps/prepare/.astro/content.d.ts

Lines changed: 0 additions & 168 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[["Map",1,2],"meta::meta",["Map",3,4],"astro-version","5.0.5"]
1+
[["Map",1,2],"meta::meta",["Map",3,4],"astro-version","5.0.9"]

apps/prepare/astro.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ export default defineConfig({
3939
},
4040
},
4141
vite: {
42-
optimizeDeps: {
43-
include: ["@splinetool/react-spline"],
44-
},
42+
// optimizeDeps: {
43+
// include: ["@splinetool/react-spline"],
44+
// },
4545
build: {
4646
chunkSizeWarningLimit: 2000,
4747
rollupOptions: {

apps/prepare/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"keywords": [],
2020
"license": "ISC",
2121
"dependencies": {
22-
"@astrojs/mdx": "^4.0.1",
22+
"@astrojs/mdx": "^4.0.2",
2323
"@astrojs/partytown": "^2.1.2",
24-
"@astrojs/react": "^4.0.0",
25-
"@astrojs/rss": "^4.0.9",
24+
"@astrojs/react": "^4.1.1",
25+
"@astrojs/rss": "^4.0.10",
2626
"@astrojs/sitemap": "^3.2.1",
2727
"@astrojs/tailwind": "^5.1.3",
2828
"@fontsource-variable/fustat": "^5.1.0",
@@ -41,13 +41,14 @@
4141
"@types/node": "^22.9.1",
4242
"@types/react": "^18.2.65",
4343
"@types/react-dom": "^18.2.22",
44-
"astro": "^5.0.5",
44+
"astro": "^5.0.9",
4545
"class-variance-authority": "0.7.1",
4646
"clsx": "^2.1.1",
4747
"framer-motion": ">=11.14.4",
4848
"lucide-react": "^0.468.0",
4949
"next-themes": "^0.4.3",
5050
"react": "^18.3.1",
51+
"react-compiler-runtime": "19.0.0-beta-201e55d-20241215",
5152
"react-dom": "^18.3.1",
5253
"react-hook-form": "^7.54.1",
5354
"tailwind-merge": "^2.5.5",
@@ -57,6 +58,7 @@
5758
},
5859
"devDependencies": {
5960
"@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
61+
"eslint-plugin-astro": "^1.3.1",
6062
"postcss-import": "^16.1.0",
6163
"prettier": "^3.4.2",
6264
"prettier-plugin-astro": "^0.14.1"
172 KB
Loading
Lines changed: 5 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
---
2-
// Import the global.css file here so that it is included on
3-
// all pages through the use of the <BaseHead /> component.
42
import "../styles/sparkstack_globals.css";
53
import "@/styles/sparkstack_globals.css";
64
import "../env.d.ts";
7-
5+
import { themeScript } from "../lib/theme-script";
86
import { ClientRouter } from "astro:transitions";
7+
98
interface Props {
109
title: string;
1110
description: string;
1211
image?: string;
1312
}
1413
1514
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
16-
1715
const { title, description, image = "/blog-placeholder-1.jpg" } = Astro.props;
1816
---
1917

@@ -22,12 +20,13 @@ const { title, description, image = "/blog-placeholder-1.jpg" } = Astro.props;
2220
<meta name="viewport" content="width=device-width,initial-scale=1" />
2321
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
2422
<meta name="generator" content={Astro.generator} />
23+
<ClientRouter />
2524

2625
<!-- Font preloads -->
27-
<!-- <link rel="preload" href="/fonts/fonts/complete/TT_Hoves_Pro_Variable.woff" as="font" type="font/woff" crossorigin /> -->
28-
<!-- <link rel="preload" href="/fonts/atkinson-bold.woff" as="font" type="font/woff" crossorigin /> -->
2926
<link href="/fonts/fonts.css" type="css/stylesheet" />
3027

28+
<script is:inline set:html={themeScript}></script>
29+
3130
<!-- Canonical URL -->
3231
<link rel="canonical" href={canonicalURL} />
3332

@@ -50,46 +49,3 @@ const { title, description, image = "/blog-placeholder-1.jpg" } = Astro.props;
5049
<meta property="twitter:description" content={description} />
5150
<meta property="twitter:image" content={new URL(image, Astro.url)} />
5251

53-
<ClientRouter />
54-
55-
<script is:inline>
56-
// Theme handling
57-
const getThemePreference = () => {
58-
if (typeof localStorage !== "undefined" && localStorage.getItem("theme")) {
59-
return localStorage.getItem("theme");
60-
}
61-
return window.matchMedia("(prefers-color-scheme: dark)").matches
62-
? "dark"
63-
: "light";
64-
};
65-
66-
// Initialize theme
67-
const isDark = getThemePreference() === "dark";
68-
document.documentElement.classList[isDark ? "add" : "remove"]("dark");
69-
70-
// Color scheme initialization
71-
const initializeColorScheme = (attribute, defaultValue) => {
72-
const stored = localStorage.getItem(attribute);
73-
const value = stored || defaultValue;
74-
localStorage.setItem(attribute, value);
75-
document.documentElement.setAttribute(`data-${attribute}`, value);
76-
};
77-
78-
// Initialize all color schemes
79-
initializeColorScheme("primary-color", "lime");
80-
initializeColorScheme("gray-color", "olive");
81-
initializeColorScheme("secondary-color", "mint");
82-
initializeColorScheme("accent-color", "lime");
83-
84-
// Theme observer
85-
if (typeof localStorage !== "undefined") {
86-
const observer = new MutationObserver(() => {
87-
const isDark = document.documentElement.classList.contains("dark");
88-
localStorage.setItem("theme", isDark ? "dark" : "light");
89-
});
90-
observer.observe(document.documentElement, {
91-
attributes: true,
92-
attributeFilter: ["class"],
93-
});
94-
}
95-
</script>

apps/prepare/src/assets/avatars/bryan-funk-resume-promo.webp renamed to apps/prepare/src/components/about-bryan/bryan-funk-resume-promo.webp

File renamed without changes.

0 commit comments

Comments
 (0)