-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
349 lines (303 loc) · 10.9 KB
/
Copy pathindex.html
File metadata and controls
349 lines (303 loc) · 10.9 KB
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!doctype html>
<html lang="en">
<head>
<!--
mission:
custom local Edge home page for calm, fast daily launching.
main actions:
- shows a greeting based on the computer's local time
- shows a random work-mode subtitle on each page load
- provides separate Google and Google Norge search bars
- groups links into simple categories
- uses a muted low-contrast palette that stays comfortable in light mode
- stays fully static so it works directly from a local file path
-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>home</title>
<style>
:root {
/* source palette */
--ink: #181322;
--bark: #4b372c;
--brick: #a2423a;
--parchment: #cdc1a7;
/* warm parchment base */
--background: var(--parchment);
--background-glow: color-mix(
in srgb,
var(--parchment) 78%,
var(--brick) 22%
);
/* earthy layered surfaces */
--panel: color-mix(
in srgb,
var(--parchment) 84%,
var(--bark) 16%
);
--panel-soft: color-mix(
in srgb,
var(--parchment) 68%,
var(--bark) 32%
);
--panel-hover: color-mix(
in srgb,
var(--parchment) 58%,
var(--brick) 42%
);
/* dark text and warm secondary text */
--text: var(--ink);
--muted: var(--bark);
/* brick-red controls with dark hover */
--accent: var(--brick);
--accent-hover: var(--ink);
/* warm brown separators */
--border: color-mix(
in srgb,
var(--bark) 62%,
var(--parchment) 38%
);
--button-text: var(--parchment);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--background);
color: var(--text);
font-family: system-ui, "Segoe UI", sans-serif;
}
main {
width: min(1050px, calc(100vw - 32px));
margin: 0 auto;
padding: 30px 0;
}
h1 {
margin: 0 0 7px;
font-size: clamp(1.45rem, 2.5vw, 2rem);
font-weight: 650;
letter-spacing: -0.025em;
}
.subtitle {
margin: 0 0 26px;
color: var(--muted);
font-size: 0.95rem;
}
.searches {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 12px;
margin-bottom: 26px;
}
form {
display: flex;
gap: 9px;
padding: 10px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 15px;
}
input {
min-width: 0;
flex: 1;
padding: 11px 13px;
border: 1px solid var(--border);
border-radius: 11px;
background: var(--background);
color: var(--text);
font: inherit;
outline: none;
}
input::placeholder {
color: var(--muted);
}
input:focus {
border-color: var(--accent);
}
button {
padding: 11px 15px;
border: 1px solid var(--accent);
border-radius: 11px;
background: var(--accent);
color: var(--button-text);
font: inherit;
font-weight: 650;
cursor: pointer;
}
button:hover {
background: var(--accent-hover);
}
button:focus-visible,
a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.categories {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 13px;
}
.category {
padding: 15px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 17px;
}
h2 {
margin: 0 0 11px;
color: var(--muted);
font-size: 0.9rem;
font-weight: 650;
text-transform: lowercase;
}
.links {
display: grid;
gap: 8px;
}
a {
display: block;
padding: 11px 13px;
border: 1px solid transparent;
border-radius: 11px;
background: var(--panel-soft);
color: var(--text);
text-decoration: none;
}
a:hover {
background: var(--panel-hover);
border-color: var(--accent);
}
</style>
</head>
<body>
<main>
<h1 id="greeting">hello, nroJ</h1>
<p id="subtitle" class="subtitle">start creating.</p>
<section class="searches" aria-label="search">
<form action="https://www.google.com/search" method="get">
<input
name="q"
type="search"
placeholder="search Google..."
autofocus
>
<button type="submit">World</button>
</form>
<form action="https://www.google.no/search" method="get">
<!-- pushes results toward norway and norwegian language. -->
<input type="hidden" name="gl" value="NO">
<input type="hidden" name="hl" value="no">
<input
name="q"
type="search"
placeholder="søk på Google Norge..."
>
<button type="submit">Norge</button>
</form>
</section>
<section class="categories" aria-label="quick links">
<section class="category">
<h2>news</h2>
<div class="links">
<a href="https://www.nrk.no">NRK</a>
<a href="https://www.abcnyheter.no">ABC Nyheter</a>
<a href="https://www3.nhk.or.jp/news/easy/">NHK News Easy</a>
<a href="https://matcha-jp.com/easy">MATCHA</a>
<a href="https://japanese.todaiinews.com/en">Todaii News</a>
</div>
</section>
<section class="category">
<h2>code</h2>
<div class="links">
<a href="https://chatgpt.com">ChatGPT</a>
<a href="https://github.com/nroj95?tab=repositories">GitHub</a>
<a href="https://tutorialreference.com/#tutorials">Tutorial Reference</a>
<a href="https://regex101.com/">Regex 101</a>
<a href="https://stackoverflow.com">Stack Overflow</a>
</div>
</section>
<section class="category">
<h2>daily tools</h2>
<div class="links">
<a href="https://www.yr.no/nb/s%C3%B8k?q=ulsteinvik">Yr</a>
<a href="https://min.happybytes.no">HappyBytes</a>
<a href="https://www.dropbox.com/home">Dropbox</a>
<a href="https://jisho.org">Jisho</a>
<a href="https://cloudconvert.com">CloudConvert</a>
</div>
</section>
<section class="category">
<h2>learning</h2>
<div class="links">
<a href="https://www.wanikani.com/dashboard">WaniKani</a>
<a href="https://mimo.org">Mimo</a>
<a href="https://www.satorireader.com/series">Satori Reader</a>
<a href="https://www.ctrlpaint.com/library">CtrlPaint Library</a>
</div>
</section>
</section>
</main>
<script>
const greeting = document.getElementById("greeting");
const subtitle = document.getElementById("subtitle");
const currentHour = new Date().getHours();
const greetings = [
"midnight plans?",
"still awake, nroJ?",
"one more idea?",
"deep night thoughts?",
"almost dawn already?",
"awake this early?",
"early mission, nroJ?",
"ready to begin?",
"good morning, nroJ",
"what’s first?",
"making something cool?",
"nearly noon already?",
"midday momentum?",
"ready for round two?",
"good afternoon, nroJ",
"what’s the next move?",
"one more push?",
"made something good?",
"evening adventure?",
"good evening, nroJ",
"something fun tonight?",
"got another idea?",
"winding down, nroJ?",
"one last adventure?"
];
const subtitles = [
"happiness is to love; strength is the mind in control; health is to breathe",
"no matter how perfect or flawed you are, there will always be people that hate you.",
"words, conventions, obligations, rules, authority. let them stay tools, not masters.",
"stop restarting. start adapting. start creating.",
"it’s not about the cards you’ve got — it’s how you use them",
"the first step to being perfect is realizing you already are",
"no one’s perfect — and that’s perfect",
"don’t tell them the way — show them the way",
"break the wall — do it all",
"you know what a happy person needs? nothing — because they’re already happy",
"who cares if you fail — if you’re already happy?",
"breathe, motherf*cker!",
"happy, strong, and healthy — the rest is bullsh*t",
"there’s more than meets the eye",
"if you’ve got guts, you can do anything",
"be the one who moves forward — no matter how dirty you get",
"your only limits are the ones you set on yourself",
"big risks lead to great rewards",
"truth? meaning? just words.",
"don’t analyze everything — just feel. just be.",
"the breath is everything",
"comfort is boring. happiness is flat; suffering shapes the soul.",
"it’s not about motivation — it’s about love",
"love, love, love — again and again and again ❤️"
];
greeting.textContent = greetings[currentHour];
subtitle.textContent =
subtitles[Math.floor(Math.random() * subtitles.length)];
</script>
</body>
</html>