-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
370 lines (366 loc) · 13.6 KB
/
index.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
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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="./favicon-16x16.png"
/>
<title>GuidedSubstance</title>
<link rel="stylesheet" href="./styles/index.css" />
<link rel="stylesheet" href="./styles/detail.css" />
<link rel="stylesheet" href="./styles/allDrugs.css" />
<link rel="stylesheet" href="./styles/help.css" />
</head>
<body>
<header class="home-header">
<hyper-link to="GuidedSubstance">
<img class="logo" src="./images/logo.svg" alt="GuidedSubstance" />
</hyper-link>
<nav class="navigation">
<ul>
<li>
<hyper-link to="GuidedSubstance">Home</hyper-link>
</li>
<li><hyper-link to="Categories">Drug categories</hyper-link></li>
<li><hyper-link to="AllDrugs">All drugs</hyper-link></li>
<li><hyper-link to="Help">Get help</hyper-link></li>
<li class="disabled">About</li>
</ul>
</nav>
<img
id="burger-button"
class="burger-menu"
src="./images/burger-menu.svg"
alt="burger menu"
/>
<div class="mobile-navigation">
<button id="close">X</button>
<ul>
<li>
<hyper-link to="GuidedSubstance">Home</hyper-link>
</li>
<li><hyper-link to="Categories">Drug categories</hyper-link></li>
<li><hyper-link to="AllDrugs">All drugs</hyper-link></li>
<li><hyper-link to="Help">Get help</hyper-link></li>
<li class="disabled">About</li>
</ul>
</div>
<div class="shadow"></div>
</header>
<main id="content"></main>
<div class="chat-bubble" id="chat-bubble">
<img
id="chat-button"
class="bubble-image"
src="./images/chat.svg"
alt="the actual chat bubble that is a blue stroke with a plus sign inside"
/>
<img class="bubble-image-filled" src="./images/chat-filled.svg" alt="" />
<div class="chat-container">
<h3>Contact</h3>
<p>If you have any questions please do not hesitate to contact us!</p>
<img class="messenger" src="./images/messenger.svg" alt="" />
</div>
</div>
<template id="drug-tile">
<hyper-link to="Detail" item="{name}">
<article class="tile">
<img src="{src}" alt="{name}" />
<h4>{name}</h4>
</article>
</hyper-link>
</template>
<template id="drug-detail">
<main class="drug-detail">
<header class="detail-header">
<img class="image-main" src="{imageMain}" alt="{name}" />
<div class="header-container">
<div class="meta">
<span class="schedule">{schedule}</span>
<span class="category">{category}</span>
</div>
<h2>{name}</h2>
<span class="street-names">{street names}</span>
<div class="description">
<p class="description-content">{description}</p>
<a href="{source}" class="description-link">Read more...</a>
</div>
</div>
</header>
<section class="section-effects">
<div class="effects">
<h3 class="section-heading">Effects</h3>
<p class="effects-description">{effectsDesc}</p>
</div>
<img class="image-compound" src="{imageCompound}" alt="compound" />
</section>
<section class="section-effects-comparison">
<div class="actual-effects">
<h4>
<strong>Effects</strong> may include but are not limited to:
</h4>
<ul class="effects-list" id="actual-effects"></ul>
</div>
<div class="side-effects">
<h4>
<strong>Side-effects</strong> may include but are not limited to:
</h4>
<ul class="effects-list" id="side-effects"></ul>
</div>
</section>
<section class="section-dosage">
<h4 class="section-heading">Dosage</h4>
<div class="dosage">
<div class="range"></div>
<div class="dosage-columns">
<div class="dosage-column threshold-value">{threshold}</div>
<div class="dosage-column light-value">{light}</div>
<div class="dosage-column common-value">{common}</div>
<div class="dosage-column strong-value">{strong}</div>
</div>
<div class="dosage-columns">
<div class="dosage-column threshold">threshold</div>
<div class="dosage-column light">light</div>
<div class="dosage-column common">common</div>
<div class="dosage-column strong">strong</div>
</div>
</div>
</section>
<section class="section-safes-and-risks">
<div class="safety-tips">
<h4 class="section-heading safety-icon">Safety Tips</h4>
<ul class="safety-list" id="safety-tips"></ul>
</div>
<div class="risks">
<h4 class="section-heading risks-icon">Risks</h4>
<ul class="risks-list" id="risks"></ul>
</div>
</section>
<section class="video-section">
<h4 class="section-heading">Recommended video</h4>
<div class="video-container">
<iframe
src="{youtube}"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</div>
</section>
<section>
<h4 class="section-heading">See other drugs</h4>
</section>
</main>
</template>
<template id="categories">
<h2 class="categories-heading" id="categories-scroll">Categories</h2>
<section class="categories">
<div class="category stimulants">
<h2>Stimulants</h2>
<div class="category-content">
<p>
<strong>Stimulants</strong> speed up the body’s nervous system and
create a feeling of energy. They are also called “uppers” because
of their ability to make you feel very awake. Stimulants have the
opposite effect of depressants. When the effects of a stimulant
wear off, the user is typically left with feelings of sickness and
a loss of energy. Constant use of such drugs can have very
negative effects on the user.
</p>
<div class="drug-tiles" id="stimulants"></div>
</div>
</div>
<div class="category psychedelics">
<h2>Psychedelics</h2>
<div class="category-content">
<p>
<strong>Psychedelics</strong> are a hallucinogenic class of
psychoactive drug whose primary effect is to trigger non-ordinary
states of consciousness and psychedelic experiences via serotonin
2A receptor agonism. This causes specific psychological, visual
and auditory changes, and often a substantially altered state of
consciousness. "Classical" psychedelic drugs include mescaline,
LSD, psilocybin, and DMT.
</p>
<div class="drug-tiles" id="psychedelics"></div>
</div>
</div>
<div class="category cannabis">
<h2>Cannabis</h2>
<div class="category-content">
<p>
<strong>Cannabis</strong> can have a variety of psychological and
physical effects that vary from person to person. It can make some
people tired or relaxed and give others an energy boost and
increase alertness. It can also help to treat mental health
conditions, such as anxiety and depression, in some people. In
others, it can actually cause anxiety over time. As a result,
cannabis can be considered a depressant, stimulant, or
hallucinogen.
</p>
<div class="drug-tiles" id="cannabis"></div>
</div>
</div>
<div class="category opioids">
<h2>Opioids</h2>
<div class="category-content">
<p>
<strong>Opioids</strong> are a class of drugs naturally found in
the opium poppy plant and that work in the brain to produce a
variety of effects, including the relief of pain with many of
these drugs. Opioids can be prescription medications often
referred to as painkillers, or they can be so-called street drugs,
such as heroin.
</p>
<div class="drug-tiles" id="opioids"></div>
</div>
</div>
</section>
</template>
<template id="hero">
<section class="hero">
<h1 id="heading">{heading}</h1>
<h3 id="subheading">{subheading}</h3>
<img class="cocaine" src="./images/cocaine.svg" alt="compound" />
<img class="fentanyl" src="./images/fentanyl.svg" alt="compound" />
<img class="mdma" src="./images/mdma.svg" alt="compound" />
<img class="xanax" src="./images/xanax.svg" alt="compound" />
<img class="psilocybin" src="./images/psilocybin.svg" alt="compound" />
<img class="thc-down" src="./images/thc.svg" alt="compound" />
<img class="thc-up" src="./images/thc.svg" alt="compound" />
<img class="lsd" src="./images/lsd.svg" alt="compound" />
<img class="bg-mobile" src="./images/compound-mobile.svg" alt="" />
</section>
</template>
<template id="help">
<section class="help-section">
<div class="contact">
<h3 class="section-heading">Contact</h3>
<p class="contact-description">
Whether you want information about any chemical substances, have
suggestions on how we could improve our service, or find yourself in
need of help, our team of experts will be happy to help you. Simply
write to us using the contact form.
</p>
</div>
<form action="action_page.php">
<div class="name-and-email">
<div class="input-group">
<label for="your-name">Your name</label>
<input
type="text"
id="your-name"
name="your-name"
placeholder="Your name.."
/>
</div>
<div class="input-group">
<label for="email">Email</label>
<input
type="text"
id="email"
name="email"
placeholder="Your email address.."
/>
</div>
</div>
<label for="subject">Your message</label>
<textarea
id="subject"
name="subject"
placeholder="Your message"
style="height: 200px"
></textarea>
<input type="submit" value="Send" />
</form>
<div class="hotline">
<h3 class="section-heading">Hotline</h3>
<p class="hotline-text">
Call +45 9054 6067 <br />
Weekdays: 08.00-16.00
</p>
</div>
</section>
</template>
<template id="all-drugs">
<section class="all-drugs">
<div class="filters">
<div class="filter filter-categories">
<h3 class="filter-heading">Categories</h3>
<input
type="radio"
name="category"
id="stimulants-cat"
data-category="stimulants"
/>
<label for="stimulants-cat" class="filter-category stimulants"
>Stimulants</label
>
<input
type="radio"
name="category"
id="opioids-cat"
data-category="opioids"
/>
<label for="opioids-cat" class="filter-category opioids"
>Opioids</label
>
<input
type="radio"
name="category"
id="psychedelics-cat"
data-category="psychedelics"
/>
<label for="psychedelics-cat" class="filter-category psychedelics"
>Psychedelics</label
>
<input
type="radio"
name="category"
id="cannabis-cat"
data-category="cannabis"
/>
<label for="cannabis-cat" class="filter-category cannabis"
>Cannabis</label
>
</div>
<div class="filter filter-classes">
<h3 class="filter-heading">Legal Classification</h3>
<div class="classes">
<button class="filter-class a">A</button>
<button class="filter-class bee">B</button>
<button class="filter-class c">C</button>
</div>
</div>
<div class="filter filter-search">
<input
class="search"
type="search"
placeholder="Search..."
id="search-box"
/>
<img class="img-search" src="images/search_104498.svg" />
</div>
</div>
<div class="drugs-container"></div>
</section>
</template>
<script>
/* AGE GATE
if (localStorage.getItem("entered")) {
document.querySelector(".age-gate").classList.add("hidden");
}*/
</script>
<script src="./scripts/script.js" type="module"></script>
</body>
</html>