-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
87 lines (86 loc) · 2.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<!-- Google fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Manrope:wght@700&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<title>Frontend Mentor | Advice generator app</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<main>
<!--wrapper -->
<div class="wrapper min-h-screen bg-primary-50 px-3">
<!-- card -->
<div
class="relative w-full max-w-xs place-self-center rounded-lg bg-primary-40 px-7 pt-10 font-manrope md:max-w-lg md:px-12 md:pt-12"
>
<!-- Advice heading -->
<h1
class="mb-8 text-center text-xs uppercase tracking-widest text-primary-20"
id="advice-id"
>
Advice # 117
</h1>
<!-- Quote -->
<p
class="mb-10 text-center text-2xl font-bold text-primary-10"
id="advice-text"
>
" Lorem ipsum dolor sit amet consectetur adipisicing elit. commodi
quas! "
</p>
<!-- divider -->
<div class="mb-14 md:mb-20">
<picture>
<source
media="(min-width: 768px)"
srcset="images/pattern-divider-desktop.svg"
/>
<img
src="images/pattern-divider-mobile.svg"
alt="divider pattern"
/>
</picture>
</div>
<!-- dice icon -->
<button
class="btn group absolute bottom-0 left-1/2 grid h-14 w-14 translate-y-1/2 -translate-x-1/2 cursor-pointer place-items-center rounded-full bg-primary-20"
>
<span class="sr-only">Generate random Advice</span>
<img
src="images/icon-dice.svg"
class="duration-500 group-hover:rotate-180"
alt=""
/>
</button>
</div>
<footer class="my-1 text-center font-manrope text-base text-primary-10">
Challenge by
<a
href="https://www.frontendmentor.io?ref=challenge"
class="text-primary-20"
target="_blank"
rel="noopener"
>Frontend Mentor</a
>. Coded by <a href="#" class="text-primary-20">Pranshu Sahu</a>.
</footer>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/axios@1.1.2/dist/axios.min.js"></script>
<script src="script.js"></script>
</body>
</html>