-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
235 lines (197 loc) · 4.43 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
/* Styles for all pages */
body {
display: flex;
flex-direction: column;
min-height: 100vh;
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
margin: 0;
padding: 0;
}
html {
overflow-y: scroll;
}
/* Header */
header {
background-color: #333;
color: #fff;
padding: 1rem;
}
header h1 {
margin: 0;
}
/* Navigation */
nav {
background-color: gray;
padding: 1rem;
}
nav ul {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
justify-content: space-around;
}
nav ul li a {
color: #fff;
text-decoration: none;
padding: 0.5rem;
border-radius: 3px;
}
nav ul li a:hover {
background-color: #444;
}
/* Main content */
main {
flex: 1 0 auto;
padding: 1rem;
}
/* Specific Main Content for About Page */
.about-page {
padding: 1rem 15%; /* Increase padding on the left and right */
font-size: 20px; /* Increase font size */
}
h2 {
border-bottom: 2px solid #333;
padding-bottom: 0.5rem;
margin-bottom: 1rem;
}
h3 {
margin-bottom: 0.5rem;
}
p {
margin-bottom: 0.5rem;
}
ul {
list-style-type: disc;
padding-left: 1.5rem;
margin-bottom: 1rem;
}
article {
margin-bottom: 2rem;
}
/* Footer */
footer {
flex-shrink: 0;
background-color: #333;
color: #fff;
padding: 1rem;
text-align: center;
}
footer a {
color: #fff;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
#back-to-top {
display: none;
position: fixed;
bottom: 100px;
right: 20px;
background-color: #333;
color: #fff;
border: none;
outline: none;
padding: 10px;
font-size: 18px;
cursor: pointer;
border-radius: 4px;
opacity: 0.7;
}
#back-to-top:hover {
opacity: 1;
}
/* Contact form */
form {
background-color: #f9f9f9;
max-width: 600px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 3px;
}
form label {
display: block;
margin-bottom: 5px;
}
form input[type='text'], form input[type='email'], form textarea {
width: 100%;
padding: 5px;
border: 1px solid #ccc;
border-radius: 3px;
margin-bottom: 20px;
}
form input[type='submit'] {
background-color: #333;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 3px;
cursor: pointer;
}
form input[type='submit']:hover {
background-color: #444;
}
form textarea {
width: 100%; /* sets the width of the textarea */
height: 150px; /* sets the height of the textarea */
padding: 5px;
border: 1px solid #ccc;
border-radius: 3px;
margin-bottom: 20px;
resize: none; /* prevents users from resizing the textarea */
}
/* Profile */
.profile-container {
display: flex;
flex-direction: row;
justify-content: center; /* center the items horizontally */
gap: 100px; /* adjust the space between the flex items */
padding: 5% 10%; /* sets the same space from the sides of the page */
}
.profile-image img {
max-width: 900px;
height: 600px;
}
.profile-text {
max-width: 60%;
}
.profile-text p {
font-size: 24px; /* adjust the font size of paragraphs */
}
.profile-text h2 {
font-size: 32px; /* adjust the font size of h2 headers */
}
/* Project grid */
.grid {
display: grid;
grid-template-columns: repeat(2, 1fr); /* creates 2 equal-width columns */
gap: 60px;
padding: 0 60px; /* This will add 50px padding to the left and right of the grid */
}
.grid-item {
flex: 1 0 50%; /* Each cell will take up at least 200px, and will grow to take up remaining space */
border: 1px solid #333; /* Border around each cell */
padding: 20px; /* Space between cell border and content */
background-color: #f4f4f4; /* Background color for each cell */
border-radius: 15px; /* Rounded corners */
background-size: cover; /* To ensure the image covers the entire div */
}
.project-preview {
text-align: center; /* Center the text within each cell */
}
.project1 {
background-image: url('images/project1.jpg'); /* Change the path to match your actual file location */
}
.project2 {
background-image: url('images/project2.jpg'); /* Change the path to match your actual file location */
}
.project3 {
background-image: url('images/project3.jpg'); /* Change the path to match your actual file location */
}
.project4 {
background-image: url('images/project4.jpg'); /* Change the path to match your actual file location */
}