forked from T3-Content/unduck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
213 lines (207 loc) · 8.93 KB
/
Copy pathindex.html
File metadata and controls
213 lines (207 loc) · 8.93 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/search.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>funduck</title>
<meta
name="description"
content="A better default search engine (with bangs!)"
/>
<link rel="stylesheet" href="src/global.css" />
</head>
<body>
<div class="search-icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="56"
height="56"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-search-icon lucide-search"
>
<title>Search</title>
<path d="m21 21-4.34-4.34" />
<circle cx="11" cy="11" r="8" />
</svg>
</div>
<div id="app" class="cloak">
<main class="main-layout">
<div></div>
<header class="header">
<h1>fund*ck</h1>
<p>
DuckDuckGo's bang redirects are too slow. funduck
enables
<a
href="https://duckduckgo.com/bang.html"
target="_blank"
>
all of DuckDuckGo's bangs</a
>, plus a few extra ones.
</p>
<section class="search-section">
<form action="https://s.finxol.link" method="GET">
<input
name="q"
type="text"
placeholder="Search anything using !bangs"
tabindex="0"
/>
<button type="submit">
<svg
xmlns="http://www.w3.org/2000/svg"
width="56"
height="56"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-search-icon lucide-search"
>
<title>Search</title>
<path d="m21 21-4.34-4.34" />
<circle cx="11" cy="11" r="8" />
</svg>
</button>
</form>
<button
type="button"
class="browse-bangs-button"
popovertarget="bang-search-popover"
>
Browse bangs
</button>
</section>
</header>
<div class="bottom-content">
<section class="bottom-section">
<span>
Add this URL as a custom search engine to your
browser.
</span>
<div class="url-container">
<input
type="text"
class="url-input"
value="https://s.finxol.link?q=%s"
readonly
tabindex="-1"
/>
<button class="copy-button" type="button">
<img src="/clipboard.svg" alt="Copy" />
</button>
</div>
</section>
<footer>
<section class="theme-control">
<button class="theme-button" type="button">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-sun-icon lucide-sun"
>
<title>Light mode</title>
<circle cx="12" cy="12" r="4" />
<path d="M12 2v2" />
<path d="M12 20v2" />
<path d="m4.93 4.93 1.41 1.41" />
<path d="m17.66 17.66 1.41 1.41" />
<path d="M2 12h2" />
<path d="M20 12h2" />
<path d="m6.34 17.66-1.41 1.41" />
<path d="m19.07 4.93-1.41 1.41" />
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-moon-icon lucide-moon"
>
<title>Dark mode</title>
<path
d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"
/>
</svg>
</button>
<button
type="button"
class="unset-theme-button hide"
>
unset
</button>
</section>
<section>
<a href="https://finxol.io" target="_blank"
>finxol</a
>
•
<a href="https://t3.gg" target="_blank">theo</a>
•
<a
href="https://github.com/finxol/funduck"
target="_blank"
>
github
</a>
</section>
</footer>
</div>
</main>
</div>
<div id="bang-search-popover" popover>
<div class="popover-header">
<h2>Search Bangs</h2>
<button
type="button"
class="popover-close"
popovertarget="bang-search-popover"
popovertargetaction="hide"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<title>Close</title>
<path d="M18 6 6 18" />
<path d="m6 6 12 12" />
</svg>
</button>
</div>
<input
type="text"
class="bang-search-input"
placeholder="Search by bang, title, or website..."
/>
<div class="bang-search-results"></div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>