Skip to content

Commit abd7aff

Browse files
committed
[prod] update ui
1 parent 0406206 commit abd7aff

34 files changed

+1138
-156
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
.tanstack

bun.lock

Lines changed: 319 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@
1818
"lib": "@/lib",
1919
"hooks": "@/hooks"
2020
},
21-
"registries": {}
21+
"registries": {
22+
"@react-bits": "https://reactbits.dev/r/{name}.json"
23+
}
2224
}

index.html

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,40 @@
11
<!doctype html>
22
<html lang="en" class="dark">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/logo-small.svg" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Strategy A Crust</title>
8-
</head>
9-
<body>
10-
<div id="root" class="dark"></div>
11-
<script type="module" src="/src/main.tsx"></script>
12-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/logo-small.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Strategy A Crust</title>
8+
9+
<!-- Start Single Page Apps for GitHub Pages -->
10+
<script type="text/javascript">
11+
// Single Page Apps for GitHub Pages
12+
// MIT License
13+
// https://github.com/rafgraph/spa-github-pages
14+
// This script checks to see if a redirect is present in the query string,
15+
// converts it back into the correct url and adds it to the
16+
// browser's history using window.history.replaceState(...),
17+
// which won't cause the browser to attempt to load the new url.
18+
// When the single page app is loaded further down in this file,
19+
// the correct url will be waiting in the browser's history for
20+
// the single page app to route accordingly.
21+
(function (l) {
22+
if (l.search[1] === "/") {
23+
var decoded = l.search
24+
.slice(1)
25+
.split("&")
26+
.map(function (s) {
27+
return s.replace(/~and~/g, "&");
28+
})
29+
.join("?");
30+
window.history.replaceState(null, null, l.pathname.slice(0, -1) + decoded + l.hash);
31+
}
32+
})(window.location);
33+
</script>
34+
<!-- End Single Page Apps for GitHub Pages -->
35+
</head>
36+
<body>
37+
<div id="root" class="dark"></div>
38+
<script type="module" src="/src/main.tsx"></script>
39+
</body>
1340
</html>

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
"@fontsource/lexend": "^5.2.11",
1414
"@fontsource/poppins": "^5.2.7",
1515
"@gsap/react": "^2.1.2",
16+
"@radix-ui/react-accordion": "^1.2.12",
1617
"@radix-ui/react-slot": "^1.2.3",
1718
"@tailwindcss/vite": "^4.1.15",
19+
"@tanstack/react-router": "^1.134.9",
1820
"class-variance-authority": "^0.7.1",
1921
"clsx": "^2.1.1",
2022
"es-toolkit": "^1.41.0",
@@ -25,12 +27,15 @@
2527
"react": "^19.1.1",
2628
"react-dom": "^19.1.1",
2729
"react-icons": "^5.5.0",
30+
"react-router": "^7.9.5",
31+
"react-use": "^17.6.0",
2832
"tailwind-merge": "^3.3.1",
2933
"tailwindcss": "^4.1.15",
3034
"valtio": "^2.1.8"
3135
},
3236
"devDependencies": {
3337
"@eslint/js": "^9.36.0",
38+
"@tanstack/router-plugin": "^1.134.9",
3439
"@types/node": "^24.9.1",
3540
"@types/react": "^19.1.16",
3641
"@types/react-dom": "^19.1.9",
@@ -42,7 +47,8 @@
4247
"tw-animate-css": "^1.4.0",
4348
"typescript": "~5.9.3",
4449
"typescript-eslint": "^8.45.0",
45-
"vite": "npm:rolldown-vite@7.1.14"
50+
"vite": "npm:rolldown-vite@7.1.14",
51+
"vite-plugin-multi-pages": "^0.0.14"
4652
},
4753
"overrides": {
4854
"vite": "npm:rolldown-vite@7.1.14"

public/404.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Single Page Apps for GitHub Pages</title>
6+
<script type="text/javascript">
7+
// Single Page Apps for GitHub Pages
8+
// MIT License
9+
// https://github.com/rafgraph/spa-github-pages
10+
// This script takes the current url and converts the path and query
11+
// string into just a query string, and then redirects the browser
12+
// to the new url with only a query string and hash fragment,
13+
// e.g. https://www.foo.tld/one/two?a=b&c=d#qwe, becomes
14+
// https://www.foo.tld/?/one/two&a=b~and~c=d#qwe
15+
// Note: this 404.html file must be at least 512 bytes for it to work
16+
// with Internet Explorer (it is currently > 512 bytes)
17+
18+
// If you're creating a Project Pages site and NOT using a custom domain,
19+
// then set pathSegmentsToKeep to 1 (enterprise users may need to set it to > 1).
20+
// This way the code will only replace the route part of the path, and not
21+
// the real directory in which the app resides, for example:
22+
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
23+
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
24+
// Otherwise, leave pathSegmentsToKeep as 0.
25+
var pathSegmentsToKeep = 0;
26+
27+
var l = window.location;
28+
l.replace(
29+
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
30+
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
31+
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
32+
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
33+
l.hash
34+
);
35+
36+
</script>
37+
</head>
38+
<body>
39+
</body>
40+
</html>

public/WireframeCube.png

21.8 KB
Loading

public/bgcube.png

83 KB
Loading

public/bgpg.png

619 KB
Loading

public/mesh.png

78.7 KB
Loading

0 commit comments

Comments
 (0)