diff --git a/astro.config.ts b/astro.config.ts index 60a5303..696c098 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -1,4 +1,5 @@ import node from "@astrojs/node"; +import icon from "astro-icon"; import { defineConfig } from "astro/config"; // https://astro.build/config @@ -10,6 +11,13 @@ export default defineConfig({ adapter: node({ mode: "standalone", }), + integrations: [ + icon({ + include: { + "material-symbols": ["*"], // Loads entire Material Design Icon set + }, + }), + ], server: { port: import.meta.env.ASTRO_PORT, host: import.meta.env.ASTRO_HOST, diff --git a/bun.lockb b/bun.lockb index 2883b1e..2291120 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 7f39f94..9485ba7 100644 --- a/package.json +++ b/package.json @@ -14,11 +14,13 @@ "@astrojs/node": "^6.0.0", "accept-language": "^3.0.18", "astro": "^3.0.3", + "astro-icon": "next", "hono": "^3.5.7", "node-cache": "^5.1.2", "sanitize.css": "^13.0.0" }, "devDependencies": { + "@iconify-json/material-symbols": "^1.1.57", "bun-types": "^0.8.1" } } diff --git a/src/env.d.ts b/src/env.d.ts index 6d2d4ad..14a4904 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,3 +1,4 @@ +/// /// interface ImportMetaEnv { diff --git a/src/global.ts b/src/global.ts index 74af928..8f89702 100644 --- a/src/global.ts +++ b/src/global.ts @@ -1,3 +1,4 @@ import "sanitize.css"; import "src/styles/global.css"; +import "src/styles/reset.css"; diff --git a/src/layouts/AppLayout.astro b/src/layouts/AppLayout.astro index e6317ef..bee20ff 100644 --- a/src/layouts/AppLayout.astro +++ b/src/layouts/AppLayout.astro @@ -1,4 +1,6 @@ --- +import { Icon } from "astro-icon/components"; + interface Props { title: string; } @@ -18,34 +20,70 @@ const { title } = Astro.props;
Main Panel
+
Sub Panel