Skip to content

Commit

Permalink
update font, styles, add loader etc
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianwd committed Dec 10, 2024
1 parent 35af35e commit 1bece5a
Show file tree
Hide file tree
Showing 24 changed files with 1,000 additions and 161 deletions.
3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { loadEnv } from 'vite'

import react from '@astrojs/react'

import icon from 'astro-icon'

const { WEBSITE_URL } = loadEnv(process.env.NODE_ENV, process.cwd(), '')

// https://astro.build/config
Expand All @@ -15,6 +17,7 @@ export default defineConfig({
applyBaseStyles: false,
}),
react(),
icon(),
],
adapter: vercel({
edgeMiddleware: true,
Expand Down
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/react": "^3.6.2",
"@astrojs/react": "^3.6.3",
"@astrojs/rss": "^4.0.9",
"@astrojs/tailwind": "^5.1.2",
"@astrojs/vercel": "^7.8.2",
Expand All @@ -30,7 +30,9 @@
"@upstash/redis": "^1.34.3",
"@vercel/edge": "^1.1.2",
"animate.css": "^4.1.1",
"astro": "^4.16.7",
"astro": "^4.16.16",
"astro-icon": "^1.1.4",
"astro-loading-indicator": "^0.6.1",
"astro-seo": "^0.8.4",
"cheerio": "1.0.0",
"dayjs": "^1.11.13",
Expand All @@ -45,6 +47,9 @@
"vanilla-tilt": "^1.8.1"
},
"devDependencies": {
"@iconify-json/devicon-plain": "^1.2.6",
"@iconify-json/radix-icons": "^1.2.1",
"@iconify-json/simple-icons": "^1.2.13",
"@tailwindcss/typography": "^0.5.15",
"@types/cheerio": "^0.22.35",
"npm-check-updates": "^17.1.6",
Expand All @@ -53,5 +58,10 @@
"prettier-plugin-tailwindcss": "^0.6.8",
"tailwindcss-animate": "^1.0.7",
"vite": "^5.4.10"
},
"pnpm": {
"patchedDependencies": {
"astro": "patches/astro.patch"
}
}
}
13 changes: 13 additions & 0 deletions patches/astro.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/transitions/router.js b/dist/transitions/router.js
index c0e675db0ba7fbf2605c05bdc91d58169ead6ee4..06aeb1bcd52234ee3bbea0d96e703579aa72ab81 100644
--- a/dist/transitions/router.js
+++ b/dist/transitions/router.js
@@ -8,7 +8,7 @@ const updateScrollPosition = (positions) => {
replaceState({ ...history.state, ...positions }, "");
}
};
-const supportsViewTransitions = inBrowser && !!document.startViewTransition;
+const supportsViewTransitions = false // inBrowser && !!document.startViewTransition;
const transitionEnabledOnThisPage = () => inBrowser && !!document.querySelector('[name="astro-view-transitions-enabled"]');
const samePage = (thisLocation, otherLocation) => thisLocation.pathname === otherLocation.pathname && thisLocation.search === otherLocation.search;
let mostRecentNavigation;
Loading

0 comments on commit 1bece5a

Please sign in to comment.