-
Notifications
You must be signed in to change notification settings - Fork 0
/
Day 1 Project 2
169 lines (132 loc) · 3.96 KB
/
Day 1 Project 2
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
/* Lets take our knowledge of CSS selectors, properties, and inheritance to add some style to the Sweet Eats Bakery website.
Task 1: Fork this pen. You will want to have your own version saved.
Task 2: Explore the CSS. Look at all the unique selectors. Find things that are new to you and learn what they do. Find properties you may not be familiar with and google them.
Task 3: Update the CSS. Yop will notice the CSS comments throughout the file below. Follow the instructions to complete the Sweet Eats Bakery site. If you follow the instructions, you should see this as a final result:
https://tk-assets.lambdaschool.com/44f6a520-b218-4ed1-910b-f4dc876cd1a6_sweet-eats-home-page.png
Stretch Task: Fork your final work and see how much you can change the design without changing the HTML. Try to transform the site by only using CSS selectors.
Stretch Task: Look at CSS animations and see if you could integrate them on the navigation hovers.
Stretch Task: Pick a navigation item and create a new page with the same header and footer as the home page. Example: you could make a new page just for cookies. Be creative and have fun coming up with your own unique content and styles.
*/
/*======= Create a new universal selector that changes the font color to: #3C373B */
* {
color: #3c3738;
}
h1 {
font-family: 'Gaegu', cursive;
margin: 20px 0;
/*======= Update the font size to 60px and center the text */
font-size: 60px;
text-align: center;
}
h2, h3, h4, h5, h6 {
font-family: 'Gaegu', cursive;
margin-bottom: 0;
padding: 0 10px;
/*======= Update the font size to 30px */
font-size: 30px;
}
/*======= Create a selector for ALL p tags in the site to have the following styles:
font-size: 16px;
font-family: roboto;
padding: 10px;
line-height: 1.4;
*/
p {
font-size: 16px;
font-family: roboto;
padding: 10px;
line-height: 1.4
}
/*======= Create a selector for ALL images in the site to have the following styles:
border-radius: 10px;
*/
.images {
border-radius: 10px;
}
.content-row {
display: flex;
}
.content-row div {
margin: 20px;
/*======= create a margin propery. Set the value to 20px */
}
.container {
/*======= create a width property. Set the value to 600px */
margin: 0 auto;
width: 600px;
}
.container header nav a {
margin: 0 10px;
border: 1px solid lightgray;
padding: 20px;
display: inline-block;
border-radius: 20px;
color: white;
text-decoration: none;
margin-bottom: 20px;
background: #F87B99;
/*======= create a background property. Set the value to #F87B99 */
}
.container header nav a:hover {
/*======= create a background property and set it to white. Then create a color property and set it's value to pink. */
background: white;
color: pink;
}
/*======= Create a selector for the about section to have the following styles:
margin-top: 20px;
*/
.about {
margin-top: 20px
}
.contact-section {
border-top: 1px dashed black;
padding: 20px 0;
}
.contact-section h2 {
padding: 0;
margin: 0 0 10px 0;
}
/*======= Create a selector for the address tag in the contactd-section class to have the following styles:
line-height: 2;
*/
footer {
width: 100%;
background: #F87B99;
border-top: 1px dashed white;
}
footer .footer-content {
margin: 0 auto;
width: 600px;
/*======= create a width property. Set the value to 600px */
}
footer .footer-content h3 {
padding: 0;
margin: 20px 0;
}
footer nav {
display: flex;
}
/*======= Create a selector for the anchor tag in the footer to have the following styles:
margin: 10px;
color: black;
text-decoration: underline;
*/
.footer-anchor {
margin: 10px;
color: black;
text-decoration: underline;
}
footer nav a:first-child {
margin-left: 0;
}
/*======= Create a hover state for the anchor tag in the footer nav to have the following styles:
color: white;
*/
footer nav a:hover {
color: white;
}
footer .footer-content .copyright {
padding: 20px 0;
text-align: center;
/*======= center the text here */
}