Skip to content

Commit 477fd88

Browse files
Re-edited the HTML file and formatted it.
1 parent 942eaa2 commit 477fd88

File tree

2 files changed

+49
-50
lines changed

2 files changed

+49
-50
lines changed

Sprint-3/quote-generator/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Quote generator app</title>
77
<script defer src="quotes.js"></script>
8-
<link rel="stylesheet" href="style.css">
8+
<link rel="stylesheet" href="style.css" />
99
</head>
1010
<body>
1111
<div class="container">
12-
<h1>Quote Generator</h1>
1312
<p id="quote"></p>
1413
<p id="author"></p>
1514
<button type="button" id="new-quote">New quote</button>

Sprint-3/quote-generator/style.css

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
11
* {
2-
padding: 0;
3-
margin: 0;
4-
box-sizing: border-box;
2+
padding: 0;
3+
margin: 0;
4+
box-sizing: border-box;
55
}
66
body {
7-
background-color: orange;
8-
display: flex;
9-
justify-content: center; /* horizontal centering */
10-
align-items: flex-start; /* vertical centering */
11-
height: 100vh; /* full viewport height */
12-
font-family: Georgia, 'Times New Roman', Times, serif;
7+
background-color: orange;
8+
display: flex;
9+
justify-content: center; /* horizontal centering */
10+
align-items: flex-start; /* vertical centering */
11+
height: 100vh; /* full viewport height */
12+
font-family: Georgia, "Times New Roman", Times, serif;
1313
}
1414

1515
.container {
16-
background-color: white;
17-
width: 70%;
18-
max-width: 650px;
19-
padding: 60px 80px;
20-
border-radius: 8px;
21-
text-align: center; /* centers text inside */
22-
margin:20% 20%;
23-
display: block;}
16+
background-color: white;
17+
width: 70%;
18+
max-width: 650px;
19+
padding: 60px 80px;
20+
border-radius: 8px;
21+
text-align: center; /* centers text inside */
22+
margin: 20% 20%;
23+
display: block;
24+
}
2425

2526
#quote {
26-
font-size: 28px;
27-
color: #f59e0b;
28-
line-height: 1.5;
29-
position : relative;
30-
margin-bottom: 30px;
31-
27+
font-size: 28px;
28+
color: #f59e0b;
29+
line-height: 1.5;
30+
position: relative;
31+
margin-bottom: 30px;
3232
}
3333
#quote::before {
34-
content: "“";
35-
font-size: 80px;
36-
position: absolute;
37-
left: -40px;
38-
top: -20px;
39-
color: #f59e0b;
34+
content: "“";
35+
font-size: 80px;
36+
position: absolute;
37+
left: -40px;
38+
top: -20px;
39+
color: #f59e0b;
4040
}
4141
#author {
42-
display : block;
43-
text-align: right;
44-
font-size: 16px;
45-
color:#f59e0b;
46-
margin-bottom: 20px;
42+
display: block;
43+
text-align: right;
44+
font-size: 16px;
45+
color: #f59e0b;
46+
margin-bottom: 20px;
4747
}
4848
#author::before {
49-
content: "~ ";
50-
font-size: 20px;
51-
color: #f59e0b;
49+
content: "~ ";
50+
font-size: 20px;
51+
color: #f59e0b;
5252
}
5353
#new-quote {
54-
align-items: right;
55-
text-align: right;
56-
background-color: #f59e0b;
57-
color: white;
58-
border: none;
59-
padding: 10px 20px;
60-
cursor: pointer;
61-
font-size: 14px;
54+
align-items: right;
55+
text-align: right;
56+
background-color: #f59e0b;
57+
color: white;
58+
border: none;
59+
padding: 10px 20px;
60+
cursor: pointer;
61+
font-size: 14px;
6262
border-radius: 2px;
6363
display: block;
6464
}
6565
#new-quote :hover {
66-
opacity: 0.9;
67-
}
66+
opacity: 0.9;
67+
}

0 commit comments

Comments
 (0)