-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
187 lines (150 loc) · 3.41 KB
/
styles.css
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');
/* Layout */
* {
margin: 0;
padding: 0;
}
body {
text-align: center;
font-family: 'Poetsen One', sans-serif;
font-weight: 400;
font-style: normal;
background: linear-gradient(#a2d2ff, #efb0c9);
color: #ffffff;
}
h1,
h2,
h3,
h4,
p {
text-shadow: 0 0 2px black;
}
#bff-img {
width: 250px;
border-radius: 50%;
border: 6px solid #9a83dd;
margin-bottom: 10px;
}
#bday-age {
background: #9a83dd;
padding: 5px 10px;
border-radius: 5px;
margin: 5px 0 10px 0;
}
#bday-date {
margin: 0;
background: #9a83dd;
padding: 5px 10px;
border-radius: 5px;
}
#header {
display: flex;
flex-direction: column;
align-items: center;
}
.gift-section {
margin-top: 50px;
}
.gift-title {
margin-bottom: 10px;
}
.gift-hint {
margin-top: 0;
}
#gift-img-cheers {
height: 200px;
}
.gift-img {
margin: 20px auto;
max-width: 400px;
height: 400px;
border: 6px solid white;
border-radius: 10px;
background-image: url('images/bday-bg-img.png');
background-size: cover;
}
#gift-img-happy:hover {
background-image: url('https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExMXNyOGxiZngzZDdncXNpajBkMWF5Ym0zZDRoYmVxM3ZrcTJ4ajRkaCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/l4KibK3JwaVo0CjDO/giphy.gif');
}
#gift-img-hot:hover {
background-image: url('https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExaDEyZDRtM2Z4cTRxcW5mM2M5bmphbDdyb3h4eWw3cmFrc3l4NTM2eCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/13CoXDiaCcCoyk/giphy.gif');
}
#gift-img-genius:hover {
background-image: url('https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExdWJwcGFodjVkczZra2I5d3V5aDBnb2drN2dqeDI2YXdkdXR5ejR4biZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/ZuhmYnikJOPPq/giphy.gif');
}
#gift-img-badass:hover {
background-image: url('https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExcW9wMjMwbHkxdHRya28zYXlhNXlvemk5b2pzcW5vaHNtbDFiNHZxZSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/Sxh04mKq6H8Yg/giphy.gif');
}
#gift-img-cheers:hover {
background-image: url('https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExY2h3cmJsbHZnY2xpZjFxZGV5aXVuNHV4MmVkenl6c2o1cXhuaHQwNiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/l41m6SLFUQKu9nelq/giphy.gif');
}
#footer {
font-style: italic;
width: 400px;
margin: 40px auto 20px;
}
a {
color: white;
}
/*
Add the footer paragraph according to the design.
Configure the anchor tag to open the link in a new tab.
Forgotten how to do it? Google it!
Link:
https://scrimba.com/learn/htmlandcss
Text:
Want to create your own Birthday GIFt site? Take this HTML & CSS course.
*/
/* Navigation */
.main-nav {
list-style-type: none;
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.main-nav a {
text-decoration: none;
}
.main-nav li {
background-color: #9a83dd;
padding: 8px 16px;
border-radius: 6px;
transition: ease-in-out 0.25s;
}
.main-nav li:hover {
background-color: #7862b7;
transform: scale(1.1);
cursor: pointer;
}
/* Gallery */
.gallery-container {
display: grid;
grid-template-columns: repeat(3, 320px);
margin-top: 1rem;
padding: 2rem 4rem;
grid-gap: 1rem;
justify-content: center;
}
.gallery-img {
width: 300px;
}
@media (max-width: 900px) {
.gallery-container {
grid-template-columns: 1fr;
}
.gallery-img {
width: 80%;
margin: 0 auto;
}
}
/* About Darth */
.container {
max-width: 70%;
margin: 0 auto;
}
.about-darth {
margin-top: 2rem;
}
.about-darth article p {
margin-top: 1rem;
}