-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
291 lines (268 loc) · 4.47 KB
/
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
/*
Name: Quoc Phong Tran
Course: CST8285
Lab Section: 321
Professor: Hala Own
File: style.css
Date Created: October 27, 2024
Description: This CSS file provides styles for a responsive web design project encompassing four pages: Home, Resume, Projects, and Contact. It includes layouts for various sections such as header, navigation, main content, and footer. Media queries are utilized to adapt the design for different screen sizes, enhancing user experience across devices.
*/
/* Reset default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Body styles */
body {
font-family: Arial, sans-serif;
line-height: 1.6;
background-color: #ffffff;
}
/* Paragraph styles */
p {
font-size: 16px;
}
body p strong {
font-size: 16px;
}
/* Header styles */
header {
text-align: center;
background-color: #c62828;
margin-bottom: 10px;
border: 2px solid #b71c1c;
}
h1 {
color: #ffffff;
padding: 10px;
font-size: 3rem;
}
nav {
display: flex;
justify-content: center;
gap: 10px;
font-size: 15px;
}
/* Navigation styles */
nav a {
display: inline-block;
text-decoration: none;
padding: 5px;
margin-bottom: 10px;
border-radius: 5px;
color: #ffffff;
font-weight: bold;
}
/* Link styles */
a:link {
text-decoration: none;
}
a:hover {
color: red;
text-decoration: none;
}
a:active {
color: blue;
}
nav a:visited {
color: orange;
}
/* Main content styles */
main {
margin: 10px;
}
h2 {
font-size: 1.5rem;
}
/* Footer styles */
footer {
position: relative;
}
footer p {
text-align: center;
width: 100%;
padding: 10px 0;
bottom: 0;
background-color: #c62828;
color: #fff;
margin-top: 10px;
border: 2px solid #b71c1c;
}
/* Style for Home Page */
.home-main {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 20px;
}
.home-main p {
margin: 10px 0;
}
.home-main img {
border: 1px solid #c62828;
width: 15%;
}
/* Style for Resume Page */
.resume-main hr {
border: none;
height: 2px;
background-color: #b71c1c;
width: 95%;
margin: 20px 0;
}
.resume-main ul {
margin-left: 40px;
}
.resume-main div {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
margin-top: 15px;
}
.resume-section-info {
text-align: center;
}
.resume-section-skills p {
margin: 10px 0;
}
/* Style for Contact Page */
form {
max-width: 600px;
margin: 20px auto;
padding: 20px;
border: 2px solid #bcaaa4;
border-radius: 5px;
background-color: #f7e7ce;
}
fieldset {
border: none;
}
label {
display: block;
margin-bottom: 5px;
font-size: 16px;
}
/* Input container styles */
.input {
display: flex;
flex-direction: column;
justify-content: center;
margin-bottom: 10px;
}
/* Input and textarea styles */
.input input,
textarea {
flex: 1;
padding: 8px;
border: 1px solid #ffabab;
border-radius: 5px;
}
/* Button container styles */
.contact-buttons {
display: flex;
flex-direction: row;
justify-content: center;
gap: 20px;
align-items: center;
}
/* Button styles */
.contact-buttons input {
margin-top: 10px;
padding: 5px;
background-color: #003366;
color: #fff;
}
/* Style for Projects Page */
.projects-main {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: auto;
justify-content: space-between;
gap: 20px;
padding: 20px;
}
.projects-main img {
width: 60%;
}
.project {
flex: 1;
border: 2px solid #003366;
padding: 20px;
background-color: #f9f9f9;
text-align: center;
}
.project strong {
font-size: 16px;
}
.project p {
margin: 15px 0;
}
.description {
text-align: left;
}
/* Media queries */
/* Styles for screens up to 1024px */
@media (max-width: 1024px) {
body {
line-height: 1.5;
}
body p {
font-size: 15px;
padding: 15px;
}
body p strong {
font-size: 15px;
}
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 1.4rem;
}
.projects-main {
grid-template-columns: repeat(2, 1fr);
gap: 15px;
padding: 15px;
}
label {
font-size: 15px;
}
}
/* Styles for screens up to 600px */
@media (max-width: 600px) {
h1 {
font-size: 2rem;
}
h2 {
font-size: 1rem;
}
header nav {
flex-direction: column;
gap: 0;
}
header nav a {
padding: 5px;
}
.projects-main {
grid-template-columns: 1fr;
padding: 20px;
}
body {
line-height: 1.4;
}
body p,
li {
font-size: 12px;
padding: 5px;
margin: 0;
}
body p strong {
font-size: 12px;
}
label {
font-size: 12px;
}
}