| Name | Message | Date |
|---|---|---|
| 📁 guide | 1 month ago | |
| 📁 history | 1 month ago | |
| 📄 +layout.svelte | 1 month ago | |
| 📄 +layout.ts | 1 month ago | |
| 📄 +page.svelte | 1 month ago | |
| 📄 +page.ts | 1 month ago |
📄
src/routes/+layout.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<script lang="ts">
import { resolve } from "$app/paths";
import { page } from "$app/stores";
import GpsDialog from "$lib/components/GpsDialog.svelte";
let { children } = $props();
</script>
<GpsDialog />
<main>
{@render children()}
</main>
<nav>
<ul>
<li>
<a
href={resolve("/")}
aria-label="Home"
aria-current={$page.url.pathname === "/" ? "page" : undefined}
>
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<polygon points="16,11 24,8 22,16 16,15" />
<ellipse cx="11" cy="14" rx="7" ry="5.5" />
<circle cx="6" cy="10" r="5" />
<polygon points="1,10 6,8.5 6,11.5" />
<circle cx="4.5" cy="9.5" r="1" fill="var(--bg-deep)" />
</svg>
</a>
</li>
<li>
<a
href={resolve("/guide")}
aria-label="Field Guide"
aria-current={$page.url.pathname.startsWith("/guide") ? "page" : undefined}
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<rect x="5" y="2" width="14" height="20" rx="2" fill="currentColor" />
<rect x="5" y="2" width="3.5" height="20" fill="var(--accent-amber)" />
<rect x="11" y="7" width="6" height="1.5" fill="var(--bg-deep)" />
<rect x="11" y="11" width="6" height="1.5" fill="var(--bg-deep)" />
<rect x="11" y="15" width="4" height="1.5" fill="var(--bg-deep)" />
</svg>
</a>
</li>
<li>
<a
href={resolve("/history")}
aria-label="History"
aria-current={$page.url.pathname === "/history" ? "page" : undefined}
>
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<rect x="5" y="8" width="5" height="4" rx="1" />
<rect x="14" y="8" width="5" height="4" rx="1" />
<circle cx="7" cy="16" r="6" />
<circle cx="17" cy="16" r="6" />
<rect x="10" y="14" width="4" height="4" />
<circle cx="7" cy="16" r="3" fill="var(--bg-deep)" />
<circle cx="17" cy="16" r="3" fill="var(--bg-deep)" />
</svg>
</a>
</li>
</ul>
</nav>
<style>
:global(*) {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:global(html) {
/* Surfaces */
--bg-cream: #fff4d6;
--bg-paper: #f5e9d4;
--bg-field: #e89a3a;
--bg-deep: #3a1810;
--bg-near-black: #1a0808;
/* Brand */
--brand-red: #c4253a;
--brand-red-deep: #7a0e1f;
/* Warm accents */
--accent-amber: #e89a3a;
--accent-gold: #f0c96b;
--accent-rust: #b85a1c;
/* Cool accents (sky/water/foliage only) */
--accent-teal: #2a5a78;
--accent-blue: #1d6fb8;
--accent-forest: #1d6638;
--nav-height: 4rem;
}
:global(body) {
background: var(--bg-cream);
color: var(--bg-near-black);
font-family: system-ui, sans-serif;
overscroll-behavior: none;
-webkit-tap-highlight-color: transparent;
}
main {
min-height: 100dvh;
padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}
nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: calc(var(--nav-height) + env(safe-area-inset-bottom));
background: var(--bg-deep);
ul {
height: var(--nav-height);
display: flex;
align-items: center;
justify-content: center;
gap: 3.5rem;
list-style: none;
a {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: var(--bg-cream);
text-decoration: none;
padding: 0.5rem;
gap: 0.3rem;
opacity: 0.5;
transition: opacity 0.18s ease-out;
&:hover,
&:focus-visible,
&[aria-current="page"] {
opacity: 1;
}
&[aria-current="page"]::after {
content: "";
width: 0.35rem;
height: 0.35rem;
border-radius: 50%;
background: var(--brand-red);
}
svg {
width: 1.75rem;
height: 1.75rem;
}
}
}
}
</style>