-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
134 lines (126 loc) · 3.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<script type="text/javascript" src="./script.js"></script>
<title>Quotes</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", sans-serif;
color: #343a40;
line-height: 1;
height: 100vh;
background-image: linear-gradient(
to right bottom,
#ff9a2f,
#ff9c7a,
#ffadb9,
#ffc7e7,
#ffe2fe,
#ebe1ff,
#d4e0ff,
#bedffd,
#64ceeb,
#00bdbd,
#00a572,
#0a8901
);
}
.carousel {
width: 800px;
margin: 50px auto;
margin-top: 250px;
background-color: #087f5b;
/* padding: 32px; */
/* padding-left: 86px; */
/* padding-right: 48px; */
padding: 32px 48px 32px 86px;
border-radius: 8px;
position: relative;
display: flex;
align-items: center;
gap: 86px;
}
img {
height: 200px;
width: 200px;
border-radius: 8px;
transform: scale(1.5);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}
.quote-text {
font-size: 18px;
font-weight: 500;
line-height: 1.5;
margin-bottom: 32px;
color: #e6fcf5;
}
.quote-author {
font-size: 14px;
margin-bottom: 4px;
color: #c3fae8;
}
.quote-job {
font-size: 12px;
color: #c3fae8;
font-style: italic;
}
.btn-div {
width: 200px;
margin: 25px auto;
}
.btn {
padding: 20px;
background-color: #087f5b;
color: #e6fcf5;
border-radius: 5px;
font-size: 20px;
font-weight: 700;
border: none;
box-shadow: 0px 0px 34px 0px rgba(0, 0, 0, 0.32);
}
.btn:hover {
cursor: pointer;
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24),
0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
.btn:active {
padding: 19px;
font-size: 19px;
outline: none;
box-shadow: none;
}
</style>
</head>
<body>
<div class="carousel">
<img
id="quote-image-id"
src="pictures/Mahatma Gandhi.jpeg"
alt="Mahatma Gandhi"
/>
<blockquote class="quote">
<p class="quote-text" id="quote-text-id">
Live as if you were to die tomorrow. Learn as if you were to live
forever.
</p>
<p class="quote-author" id="quote-author-id">Mahatma Gandhi</p>
<p class="quote-job" id="quote-job-id">Father Of the Nation</p>
</blockquote>
</div>
<div class="btn-div" onclick="getquote()">
<button class="btn">Get Quote</button>
</div>
</body>
</html>