forked from GCA-Classroom/01-prj-personal-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
249 lines (232 loc) · 6.03 KB
/
style.css
File metadata and controls
249 lines (232 loc) · 6.03 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
/* General page styles */
body {
font-family: 'Roboto', sans-serif; /* Use a clean font */
background-image: url('img/background.jpg'); /* Background image */
background-size: cover; /* Cover the whole page */
background-repeat: no-repeat; /* Do not repeat image */
background-position: center; /* Center the image */
min-height: 100vh; /* Fill the screen */
display: flex; /* Stack content vertically */
flex-direction: column;
margin: 0;
padding: 0;
color: #ffffff; /* White text */
text-align: center; /* Center all text */
position: relative;
overflow-x: hidden; /* Prevent horizontal (side) scrolling */
}
/* Navigation Bar styles */
.navbar {
background-color: #2a1a5e; /* Dark background */
padding: 10px 0;
position: sticky; /* Stays at the top when scrolling */
top: 0;
z-index: 1000;
}
.navbar ul {
list-style: none; /* Remove bullets */
display: flex; /* Horizontal menu */
justify-content: center; /* Center items */
margin: 0;
padding: 0;
}
.navbar li {
margin: 0 15px; /* Space between links */
}
.navbar a {
color: #ffffff; /* White links */
text-decoration: none; /* No underline */
font-weight: bold;
font-size: 1rem;
padding: 8px 12px;
}
.navbar a:hover {
background-color: #00bbff; /* Highlight on hover */
border-radius: 5px;
}
.navbar i {
margin-right: 6px; /* Space for icons */
}
/* Hero (header) section */
.hero {
background-image: url('img/background.jpg'); /* Use background.jpg for hero */
background-size: cover;
background-repeat: no-repeat;
background-position: center;
color: #fff;
padding: 60px 20px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.hero h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
.hero p {
font-size: 1.2em;
}
/* Main content area */
.content {
max-width: 900px;
margin: 30px auto;
padding: 0 20px;
}
/* Section styles */
section {
background: rgba(112, 68, 255, 0.8); /* Slightly see-through purple */
padding: 25px 20px; /* Padding on all sides */
margin: 30px 0; /* Top and bottom margin */
border-radius: 10px;
max-width: none; /* Remove max-width so it stretches */
width: 100%; /* Fill the page */
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
text-align: center;
box-sizing: border-box;
}
/* Education boxes */
.edu-box {
color: #fff;
border-radius: 8px;
padding: 16px;
margin: 16px auto;
max-width: 400px;
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
font-size: 1.05em;
text-align: center;
flex: 1 1 250px; /* Allow boxes to grow and shrink, min width 250px */
}
.edu-box-iit {
background: #3e007c;
}
.edu-box-gca {
background: #3e007c;
}
/* Education boxes side by side */
.edu-row {
display: flex; /* Place boxes in a row */
justify-content: center; /* Center the row */
gap: 20px; /* Space between boxes */
flex-wrap: wrap; /* Stack on small screens */
margin-bottom: 16px;
}
/* Headings */
h2 {
border-bottom: 2px solid #ffffff;
padding-bottom: 5px;
margin-bottom: 15px;
}
/* Skills section with icons */
.skills ul {
list-style: none;
padding-left: 0;
}
.skills li {
font-size: 1.1rem;
margin: 10px 0;
}
.skills i {
color: #ffffff;
margin-right: 8px;
}
/* Skills boxes row */
.skills-row {
display: flex; /* Place boxes in a row */
flex-wrap: wrap; /* Wrap to next line if needed */
justify-content: center; /* Center the row */
gap: 20px; /* Space between boxes */
margin-top: 20px;
max-width: 800px; /* Limit total width for 3 boxes per row */
margin-left: auto;
margin-right: auto;
}
/* Each skill box */
.skill-box {
flex: 1 1 220px; /* Each box tries to be 220px wide */
max-width: 220px; /* Maximum width for each box */
min-width: 180px; /* Minimum width for each box */
color: #fff;
border-radius: 8px;
padding: 16px;
margin: 8px 0;
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
font-size: 1.1em;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
/* Description text inside each skill box */
.skill-desc {
font-size: 0.95em; /* Slightly smaller text */
color: #e0e0e0; /* Lighter color for description */
margin-top: 8px; /* Space above description */
}
/* Different background colors for each skill */
.skill-html {
background: #3e007c;
}
.skill-css {
background: #3e007c;
}
.skill-python {
background: #3e007c;
}
.skill-linux {
background: #3e007c;
}
.skill-java {
background: #3e007c;
}
.skill-js {
background: #3e007c;
}
/* Contact section */
.contact p {
font-weight: bold;
}
/* Circular profile image */
.profile-pic {
width: 150px;
height: 150px;
object-fit: cover;
border-radius: 50%;
border: 4px solid #fff;
display: block;
margin: 20px auto;
}
/* White link for GitHub and LinkedIn */
.white-link {
color: #ffffff;
text-decoration: underline;
}
/* Footer styles */
.footer {
text-align: center;
padding: 15px 0;
color: #ffffff;
background: rgba(42, 26, 94, 0.9);
font-size: 1em;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 20px;
}
/* Return to Top button styles */
.top-button {
position: fixed;
bottom: 30px;
right: 30px;
background: #7044ff;
color: #fff;
padding: 12px 18px;
border-radius: 6px;
text-decoration: none;
font-weight: bold;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
transition: background 0.2s;
z-index: 2000;
}
.top-button:hover {
background: #2a1a5e;
}