-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
297 lines (253 loc) · 7.62 KB
/
Copy pathindex.css
File metadata and controls
297 lines (253 loc) · 7.62 KB
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
/* Header and Navigation */
#banner {
position: relative;
overflow: hidden;
background-color: #2B7A78; /* Updated background color of the banner */
color: #FEFFFF; /* Updated text color */
padding: 20px 0; /* Adjust padding for spacing */
text-align: center; /* Center the content horizontally */
z-index: -2;
}
header {
margin-bottom: 20px; /* Add margin between header and nav */
}
nav {
text-align: center;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 10px;
}
nav ul li:last-child {
margin-right: 0;
}
nav ul li a {
display: inline-block;
padding: 10px;
text-decoration: none;
color: #FEFFFF; /* Updated text color */
transition: background-color 0.3s; /* Transition only background-color */
border-radius: 10px; /* Set a default border-radius */
background-color: rgba(0, 0, 0, 0.7); /* Add background color to navigation buttons */
}
nav ul li a.active {
background-color: #FEFFFF; /* Updated background color */
color: #333; /* Change text color */
}
/* Shapes */
.shapes-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1; /* Set a lower z-index to position shapes below other content */
}
.triangle, .circle, .square {
position: absolute;
}
.triangle {
top: -150px; /* Adjust position of triangle */
left: -150px; /* Adjust position of triangle */
width: 300px; /* Adjust size of triangle */
height: 300px; /* Adjust size of triangle */
background-color: #3AAFA9; /* Color of triangle */
clip-path: polygon(50% 0%, 0% 100%, 100% 100%); /* Define triangle shape */
opacity: 0.3; /* Adjust opacity of the shape */
}
.circle {
top: 50%; /* Adjust position of circle */
left: 50%; /* Adjust position of circle */
transform: translate(-50%, -50%); /* Center the circle */
width: 300px; /* Adjust size of circle */
height: 300px; /* Adjust size of circle */
background-color: #3AAFA9; /* Color of circle */
border-radius: 50%; /* Make circle round */
opacity: 0.3; /* Adjust opacity of the shape */
}
.square {
top: 50%; /* Adjust position of square */
left: -150px; /* Adjust position of square */
width: 300px; /* Adjust size of square */
height: 300px; /* Adjust size of square */
background-color: #3AAFA9; /* Color of square */
opacity: 0.3; /* Adjust opacity of the shape */
}
/* Main Content */
#content {
padding: 20px;
margin-top: 20px; /* Add margin to separate from header/navigation */
position: relative; /* Add position relative */
z-index: 1; /* Set z-index to ensure the content stays above the header and navigation */
}
.image-container {
display: flex;
justify-content: center; /* Align images in the center horizontally */
}
.image-container img {
margin: 10px; /* Add space between each image */
}
/* Add a black border around each image */
.image-container img {
border: 2px solid #000;
border-radius: 5px; /* Optional: Add some border radius */
}
/* Adjust the size of the border */
.image-container img {
padding: 5px; /* Add padding inside the border */
}
#about h2,
#resume h2,
#portfolio h2,
#contact h2 {
text-align: center;
}
/* Resume Section */
#resume {
text-align: center;
margin-top: 20px; /* Add margin to separate from previous section */
}
#resume img {
margin-top: 20px; /* Add margin above the resume image */
border: 2px solid #000; /* Add a black border around the resume image */
border-radius: 5px; /* Optional: Add some border radius */
max-width: 100%; /* Ensure the resume image does not exceed its container width */
}
/* Portfolio Section */
#portfolio {
text-align: center;
margin-top: 20px; /* Add margin to separate from previous section */
}
.image-container {
display: flex;
justify-content: center; /* Align images in the center horizontally */
flex-wrap: wrap; /* Allow images to wrap to the next line */
}
.image-container img {
width: 200px; /* Set a fixed width for all images */
height: auto; /* Maintain aspect ratio */
margin: 10px; /* Add margin between images */
}
#divB {
padding: 20px;
background-color: #FEFFFF; /* Adjusted background color */
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
position: relative; /* Add position relative */
z-index: 0; /* Set z-index to ensure the content stays below the header and navigation */
margin-top: 20px; /* Add margin to separate from previous section */
color: #3AAFA9; /* Adjust text color */
}
#divC {
padding: 20px;
background-color: #FEFFFF; /* Adjusted background color */
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-top: 20px; /* Add margin to separate from previous section */
text-align: center; /* Center the resume image */
color: #3AAFA9; /* Adjust text color */
}
/* Portfolio Section */
#divD {
padding: 20px;
background-color: #FEFFFF; /* Adjusted background color */
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-top: 20px; /* Add margin to separate from previous section */
color: #3AAFA9; /* Adjust text color */
}
/* Adjust image size in divD */
#divD img {
width: 375px; /* Set a fixed width for all images */
height: auto; /* Maintain aspect ratio */
margin: 10px; /* Add margin between images */
border: 2px solid #000; /* Add border around images */
border-radius: 5px;
}
/* Add hover effect on image borders */
#divD a:hover img {
border-color: #3AAFA9; /* Change border color on hover */
}
/* Contact Section */
#divE {
padding: 20px;
background-color: #FEFFFF; /* Adjusted background color */
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin-top: 20px; /* Add margin to separate from previous section */
color: #3AAFA9; /* Adjust text color */
}
/* Footer */
footer {
position: relative;
overflow: hidden;
background-color: #2B7A78; /* Background color of the footer */
color: #FEFFFF;
padding: 20px; /* Adjust padding to match other sections */
text-align: center;
width: 100%;
height: 200px; /* Adjust height as needed */
z-index: 1000;
margin: 0;
}
.shapes-container {
position: absolute;
bottom: 0; /* Position shapes at the bottom of the footer */
left: 0;
width: 100%;
height: auto; /* Adjust height to fit content */
pointer-events: none;
}
.triangle, .circle, .square {
position: absolute;
opacity: 0.3;
}
/* Randomize the position of shapes */
.triangle {
top: 50px;
left: 20%;
width: 100px;
height: 100px;
background-color: #DED2F1;
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.circle {
top: 20%;
left: 70%;
width: 150px;
height: 150px;
background-color: #FEFFFF;
border-radius: 50%;
}
.square {
top: 80%;
left: 30%;
width: 180px;
height: 180px;
background-color: #3AAFA9;
}
/* Responsive Styling */
@media screen and (max-width: 768px) {
header {
padding: 10px; /* Reduce padding for smaller screens */
}
nav ul li {
margin-right: 5px; /* Reduce margin between navigation items for smaller screens */
}
.image-container {
flex-wrap: wrap; /* Allow images to wrap to the next line */
}
.image-container img {
width: calc(50% - 20px); /* Make images fill half the container width with space between them */
margin: 10px; /* Adjust spacing between images */
}
#about p {
font-size: 14px; /* Decrease font size for smaller screens */
}
}