aboutsummaryrefslogtreecommitdiff
path: root/templates/settings.html
blob: 780e438fc7c4d4311191b18373cbc9f7145b8e57 (plain)
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
<!DOCTYPE html>
<html lang="en">

    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0">
        <title>
            OmniSearch - Settings
        </title>
        <link rel="stylesheet" href="static/main.css">
        {{if theme == "light"}}<link rel="stylesheet" href="static/theme-light.css">{{endif}}
        {{if theme == "dark"}}<link rel="stylesheet" href="static/theme-dark.css">{{endif}}
        <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
        <link rel="search"
        type="application/opensearchdescription+xml"
        title="OmniSearch" href="/opensearch.xml">
    </head>

    <body class="settings-view">
        <header>
            <h1>
                Omni<span>Search</span>
            </h1>
            <form action="/search" method="GET" class="search-form">
                <input name="q" type="text" class="search-box" autocomplete="off" placeholder="Search the web..."
                value="{{query}}">
            </form>
            <a href="/settings?q={{query}}" class="nav-settings-icon active" title="Settings"></a>
        </header>
        <nav class="nav-tabs">
            <div class="nav-container">
                <a href="/search?q={{query}}">
                    All
                </a>
                <a href="/images?q={{query}}">
                    Images
                </a>
                <a href="/settings" class="active nav-settings-link">
                    Settings
                </a>
            </div>
        </nav>
        <div class="settings-layout">
            <main class="settings-container">
                <form action="/save_settings" method="GET">
                    <input type="hidden" name="q" value="{{query}}">
                    <section class="settings-section">
                        <h3 class="settings-section-title">Theme</h3>
                        <p class="settings-section-desc">Choose your preferred colour scheme.</p>
                        <div class="settings-field">
                            <label class="settings-label" for="theme">Appearance</label>
                            <select id="theme" name="theme" class="settings-select">
                                <option value="system" {{if theme == "system"}}selected{{endif}}>System</option>
                                <option value="light" {{if theme == "light"}}selected{{endif}}>Light</option>
                                <option value="dark" {{if theme == "dark"}}selected{{endif}}>Dark</option>
                            </select>
                        </div>
                    </section>
                    <div class="settings-actions">
                        <button type="submit" class="btn-primary">Save Settings</button>
                    </div>
                </form>
            </main>
        </div>
    </body>

</html>