Skip to content

Commit 18deb75

Browse files
committed
added styles
1 parent b404c31 commit 18deb75

File tree

2 files changed

+94
-6
lines changed

2 files changed

+94
-6
lines changed

Quote Generator/index.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,35 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Quote Generator</title>
8+
9+
<!-- google fonts -->
10+
<link rel="preconnect" href="https://fonts.googleapis.com">
11+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12+
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
13+
14+
<!-- font awesome cdn -->
15+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk" crossorigin="anonymous">
16+
817
<link rel="stylesheet" href="style.css">
918
</head>
1019
<body>
11-
20+
<div>
21+
<h1>Quote Generator</h1>
1222
<div class="container">
13-
23+
<i class="fas fa-quote-left"></i>
1424
<div id="quotes">
1525
Everything in life is luck.
1626
</div>
27+
<hr>
1728
<div id="author">
1829
By Donald Trump
1930
</div>
2031
<button onclick="getQuotes()">New Quotes</button>
2132

2233
</div>
2334

35+
</div>
36+
2437

2538
<script src="script.js">
2639

Quote Generator/style.css

Lines changed: 79 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,96 @@
44
box-sizing: border-box;
55
}
66

7+
body{
8+
background: url("https://images.unsplash.com/photo-1490237251747-4557595144b4?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxjb2xsZWN0aW9uLXBhZ2V8MXwxMDcxMTcwfHxlbnwwfHx8fA%3D%3D&w=1000&q=80");
9+
background-size: cover;
10+
background-repeat: no-repeat;
11+
color: white;
12+
}
13+
14+
15+
h1 {
16+
text-align: center;
17+
font-size: 60px;
18+
color: #ffea00;
19+
text-shadow: 0 1px 0 #ccc,
20+
0 2px 0 #c9c9c9,
21+
0 3px 0 #bbb,
22+
0 4px 0 #b9b9b9,
23+
0 5px 0 #aaa,
24+
0 6px 1px rgba(0,0,0,.1),
25+
0 0 5px rgba(0,0,0,.1),
26+
0 1px 3px rgba(0,0,0,.3),
27+
0 3px 5px rgba(0,0,0,.2),
28+
0 5px 10px rgba(0,0,0,.25),
29+
0 10px 10px rgba(0,0,0,.2),
30+
0 20px 20px rgba(0,0,0,.15);
31+
}
32+
733
.container{
8-
width: 50%;
9-
height: 300px;
10-
margin: 0 auto;
11-
background-color: #1DA1F2;
34+
width: 65%;
35+
height: 400px;
36+
37+
/* background-color: #30373b; */
1238
border-radius: 10px;
1339
display: flex;
1440
flex-direction: column;
1541
justify-content: center;
1642
align-items: center;
1743
padding: 0 80px;
44+
margin: 30px auto;
1845
box-shadow: 0px 2px 8px rgba(0,0,0,0.6);
1946
}
47+
i{
48+
font-size: 50px;
49+
margin-bottom: 10px;
50+
color: #2d00f7;
51+
}
2052

2153
#quotes{
2254
text-align: center;
55+
font-size: 40px;
56+
font-family: 'Lobster Two', cursive;
57+
color: #f20089;
58+
}
59+
60+
hr{
61+
width: 60%;
62+
/* border: 1px solid purple; */
63+
margin: 10px 0;
64+
}
65+
66+
#author{
67+
font-family: 'Cormorant Garamond', serif;
68+
font-size: 20px;
69+
margin-bottom: 10px;
70+
color: rgb(7, 255, 7);
71+
}
72+
73+
button {
74+
cursor: pointer;
75+
border: none;
76+
color: #ffe6a7;
77+
background: rgb(0, 179, 179);
78+
font-size: 20px;
79+
padding: 10px;
80+
border-radius: 4px;
81+
box-shadow: 0px 2px 8px rgba(0,0,0,0.6);
82+
bottom: 5px;
83+
font-weight: bold;
84+
}
85+
86+
87+
@media screen and (max-width:1180px) {
88+
.container{
89+
height: 600px;
90+
width: 80%;
91+
}
2392
}
2493

94+
@media screen and (max-width:800px) {
95+
.container{
96+
height: 700px;
97+
width: 90%;
98+
}
99+
}

0 commit comments

Comments
 (0)