-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (39 loc) · 2.12 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
<!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="./images/favicon-32x32.png">
<link rel="stylesheet" href="./advice.css">
<title>Advice generator app</title>
</head>
<body>
<div class="advice-container">
<!-- Advice ID goes here -->
<p class="advice-heading">Advice #<span id="advice-id" class="number"></span></p>
<p class="advice-body" id="advice-body"><!-- Advice text goes here --></p>
<svg class="advice-divider" width="444" height="16" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none">
<g fill="none" fill-rule="evenodd">
<path fill="#4F5D74" d="M0 8h196v1H0zM248 8h196v1H248z" />
<g transform="translate(212)" fill="#CEE3E9">
<rect width="6" height="16" rx="3" />
<rect x="14" width="6" height="16" rx="3" />
</g>
</g>
</svg>
<svg width="295" height="16" class="advice-divider-mobile" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path fill="#4F5D74" d="M0 8h122v1H0zM173 8h122v1H173z"/><g transform="translate(138)" fill="#CEE3E9"><rect width="6" height="16" rx="3"/><rect x="14" width="6" height="16" rx="3"/></g></g></svg>
<div class="dice" id="dice-button" onclick="clickDice()">
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg">
<path
d="M20 0H4a4.005 4.005 0 0 0-4 4v16a4.005 4.005 0 0 0 4 4h16a4.005 4.005 0 0 0 4-4V4a4.005 4.005 0 0 0-4-4ZM7.5 18a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0-9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm4.5 4.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm4.5 4.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Zm0-9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z"
fill="#202733" />
</svg>
</div>
</div>
<div class="attribution">
Challenge created by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://www.seepaulacode.me" target="_blank">seepaulacode</a>.
</div>
<script src="./advice-generator.js"></script>
</body>
</html>