-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewtab.html
More file actions
221 lines (205 loc) · 5.84 KB
/
Copy pathnewtab.html
File metadata and controls
221 lines (205 loc) · 5.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!--comradeium-inject-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>New tab — Comradeium</title>
<style>
:root {
--red-deep: #3d0a0a;
--red: #7a1212;
--gold: #d4af37;
--gold-dim: #8a6f28;
--cream: #f2e8d5;
--ink: #140808;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
}
body {
font-family: system-ui, "Segoe UI", "Roboto Condensed", "Arial Narrow", sans-serif;
color: var(--cream);
background: radial-gradient(ellipse 120% 80% at 50% 0%, #6b1515 0%, var(--ink) 55%, #050202 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 32px 20px 48px;
}
.rays {
position: fixed;
inset: 0;
pointer-events: none;
background: repeating-conic-gradient(
from 0deg at 50% -10%,
transparent 0deg 8deg,
rgba(212, 175, 55, 0.03) 8deg 16deg
);
opacity: 0.9;
}
.card {
position: relative;
width: min(520px, 100%);
border: 3px solid var(--gold);
background: linear-gradient(165deg, rgba(42, 18, 18, 0.95) 0%, rgba(20, 8, 8, 0.98) 100%);
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
padding: 28px 28px 26px;
}
.star {
text-align: center;
font-size: 2rem;
color: var(--gold);
text-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
margin-bottom: 6px;
}
h1 {
font-family: system-ui, "Arial Narrow", "Helvetica Neue", sans-serif;
font-weight: 700;
font-size: clamp(1.6rem, 5vw, 2rem);
letter-spacing: 0.2em;
text-align: center;
text-transform: uppercase;
margin: 0 0 6px;
color: var(--cream);
}
.sub {
text-align: center;
font-size: 0.7rem;
letter-spacing: 0.28em;
text-transform: uppercase;
color: var(--gold-dim);
margin: 0 0 26px;
}
form {
display: flex;
flex-direction: column;
gap: 14px;
}
label {
font-size: 0.68rem;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--gold-dim);
}
.row {
display: flex;
gap: 0;
border: 3px solid var(--gold-dim);
background: var(--cream);
}
input[type="search"] {
flex: 1;
min-width: 0;
border: none;
padding: 14px 16px;
font-family: inherit;
font-size: 1.05rem;
color: var(--ink);
background: transparent;
-webkit-appearance: none;
appearance: none;
}
input[type="search"]:focus {
outline: none;
}
button[type="submit"] {
font-family: system-ui, "Arial Narrow", sans-serif;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
padding: 0 22px;
border: none;
border-left: 3px solid var(--gold-dim);
background: linear-gradient(180deg, #c41e1e 0%, var(--red) 100%);
color: var(--cream);
cursor: pointer;
font-size: 0.85rem;
}
button[type="submit"]:hover {
filter: brightness(1.08);
}
.hint {
margin: 18px 0 0;
font-size: 0.72rem;
line-height: 1.45;
color: rgba(242, 232, 213, 0.55);
text-align: center;
letter-spacing: 0.06em;
}
</style>
</head>
<body>
<div class="rays" aria-hidden="true"></div>
<main class="card">
<div class="star" aria-hidden="true">☭</div>
<h1>Five-Year Search Plan</h1>
<p class="sub">Central inquiry — uses your configured engine</p>
<form id="search-form" role="search">
<label for="q">Objective</label>
<div class="row">
<input
type="search"
id="q"
name="q"
enterkeyhint="search"
autocomplete="off"
placeholder="Type and press Enter…"
autofocus
/>
<button type="submit">Search</button>
</div>
</form>
<p class="hint">Change engine in Settings. Opens results in this tab.</p>
</main>
<script>
(function () {
var template = "https://duckduckgo.com/?q={q}";
if (
typeof window.__COMRADEIUM_SEARCH_TEMPLATE__ === "string" &&
window.__COMRADEIUM_SEARCH_TEMPLATE__.indexOf("{q}") !== -1
) {
template = window.__COMRADEIUM_SEARCH_TEMPLATE__;
} else {
var params = new URLSearchParams(window.location.search);
var tq = params.get("t");
if (tq) {
try {
template = decodeURIComponent(tq);
} catch (e) {
/* keep default */
}
}
var h = window.location.hash.slice(1);
if (h && !tq) {
try {
template = decodeURIComponent(h);
} catch (e) {
/* keep default */
}
}
}
if (template.indexOf("{q}") === -1) {
template = "https://duckduckgo.com/?q={q}";
}
var form = document.getElementById("search-form");
var input = document.getElementById("q");
form.addEventListener("submit", function (ev) {
ev.preventDefault();
var q = input.value.trim();
if (!q) {
input.focus();
return;
}
var url = template.split("{q}").join(encodeURIComponent(q));
window.location.href = url;
});
})();
</script>
</body>
</html>