generated from irm1005-itec1005-fall-2023/template-final
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kobi's FINAL EXAM MAIN style.css
331 lines (280 loc) · 6.76 KB
/
Kobi's FINAL EXAM MAIN style.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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
/*
* CSS File for the solution
* Final Exam
* You got this!
*/
/*
* COLOUR PALETTE
*
* YOU DO NOT NEED TO USE THESE COLOURS, BUT YOU CAN IF YOU WANT TO
*
* #cdb4db - Lavender Purple
* #ffc8dd - Pink
* #ffafcc - Light Pink
* #bde0fe - Light Blue
* #a2d2ff - Light Blue
* #0c0a3e - Dark Purple
* #797979 - Grey
*
* https://coolors.co/palette/cdb4db-ffc8dd-ffafcc-bde0fe-a2d2ff
*/
/*
* FOR YOUR DESKTOP VIEWPORT I WOULD RECOMMEND THE FOLLOWING MEDIA QUERY
*
* @media screen and (min-width: 800px) {
* ... your styles here ...
* }
*/
html {
font-size: 1.0rem;
}
body {
font-family: Arial, Helvetica, sans-serif;
background-color: #f7ead7;
}
/*
* SR-ONLY
*/
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/*
* SHARED STYLES
*/
.page-container {
max-width: 1000px;
margin: 0 auto;
padding: 0 1.0rem;
}
/*
* ADD YOUR STYLES HERE
*/
/* Header styles */
header {
background-color: #0c0a3e; /* Dark Purple */
color: #fff;
display: flex;
justify-content: space-between;
padding: 1rem 2rem;
align-items: center;
}
header .logo {
width: 150px;
}
header nav a {
color: #fff;
text-decoration: none;
padding: 0.5rem 1rem;
background-color: #797979; /* Grey */
border-radius: 5px;
}
/* Hero section */
.hero {
text-align: center;
padding: 4rem 1rem;
background-color: #cdb4db; /* Lavender Purple */
}
.skills {
background-color: #bde0fe; /* Light Blue */
padding: 2rem;
text-align: center;
}
.skills-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
justify-content: center;
align-items: center;
}
.skill-item {
background-color: #ffc8dd; /* Light Pink */
padding: 1rem;
border-radius: 10px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}
/* Work section */
.my-work {
padding: 2rem 1rem;
background-color: #a2d2ff; /* Lighter Blue */
display: grid;
grid-template-columns: 1fr; /* One column layout by default */
gap: 2rem;
padding: 2rem 1rem;
}
.project {
background-color: #ffffff; /* Light background for the project cards */
padding: 1rem;
border-radius: 8px; /* Optional: rounded corners for the cards */
box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: shadow for depth */
}
.project img {
width: 100%;
height: auto;
border-radius: 4px; /* Slightly rounded corners for the images */
margin-bottom: 1rem;
}
.project h3 {
margin: 0.5rem 0;
}
/* Contact section */
.contact {
background-color: #f7ead7;
padding: 2rem 1rem;
text-align: center;
}
.contact a {
display: inline-block;
background-color: #797979; /* Grey */
color: white;
padding: 1rem 2rem;
text-decoration: none;
border-radius: 5px;
margin-top: 1rem;
}
/* Footer styles */
footer {
background-color: #0c0a3e; /* Dark Purple */
color: #fff;
text-align: center;
padding: 2rem 1rem;
}
.project h3 {
order: 2; /* Place the info below the image */
width: 100%; /* Text container takes full width */
}
.about-me-info {
margin-left: 0;
margin-top: 2rem;
}
.about-me-contact-button {
padding: 0.5rem 1rem;
}
/* Media query for desktop viewport */
@media screen and (min-width: 800px) {
header, .page-container, footer {
padding: 1rem 10%;
}
.skills-grid {
display: grid;
grid-template-columns: repeat(4, 1fr); /* Four columns */
grid-template-rows: auto auto; /* Two rows */
gap: 1rem;
justify-items: center;
align-items: center;
}
.skill-box {
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
border-radius: 10px;
}
/* Specific styles for different skill boxes */
.skill-box.web-dev {
grid-column: 1 / 3; /* Span two columns */
grid-row: 1; /* First row */
background-color: lavender; /* Example color */
}
.skill-box.ui-ux {
grid-column: 3;
grid-row: 1;
background-color: lightpink; /* Example color */
}
.skill-box.css {
grid-column: 4;
grid-row: 1;
background-color: lightpink; /* Example color */
}
.skill-box.js {
grid-column: 3;
grid-row: 2;
background-color: lightpink; /* Example color */
}
.skill-box.html {
grid-column: 1 / 3; /* Span two columns */
grid-row: 2; /* Second row */
background-color: lightblue; /* Example color */
}
.skill-box.github {
grid-column: 4;
grid-row: 2;
background-color: thistle; /* Example color */
}
.my-work {
display: grid;
grid-template-columns: repeat(2, 1fr); /* two columns layout */
text-align: center;
/*gap: 1rem; Space between the columns */
}
.my-work-section h2 {
display: inline-block; /* Allows the title to be centered by text-align */
width: 100%; /* Full width to enforce the centering */
margin-top: 2rem; /* Spacing from the top */
margin-bottom: 2rem; /* Spacing from the content below */
}
/* Styles for project cards on desktop */
.project {
display: flex; /* Use flexbox for laying out the image and the text side by side */
align-items: center; /* Align the items vertically */
justify-content: center; /* Center the items horizontally */
}
.project h3 {
order: 2; /* Place the info below the image */
width: 100%; /* Text container takes full width */
margin-top: 1rem; /* Space between the button/input and the title */
}
.project img {
/*width: 50vw; ach image will take up half of the viewport width */
max-width: 500px; /* Optional: limit the size so it doesn't get too large */
height: 50vw; /* Height is also set to half of the viewport width to maintain a square */
max-height: 500px; /* Optional: limit the size so it doesn't get too large */
object-fit: cover; /* Ensures the image covers the area without stretching */
margin-bottom: 1rem;
}
/* About me section styling */
.about-me {
background-color: #ffc8dd; /* Light Pink */
padding: 4rem 0; /* Top and Bottom Padding */
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.about-me-content {
background-color: #ffffff;
border-radius: 20px;
overflow: hidden;
display: flex;
align-items: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 1200px; /* Set a max-width for the content */
width: 100%;
}
.about-me img {
width: 100%;
max-width: 400px; /* Set a max-width for the image */
height: auto;
margin-right: 2rem; /* Add space between the image and the text */
}
.about-me-text {
text-align: left;
flex: 1; /* Take the remaining space */
}
.about-me-contact-button {
display: inline-block;
background-color: #ffafcc; /* Light Pink */
color: #0c0a3e; /* Dark Purple */
padding: 0.5rem 1rem;
margin-top: 1rem;
text-decoration: none;
border-radius: 5px;
}
}