Skip to content

Commit 6219488

Browse files
committed
Update styles.css
1 parent 5b53984 commit 6219488

File tree

1 file changed

+112
-24
lines changed

1 file changed

+112
-24
lines changed

Website/styles.css

Lines changed: 112 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Ensure full height of the body and remove margin/padding */
2-
html, body {
2+
html,
3+
body {
34
height: 100%;
45
margin: 0;
56
padding: 0;
@@ -13,7 +14,7 @@ body {
1314
}
1415

1516
header {
16-
background-color: #333;
17+
background-color: #333;
1718
padding: 10px 20px;
1819
}
1920

@@ -26,7 +27,8 @@ header {
2627
.logo-container {
2728
display: flex;
2829
align-items: center;
29-
margin-right: 20px; /* Adds space between logo and links */
30+
margin-right: 20px;
31+
/* Adds space between logo and links */
3032
}
3133

3234
.brand-name {
@@ -37,34 +39,66 @@ header {
3739
.nav-links {
3840
list-style: none;
3941
display: flex;
40-
flex-grow: 1; /* Makes the nav links take up available space */
41-
justify-content: flex-end; /* Align links to the left */
42-
gap: 50px; /* Adds space between each link */
42+
flex-grow: 1;
43+
/* Makes the nav links take up available space */
44+
justify-content: flex-end;
45+
/* Align links to the left */
46+
gap: 50px;
47+
/* Adds space between each link */
4348
margin-left: 20px;
44-
right: 10px; /* Adjust this value for the gap between logo and links */
49+
right: 10px;
50+
/* Adjust this value for the gap between logo and links */
4551
}
4652

4753
.nav-links a {
4854
text-decoration: none;
4955
color: #f1f1f1;
5056
font-weight: bold;
51-
white-space: nowrap; /* Prevents wrapping of links */
57+
white-space: nowrap;
58+
/* Prevents wrapping of links */
5259
}
5360

54-
.nav-links a:hover{
61+
.nav-links a:hover {
5562
text-decoration: underline;
5663
}
5764

5865
main {
5966
padding: 20px;
60-
flex: 1; /* Makes main content take up the remaining space */
67+
flex: 1;
68+
/* Makes main content take up the remaining space */
6169
}
6270

71+
6372
.welcome-section {
6473
text-align: center;
6574
margin-bottom: 30px;
6675
}
6776

77+
.welcome-title {
78+
font-size: 37px;
79+
}
80+
81+
.welcome-description {
82+
font-size : 22px;
83+
width:60%;
84+
margin: auto;
85+
}
86+
87+
.welcome-description a {
88+
text-decoration: none;
89+
color: black;
90+
font-weight: 600;
91+
}
92+
93+
.welcome-description a:hover {
94+
text-decoration: underline;
95+
cursor: pointer;
96+
}
97+
.highlight {
98+
color: rgb(3, 3, 122);
99+
text-shadow: rgb(183, 189, 248) 1px 0 10px;
100+
}
101+
68102
h2 {
69103
font-size: 2em;
70104
margin-bottom: 20px;
@@ -80,7 +114,8 @@ button#toggle-stats {
80114
margin: 0 auto 20px auto;
81115
padding: 10px 20px;
82116
font-size: 1.1em;
83-
background-color: #1a1a5e; /* Dark blue button */
117+
background-color: #1a1a5e;
118+
/* Dark blue button */
84119
color: #f1f1f1;
85120
border: none;
86121
cursor: pointer;
@@ -94,7 +129,6 @@ button#toggle-stats:hover {
94129
#statistics-cards {
95130
display: none;
96131
text-align: center;
97-
color: black;
98132
}
99133

100134
.stats-grid {
@@ -105,19 +139,65 @@ button#toggle-stats:hover {
105139
}
106140

107141
.stat-card {
108-
background-color: white;
142+
background-color: #050066;
143+
/* background: linear-gradient(130deg, #473eed, #04004c); */
109144
padding: 20px;
110145
border-radius: 8px;
111146
width: 150px;
112147
text-align: center;
113148
margin-bottom: 20px;
149+
color: #fff;
150+
text-shadow: 1px 1px 2px rgb(0, 10, 150), 0 0 1em rgb(34, 174, 255), 0 0 0.5em rgb(0, 221, 255);
151+
transition: transform 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
152+
}
153+
154+
.stat-card:hover {
155+
/* background-color: #1a1d29; */
156+
background: linear-gradient(135deg, #090293, #040054);
157+
/* background: linear-gradient(135deg, #473eed, #04004c); */
158+
transform: scale(1.05);
159+
text-shadow: 1px 1px 2px rgb(233, 0, 202), 0 0 1em rgb(34, 174, 255), 0 0 0.5em rgb(0, 221, 255);
160+
cursor: pointer;
114161
}
115162

163+
116164
.stat-card h3 {
117165
font-size: 1.2em;
118166
margin-bottom: 10px;
119167
}
120168

169+
.stat-card p {
170+
font-size: 18px;
171+
color: rgb(243, 206, 1);
172+
text-shadow: none;
173+
font-weight: 500;
174+
}
175+
176+
.stat-icon {
177+
font-size: 2.7em;
178+
margin-bottom: 10px;
179+
color: rgb(255, 255, 255);
180+
text-shadow: none;
181+
transition: all 0.3s ease-in-out;
182+
}
183+
184+
185+
.stat-card:hover h3 {
186+
color: #ffffff;
187+
}
188+
.stat-card:hover p {
189+
color: yellow;
190+
font-weight: 500;
191+
192+
}
193+
194+
.stat-card:hover .stat-icon
195+
{
196+
color: white;
197+
text-shadow: 1px 1px 2px rgb(233, 0, 202), 0 0 1em rgb(34, 174, 255), 0 0 0.5em rgb(0, 221, 255);
198+
color: rgb(255, 213, 98);
199+
200+
}
121201
#languages {
122202
text-align: center;
123203
margin-bottom: 30px;
@@ -128,25 +208,30 @@ button#toggle-stats:hover {
128208
padding: 0;
129209
display: inline-block;
130210
text-align: center;
131-
column-count: 4; /* Adjust this value to increase or decrease the number of columns */
132-
column-gap: 40px; /* Space between columns */
211+
column-count: 4;
212+
/* Adjust this value to increase or decrease the number of columns */
213+
column-gap: 40px;
214+
/* Space between columns */
133215
}
134216

135217
#language-list li {
136218
margin: 10px 0;
137-
text-align: left; /* Align text to the left within each column */
219+
text-align: left;
220+
/* Align text to the left within each column */
138221
}
139222

140223

141224
/* Footer stays at the bottom */
142225
.footer {
143-
background-color: #121245; /* Dark blue for footer */
226+
background-color: #121245;
227+
/* Dark blue for footer */
144228
color: #f1f1f1;
145229
padding: 20px;
146230
text-align: center;
147231
margin-top: auto;
148232
}
149-
#footer-link{
233+
234+
#footer-link {
150235
color: white
151236
}
152237

@@ -155,15 +240,17 @@ button#toggle-languages {
155240
margin: 20px auto;
156241
padding: 10px 20px;
157242
font-size: 1.1em;
158-
background-color: #1a1a5e; /* Dark blue button */
243+
background-color: #1a1a5e;
244+
/* Dark blue button */
159245
color: #f1f1f1;
160246
border: none;
161247
cursor: pointer;
162248
transition: background-color 0.3s ease;
163249
}
164250

165251
button#toggle-languages:hover {
166-
background-color: #2a2a7e; /* Lighter blue on hover */
252+
background-color: #2a2a7e;
253+
/* Lighter blue on hover */
167254
}
168255

169256
#repo-list {
@@ -188,7 +275,7 @@ button#toggle-languages:hover {
188275
border: 1px solid #ddd;
189276
border-radius: 8px;
190277
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
191-
flex: 1 1 calc(33.333% - 20px);
278+
flex: 1 1 calc(33.333% - 20px);
192279
max-width: calc(33.333% - 20px);
193280
padding: 20px;
194281
box-sizing: border-box;
@@ -199,6 +286,7 @@ button#toggle-languages:hover {
199286
transform: translateY(-10px);
200287
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
201288
}
289+
202290
.card .btn-view-repo {
203291
display: inline-block;
204292
padding: 0.5rem 1rem;
@@ -209,8 +297,8 @@ button#toggle-languages:hover {
209297
font-size: 0.875rem;
210298
}
211299

212-
.card .btn-view-repo:hover{
213-
background-color:#2a2a7e;
300+
.card .btn-view-repo:hover {
301+
background-color: #2a2a7e;
214302
}
215303

216304

@@ -223,7 +311,7 @@ button#toggle-languages:hover {
223311

224312
@media (max-width: 480px) {
225313
.card {
226-
flex: 1 1 100%;
314+
flex: 1 1 100%;
227315
max-width: 100%;
228316
}
229317
}

0 commit comments

Comments
 (0)