Skip to content

Commit ea5443f

Browse files
committed
made nav bar smaller
1 parent 6eec945 commit ea5443f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.svelte-kit/generated/server/internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const options = {
2424
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t" + head + "\n\t</head>\n\t<body data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
2525
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
2626
},
27-
version_hash: "14nh3ct"
27+
version_hash: "s1uw29"
2828
};
2929

3030
export async function get_hooks() {

src/lib/components/Nav.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
];
1111
</script>
1212

13-
<nav class="fixed top-0 left-0 right-0 z-50 py-6 px-6" style="background: var(--color-background)">
13+
<nav class="fixed top-0 left-0 right-0 z-50 py-4 px-6" style="background: var(--color-background)">
1414
<div class="max-w-6xl mx-auto flex justify-between items-center">
15-
<a href="{base}/" class="text-2xl font-bold" style="color: var(--color-primary)">
15+
<a href="{base}/" class="text-xl font-bold" style="color: var(--color-primary)">
1616
JS
1717
</a>
18-
<ul class="flex gap-8">
18+
<ul class="flex gap-6">
1919
{#each links as link}
2020
<li>
2121
<a
2222
href={link.path}
23-
class="nav-link text-lg transition-all duration-300 hover:scale-110"
23+
class="nav-link text-base transition-all duration-300 hover:scale-110"
2424
class:active={$page.url.pathname === link.path}
2525
style="color: var(--color-primary); opacity: {$page.url.pathname === link.path ? 1 : 0.7}"
2626
>
@@ -33,7 +33,7 @@
3333
</nav>
3434

3535
<!-- Spacer to prevent content from hiding under fixed nav -->
36-
<div class="h-24"></div>
36+
<div class="h-16"></div>
3737

3838
<style>
3939
.nav-link:hover {

0 commit comments

Comments
 (0)