Skip to content

Commit

Permalink
fix: Remove scrollbar from title & Sort apps A-Z
Browse files Browse the repository at this point in the history
  • Loading branch information
xbubbo committed Jul 7, 2024
1 parent 5c43d26 commit d8c0d34
Show file tree
Hide file tree
Showing 10 changed files with 415 additions and 464 deletions.
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"recommendations": ["astro-build.astro-vscode", "bradlc.vscode-tailwindcss", "esbenp.prettier-vscode"],
"unwantedRecommendations": []
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
},
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/node": "^8.3.1",
"@astrojs/node": "^8.3.2",
"@astrojs/tailwind": "^5.1.0",
"@fastify/middie": "^8.3.1",
"@fastify/static": "^7.0.4",
"@mercuryworkshop/bare-mux": "^1.1.0",
"@mercuryworkshop/epoxy-transport": "^1.1.0",
"@tomphttp/bare-server-node": "^2.0.3",
"astro": "^4.11.0",
"astro": "^4.11.5",
"fastify": "^4.28.0",
"lucide-astro": "^0.395.0",
"lucide-astro": "^0.399.0",
"mime": "^4.0.3",
"tailwindcss": "^3.4.4",
"tsx": "^4.15.7",
Expand All @@ -33,8 +33,9 @@
"wisp-server-node": "^1.1.0"
},
"devDependencies": {
"@biomejs/biome": "1.8.2",
"@biomejs/biome": "1.8.3",
"@types/node": "^20.14.8",
"daisyui": "^4.12.10",
"prettier": "^3.3.2",
"prettier-plugin-astro": "^0.14.0"
}
Expand Down
844 changes: 396 additions & 448 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/assets/bundled/v.ble.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import { ViewTransitions } from "astro:transitions";
</script>
<script is:inline async src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"></script>
<script>
// @ts-expect-error shut
import { SetTransport } from "@mercuryworkshop/bare-mux";
window.addEventListener("DOMContentLoaded", () => {
if ("serviceWorker" in navigator) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ap.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const customApps = (Astro.cookies.get("asset.app")?.json() as Asset[]) ?? [];
Add App
</button>
<div class="flex flex-wrap justify-center gap-4 flex-row mt-30">
{[...customApps, ...apps].map((app) => <AssetCard asset={app} />)}
{[...customApps, ...apps].sort((a, b) => (a.name > b.name ? 1 : -1)).map((app) => <AssetCard asset={app} />)}
</div>
</div>
</Layout>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ga.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const customGames = (Astro.cookies.get("asset.game")?.json() as Asset[]) ?? [];
Add Game
</button>
<div class="flex flex-wrap justify-center gap-4 flex-row mt-30">
{[...customGames, ...games].map((game) => <AssetCard asset={game} />)}
{[...customGames, ...games].sort((a, b) => (a.name > b.name ? 1 : -1)).map((game) => <AssetCard asset={game} />)}
</div>
</div>
</Layout>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const splashText = [

<script src="@/lib/cloak.ts"></script>
<Layout>
<div class="flex h-full flex-col">
<div class="flex h-full flex-col overflow-hidden">
<h3 class="flex text-8xl font-black uppercase place-content-center mt-40 hover:scale-105 hover:-translate-y-1 duration-150">Interstellar</h3>
<div id="form" class="flex mt-4 flex-col items-center justify-center gap-4">
<span class="text-accent">{splashText[Math.floor(Math.random() * splashText.length)]}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/to.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const tools: Asset[] = await (await fetch(`${ASSET_URL}/json/tools.json`)).json(
Tools
</div>
<div class="flex flex-wrap justify-center gap-4 flex-row mt-30">
{tools.map((tool) => <AssetCard asset={tool} />)}
{tools.sort((a, b) => (a.name > b.name ? 1 : -1)).map((tool) => <AssetCard asset={tool} />)}
</div>
</div>
</Layout>
Expand Down
13 changes: 8 additions & 5 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Config } from "tailwindcss";
const config: Config = {
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
Expand All @@ -18,6 +17,10 @@ const config: Config = {
},
},
},
plugins: [],
};
export default config;
daisyui: {
prefix: "ds-",
},
plugins: [
// require("daisyui")
],
}

0 comments on commit d8c0d34

Please sign in to comment.