Skip to content

Commit 67726aa

Browse files
committed
feat: clean up std ui
1 parent 2710347 commit 67726aa

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

islands/MobileMenu.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export default function MobileMenu() {
7979
};
8080
}, [isOpen]);
8181

82-
8382
return (
8483
<>
8584
{/* Mobile Menu Button - Only visible on mobile */}
@@ -94,7 +93,7 @@ export default function MobileMenu() {
9493

9594
{/* Mobile Menu Modal */}
9695
{isOpen && (
97-
<div class="fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-start justify-center pt-20 px-4 md:hidden">
96+
<div class="fixed inset-0 backdrop-blur-sm z-50 flex items-start justify-center pt-20 px-4 md:hidden">
9897
<div
9998
ref={menuRef}
10099
class="w-full max-w-md bg-base rounded-2xl shadow-2xl border border-surface1 overflow-hidden"
@@ -125,7 +124,9 @@ export default function MobileMenu() {
125124
href={link.href}
126125
class={`flex items-center gap-3 px-4 py-3 rounded-xl transition-all duration-200 ${link.hoverBg} group`}
127126
>
128-
<div class={`${link.color} transition-transform group-hover:scale-110`}>
127+
<div
128+
class={`${link.color} transition-transform group-hover:scale-110`}
129+
>
129130
<IconComponent size={20} />
130131
</div>
131132
<span class="text-text font-medium group-hover:text-text transition-colors">

islands/SearchComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default function SearchComponent({
217217
}
218218

219219
return (
220-
<div class="fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-start justify-center pt-20 px-4">
220+
<div class="fixed inset-0 backdrop-blur-sm z-50 flex items-start justify-center pt-20 px-4">
221221
<div class="w-full max-w-2xl bg-base rounded-2xl shadow-2xl border border-surface1 overflow-hidden">
222222
{/* Search Input */}
223223
<div class="flex items-center gap-3 p-4 border-b border-surface1">

routes/std/[...path].tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import type { PageProps } from "fresh";
2+
import { File, FileText, Folder } from "lucide-preact";
23
import { CodeBlock } from "../../components/CodeBlock.tsx";
34
import { Content as MarkdownContent } from "../../components/Content.tsx";
45
import Footer from "../../components/Footer.tsx";
5-
import NavBar from "../../components/NavBar.tsx";
66
import Meta from "../../components/Meta.tsx";
7-
import { isHtmlRequest } from "../../utils/mod.ts";
7+
import NavBar from "../../components/NavBar.tsx";
88
import { createStdMeta } from "../../utils/meta.ts";
9+
import { isHtmlRequest } from "../../utils/mod.ts";
910

1011
interface TreeItem {
1112
name: string;
@@ -238,10 +239,10 @@ export default async function StdPage(props: PageProps<never>) {
238239
if (it.type === "dir") {
239240
return (
240241
<a
241-
class="text-blue-300 hover:underline font-medium"
242+
class="text-blue-300 inline-flex hover:underline font-medium"
242243
href={`/std/${it.path}`}
243244
>
244-
📁 {it.name}
245+
<Folder class="mr-2" /> {it.name}
245246
</a>
246247
);
247248
}
@@ -258,20 +259,20 @@ export default async function StdPage(props: PageProps<never>) {
258259
const href = dir ? `/std/${dir}` : "/std";
259260
return (
260261
<a
261-
class="text-sky-200 hover:underline font-medium"
262+
class="text-sky-200 inline-flex hover:underline font-medium"
262263
href={href}
263264
>
264-
📄 {it.name}
265+
<File class="mr-2" /> {it.name}
265266
</a>
266267
);
267268
}
268269

269270
return (
270271
<a
271-
class="text-sky-200 hover:underline font-medium"
272+
class="text-sky-200 inline-flex hover:underline font-medium"
272273
href={`/std/${it.path}`}
273274
>
274-
📄 {it.name}
275+
<FileText class="mr-2" /> {it.name}
275276
</a>
276277
);
277278
})()}

static/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// deno-lint-ignore-file no-unused-vars
2-
const CACHE_VERSION = "v28"; // Increment this when you have new features
2+
const CACHE_VERSION = "v29"; // Increment this when you have new features
33
// const STATIC_CACHE = `andromeda-static-${CACHE_VERSION}`;
44
const DYNAMIC_CACHE = `andromeda-dynamic-${CACHE_VERSION}`;
55

0 commit comments

Comments
 (0)