|
1 | 1 | .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 */ |
5 | 5 | font-family: 'RobotoMono', sans-serif; |
6 | | - color: #fff; |
| 6 | + color: #fff; /* White text color */ |
7 | 7 |
|
8 | 8 | .about-technologies { |
9 | 9 | 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 */ |
14 | 14 | } |
15 | 15 |
|
16 | 16 | .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 */ |
20 | 20 |
|
21 | 21 | @media (max-width: 1024px) { |
22 | | - grid-template-columns: 1fr 1fr; |
| 22 | + grid-template-columns: 1fr 1fr; /* Keep two columns on medium screens */ |
23 | 23 | } |
24 | 24 |
|
25 | 25 | @media (max-width: 500px) { |
26 | | - grid-template-columns: 1fr; |
| 26 | + grid-template-columns: 1fr; /* Switch to single column on small screens */ |
27 | 27 | } |
28 | 28 |
|
29 | 29 | .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 */ |
34 | 34 |
|
35 | 35 | 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 */ |
40 | 40 | } |
41 | 41 |
|
42 | 42 | .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 */ |
46 | 46 |
|
47 | 47 | @media (max-width: 1024px) { |
48 | | - grid-template-columns: repeat(2, 1fr); |
| 48 | + grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */ |
49 | 49 | } |
50 | 50 |
|
51 | 51 | @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 */ |
53 | 53 | } |
54 | 54 |
|
55 | 55 | .technology-item { |
56 | 56 | 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 */ |
63 | 63 |
|
64 | 64 | 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 */ |
69 | 69 | } |
70 | 70 |
|
71 | 71 | 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 */ |
76 | 76 | } |
77 | 77 |
|
78 | 78 | &:hover { |
79 | | - color: #8a2be2; |
| 79 | + color: #8a2be2; /* Change color to purple on hover */ |
80 | 80 | } |
81 | 81 | } |
82 | 82 | } |
|
0 commit comments