-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.html
127 lines (123 loc) · 5.47 KB
/
settings.html
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
<!doctype html>
<html class="page">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="/ui/resources/colors.css" />
<link rel="stylesheet" href="/ui/resources/fonts.css" />
<link rel="stylesheet" href="/ui/elements/icon.css" />
<link rel="stylesheet" href="/ui/elements/button.css" />
<link rel="stylesheet" href="/ui/elements/list-box.css" />
<link rel="stylesheet" href="/ui/elements/setting.css" />
<link rel="stylesheet" href="/ui/elements/text-field.css" />
<link rel="stylesheet" href="/ui/elements/typography.css" />
<script type="module" src="/ui/elements/NumberField.js"></script>
<link rel="stylesheet" href="/ui/global.css" />
<link rel="stylesheet" href="/ui/layout.css" />
<link rel="stylesheet" href="/ui/page.css" />
<script type="module" src="/settings.js"></script>
</head>
<body class="page__body">
<template data-path="page">
<header class="header">
<h1 class="header__title">{{ header.title }}</h1>
<menu class="header__menu">
<li class="header__menu-item">
<a
class="button button--narrow"
href="{{ header.navButton.url }}"
title="{{ header.navButton.label }}"
>
<span class="icon icon--arrow-back"></span>
</a>
</li>
</menu>
</header>
<main class="main">
<h2 class="heading-2">{{ appearance.title }}</h2>
<div class="setting">
<h3 class="setting__title">
{{ appearance.colorScheme.title }}
</h3>
<div class="list-box">
<template data-path="appearance.colorScheme.options">
<label class="list-box__item" tabindex="-1">
<input
class="icon icon--check list-box__input"
type="radio"
name="colorScheme"
value="{{ value }}"
checked?
autofocus?
/>
<span class="list-box__label">
{{ label }}
</span>
</label>
</template>
</div>
<p class="setting__description">
{{ appearance.colorScheme.description }}
</p>
</div>
<div class="setting">
<h3 class="setting__title">{{ appearance.hue.title }}</h3>
<number-field>
<input
name="hue"
type="number"
min="0"
max="360"
placeholder="{{ appearance.hue.placeholder }}"
value="{{ appearance.hue.value }}"
/>
</number-field>
<p class="setting__description">
{{ appearance.hue.description }}
</p>
</div>
<div class="setting">
<h3 class="setting__title">
{{ appearance.authorBadges.title }}
</h3>
<div class="list-box">
<template data-path="appearance.authorBadges.options">
<label class="list-box__item" tabindex="-1">
<input
class="icon icon--check list-box__input"
type="checkbox"
name="{{ name }}"
checked?
/>
<span class="list-box__label">
{{ label }}
</span>
</label>
</template>
</div>
<p class="setting__description">
{{ appearance.authorBadges.description }}
</p>
</div>
<h2 class="heading-2">{{ calculations.title }}</h2>
<div class="setting">
<h3 class="setting__title">
{{ calculations.usBuyersPercent.title }}
</h3>
<number-field>
<input
name="usBuyersPercent"
type="number"
min="0"
max="100"
placeholder="{{ calculations.usBuyersPercent.placeholder }}"
value="{{ calculations.usBuyersPercent.value }}"
/>
</number-field>
<p class="setting__description">
{{ calculations.usBuyersPercent.description }}
</p>
</div>
</main>
</template>
</body>
</html>