Skip to content

Commit 6c81be1

Browse files
Add initial CSS styles for layout and design
1 parent 7c63ba6 commit 6c81be1

File tree

1 file changed

+70
-1
lines changed

1 file changed

+70
-1
lines changed

Sprint-3/quote-generator/style.css

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,70 @@
1-
/** Write your CSS in here **/
1+
/* Reset basic margins and set font */
2+
* {
3+
margin: 0;
4+
padding: 0;
5+
box-sizing: border-box;
6+
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
7+
}
8+
9+
/* Center content on the screen and give it a background color */
10+
body {
11+
display: flex;
12+
justify-content: center;
13+
align-items: center;
14+
min-height: 100vh;
15+
background-color: #f4f4f9;
16+
color: #333;
17+
}
18+
19+
/* Style the main container to look like a card */
20+
.container {
21+
background-color: white;
22+
padding: 40px;
23+
border-radius: 12px;
24+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
25+
max-width: 500px;
26+
text-align: center;
27+
margin: 20px;
28+
}
29+
30+
/* Style the heading */
31+
h1 {
32+
font-size: 1.5rem;
33+
color: #555;
34+
margin-bottom: 20px;
35+
text-transform: uppercase;
36+
letter-spacing: 2px;
37+
}
38+
39+
/* Style the quote text */
40+
#quote {
41+
font-size: 1.25rem;
42+
font-style: italic;
43+
margin-bottom: 15px;
44+
line-height: 1.5;
45+
}
46+
47+
/* Style the author text */
48+
#author {
49+
font-size: 1rem;
50+
color: #777;
51+
font-weight: bold;
52+
margin-bottom: 30px;
53+
}
54+
55+
/* Make the button look clickable */
56+
#new-quote {
57+
background-color: #007bff;
58+
color: white;
59+
border: none;
60+
padding: 12px 24px;
61+
font-size: 1rem;
62+
border-radius: 6px;
63+
cursor: pointer;
64+
transition: background-color 0.3s ease;
65+
}
66+
67+
/* Hover effect to button */
68+
#new-quote:hover {
69+
background-color: #0056b3;
70+
}

0 commit comments

Comments
 (0)