Skip to content

Commit e0b8d3c

Browse files
committed
Refactor and update Skills component styles
Moved Skills-related styles from App.css to a new Skills.css file for better modularity. Refactored SkillContainer.css with improved layout, new CSS variables, and enhanced level indicator styling for better UI consistency and maintainability.
1 parent 2921d2a commit e0b8d3c

3 files changed

Lines changed: 93 additions & 73 deletions

File tree

src/App.css

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -303,40 +303,13 @@ section.sv-container{
303303
padding: 15px 0;
304304
}
305305

306-
/*Skills*/
307306
.wrapper{
308-
width: 100%;
309-
height: 100%;
310-
display: flex;
311-
flex-wrap: wrap;
312-
justify-content: center;
313-
align-items: center;
314-
}
315-
.stats-container{
316-
width: 100%;
317-
height: 100%;
318-
margin-top: -13px;
319-
padding: 2.5%;
320-
border-image: url('./Media/Windows/Window5.png') 16 16 16 16 fill stretch;
321-
border-style: solid;
322-
image-rendering: pixelated;
323-
border-width: 35px;
324-
overflow: hidden;
325-
}
326-
.achievement-container{
327-
width: 90%;
328-
min-height: 450px;
329-
height: auto;
330-
}
331-
332-
.skill-info{
333-
padding: 30px 0;
334-
width: 100%;
335-
height: 400px;
336-
display: flex;
337-
flex-wrap: wrap;
338-
align-items: center;
339-
justify-content: center;
307+
width: 100%;
308+
height: 100%;
309+
display: flex;
310+
flex-wrap: wrap;
311+
justify-content: center;
312+
align-items: center;
340313
}
341314

342315
.a-title{

src/Components/Skills/SkillContainer/SkillContainer.css

Lines changed: 57 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11
/* SkillContainer Component Styles */
2+
3+
:root {
4+
--active-box-shadow:
5+
inset 2px -2px 2px rgba(0, 0, 0, 0.5),
6+
inset -2px 2px 2px rgba(250, 240, 224, 0.5),
7+
-2px 2px 2px rgba(0, 0, 0, 0.5);
8+
}
9+
210
.skill-container {
311
position: relative;
4-
width: 28%;
5-
height: auto;
6-
margin: 1%;
7-
padding: 1%;
8-
-webkit-background-size: cover;
9-
-moz-background-size: cover;
10-
-o-background-size: cover;
11-
background-size: 100% 100%;
12+
width: 48rem;
13+
height: auto;
1214
display: flex;
1315
flex-direction: column;
1416
align-items: center;
15-
justify-content: space-between;
16-
border-image: url(/src/Media/Windows/Window5.png) 2 fill stretch;
17-
border-style: solid;
18-
image-rendering: pixelated;
19-
border-width: 4px;
17+
justify-content: space-between;
18+
}
19+
20+
.skill-container__item {
21+
width: 100%;
22+
height: auto;
23+
display: flex;
24+
flex-direction: row;
25+
align-items: center;
26+
justify-content: end;
27+
gap: 0.5rem;
28+
font-size: 1.5rem;
2029
}
2130

2231
.skill-container__title {
@@ -52,44 +61,52 @@
5261
text-align: center;
5362
}
5463

55-
.skill-container__stats-line {
56-
margin: 0.2rem 0;
64+
.skill-container__icon {
65+
width: 2rem;
66+
height: 2rem;
67+
cursor: help;
68+
}
69+
70+
.skill-container__icon:hover {
71+
transform: scale(1.1);
72+
}
73+
74+
.skill-container__level-indicators {
5775
display: flex;
58-
flex-direction: column;
59-
gap: 6px;
76+
gap: 0.5rem;
6077
}
6178

62-
.skill-container__progress-bar {
63-
width: 100%;
64-
height: 12px;
79+
.skill-container__level-block {
6580
background-color: #3a3a3a;
66-
border-radius: 6px;
81+
border-radius: 0.25rem;
6782
overflow: hidden;
68-
border: 2px solid #8b4513;
69-
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
83+
height: 1.25rem;
84+
border: 0.125rem solid #C88D36;
85+
background-color: #C87D1B;
86+
box-shadow: inset -2px 2px 2px rgba(0, 0, 0, 0.5),
87+
-2px 2px 2px rgba(0, 0, 0, 0.5);
7088
}
7189

72-
.skill-container__progress-fill {
73-
height: 100%;
74-
background: linear-gradient(90deg, #4caf50, #81c784);
75-
border-radius: 4px;
76-
transition: width 0.3s ease;
77-
min-width: 2px;
78-
box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
90+
.skill-container__level-block.sm {
91+
width: 1.5rem;
92+
&.active {
93+
background-color: #DF003B;
94+
box-shadow: var(--active-box-shadow);
95+
}
7996
}
8097

81-
.skill-container__icon {
82-
position: absolute;
83-
bottom: -12px;
84-
left: -12px;
85-
width: 40px;
86-
height: 40px;
87-
cursor: help;
88-
transition: transform 0.2s ease-in-out;
98+
.skill-container__level-block.lg {
99+
width: 3rem;
100+
&.active {
101+
background-color: #FFA301;
102+
box-shadow: var(--active-box-shadow);
103+
}
89104
}
90105

91-
.skill-container__icon:hover {
92-
transform: scale(1.1);
106+
.skill-container__level-no {
107+
width: 2ch;
108+
font-weight: 600;
109+
font-size: 2rem;
93110
}
94111

95112
/* Responsive adjustments */

src/Components/Skills/Skills.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
.stats-container{
3+
width: 100%;
4+
height: 100%;
5+
margin-top: -13px;
6+
padding: 0;
7+
border-image: url('../../Media/Windows/Window5.png') 16 16 16 16 fill stretch;
8+
border-style: solid;
9+
image-rendering: pixelated;
10+
border-width: 35px;
11+
overflow: hidden;
12+
display: flex;
13+
flex-direction: row;
14+
}
15+
16+
.achievement-container{
17+
width: 90%;
18+
min-height: 450px;
19+
height: auto;
20+
}
21+
22+
.skill-info{
23+
width: 100%;
24+
height: 400px;
25+
display: flex;
26+
flex-direction: column;
27+
align-items: center;
28+
justify-content: center;
29+
gap: 1rem;
30+
}

0 commit comments

Comments
 (0)