Skip to content

Commit 73194ff

Browse files
committed
docs: commented techstack.scss for better code readabliity.
1 parent 85c1ff8 commit 73194ff

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

src/components/techstack/techstack.scss

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,82 @@
11
.about-technologies-container {
2-
width: 80%;
3-
margin: 0 auto;
4-
padding: 20px 0;
2+
width: 80%; /* Set width to 80% for consistent margin with other components */
3+
margin: 0 auto; /* Center the container horizontally */
4+
padding: 20px 0; /* Padding around the container */
55
font-family: 'RobotoMono', sans-serif;
6-
color: #fff;
6+
color: #fff; /* White text color */
77

88
.about-technologies {
99
h2 {
10-
font-size: 2em;
11-
margin-bottom: 20px;
12-
text-align: left;
13-
color: #fff;
10+
font-size: 2em; /* Large font size for section title */
11+
margin-bottom: 20px; /* Space below the title */
12+
text-align: left; /* Align title to the left */
13+
color: #fff; /* White title */
1414
}
1515

1616
.technology-categories {
17-
display: grid;
18-
grid-template-columns: 1fr 1fr;
19-
gap: 20px;
17+
display: grid; /* Use grid layout to organize categories */
18+
grid-template-columns: 1fr 1fr; /* Two columns by default */
19+
gap: 20px; /* Space between grid items */
2020

2121
@media (max-width: 1024px) {
22-
grid-template-columns: 1fr 1fr;
22+
grid-template-columns: 1fr 1fr; /* Keep two columns on medium screens */
2323
}
2424

2525
@media (max-width: 500px) {
26-
grid-template-columns: 1fr;
26+
grid-template-columns: 1fr; /* Switch to single column on small screens */
2727
}
2828

2929
.technology-category {
30-
background-color: #2a2a2a;
31-
padding: 20px;
32-
border-radius: 10px;
33-
color: #fff;
30+
background-color: #2a2a2a; /* Dark background for each category */
31+
padding: 20px; /* Padding inside each category box */
32+
border-radius: 10px; /* Rounded corners */
33+
color: #fff; /* White text color */
3434

3535
h3 {
36-
font-size: 1.5em;
37-
margin-bottom: 30px;
38-
text-align: center;
39-
color: #fff;
36+
font-size: 1.5em; /* Font size for category headings */
37+
margin-bottom: 30px; /* Space below the category title */
38+
text-align: center; /* Center-align category titles */
39+
color: #fff; /* White color for category titles */
4040
}
4141

4242
.technology-items {
43-
display: grid;
44-
grid-template-columns: repeat(3, 1fr);
45-
gap: 10px;
43+
display: grid; /* Grid layout for technology items inside each category */
44+
grid-template-columns: repeat(3, 1fr); /* Three columns by default */
45+
gap: 10px; /* Space between technology items */
4646

4747
@media (max-width: 1024px) {
48-
grid-template-columns: repeat(2, 1fr);
48+
grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
4949
}
5050

5151
@media (max-width: 500px) {
52-
grid-template-columns: repeat(2, 1fr) !important;
52+
grid-template-columns: repeat(2, 1fr) !important; /* Two columns on small screens */
5353
}
5454

5555
.technology-item {
5656
display: flex;
57-
flex-direction: column;
58-
align-items: center;
59-
font-size: 1.2em;
60-
color: #fff;
61-
transition: color 0.3s ease;
62-
cursor: default; /* Ensures the cursor stays default */
57+
flex-direction: column; /* Stack icon and text vertically */
58+
align-items: center; /* Center-align items */
59+
font-size: 1.2em; /* Font size for text inside technology items */
60+
color: #fff; /* White text color */
61+
transition: color 0.3s ease; /* Smooth color transition on hover */
62+
cursor: default; /* Keep cursor default, not clickable */
6363

6464
i {
65-
font-size: 3em;
66-
margin-bottom: 10px;
67-
color: inherit;
68-
transition: inherit;
65+
font-size: 3em; /* Large icon size */
66+
margin-bottom: 10px; /* Space below the icon */
67+
color: inherit; /* Inherit color from parent */
68+
transition: inherit; /* Inherit transition from parent */
6969
}
7070

7171
p {
72-
margin: 0;
73-
text-align: center;
74-
color: inherit;
75-
transition: inherit;
72+
margin: 0; /* Remove default margin */
73+
text-align: center; /* Center-align text */
74+
color: inherit; /* Inherit color from parent */
75+
transition: inherit; /* Inherit transition from parent */
7676
}
7777

7878
&:hover {
79-
color: #8a2be2;
79+
color: #8a2be2; /* Change color to purple on hover */
8080
}
8181
}
8282
}

0 commit comments

Comments
 (0)