|
19 | 19 | align-items: flex-start; |
20 | 20 | margin-bottom: 40px; |
21 | 21 |
|
22 | | - /* Desktop: Vertically center the photo relative to text and header */ |
| 22 | + /* Vertically center the photo with text and header on desktop */ |
23 | 23 | @media (min-width: 769px) { |
24 | | - align-items: center; /* Center vertically */ |
| 24 | + align-items: center; |
25 | 25 | } |
26 | 26 |
|
| 27 | + /* Stack content and center text and photo on mobile */ |
27 | 28 | @media (max-width: 768px) { |
28 | 29 | flex-direction: column; |
29 | 30 | text-align: center; |
|
33 | 34 | flex: 1; |
34 | 35 | padding-right: 0; |
35 | 36 | text-align: left; |
36 | | - |
| 37 | + |
| 38 | + /* Center text on mobile */ |
37 | 39 | @media (max-width: 768px) { |
38 | 40 | text-align: center; |
39 | 41 | padding-right: 0; |
|
45 | 47 | } |
46 | 48 |
|
47 | 49 | .purple-text { |
48 | | - color: #9b30ff; |
| 50 | + color: #9b30ff; /* Purple color for highlighted text */ |
49 | 51 | } |
50 | 52 |
|
51 | 53 | a { |
52 | | - color: #9b30ff; |
53 | | - text-decoration: underline; |
| 54 | + color: #9b30ff; /* Purple color for links */ |
| 55 | + text-decoration: underline; /* Always underline links */ |
54 | 56 |
|
55 | 57 | &:visited { |
56 | | - color: #9b30ff; |
| 58 | + color: #9b30ff; /* Maintain purple for visited links */ |
57 | 59 | } |
58 | 60 |
|
59 | 61 | &:hover { |
60 | | - color: #8a2be2; |
| 62 | + color: #8a2be2; /* Slightly darker purple on hover */ |
61 | 63 | } |
62 | 64 | } |
63 | 65 | } |
|
76 | 78 | border-radius: 10px; |
77 | 79 | } |
78 | 80 |
|
79 | | - /* Mobile: Horizontal centering */ |
| 81 | + /* Ensure the photo is centered horizontally and vertically on mobile */ |
80 | 82 | @media (max-width: 768px) { |
81 | 83 | width: 70%; |
82 | 84 | padding-left: 0; |
83 | 85 | margin-top: 20px; |
84 | | - margin-left: auto; /* Ensures horizontal centering */ |
85 | | - margin-right: auto; /* Ensures horizontal centering */ |
86 | | - justify-content: center; /* Keep centered horizontally */ |
87 | | - align-items: center; /* Keep centered vertically */ |
| 86 | + margin-left: auto; |
| 87 | + margin-right: auto; |
| 88 | + justify-content: center; |
| 89 | + align-items: center; |
88 | 90 | } |
89 | 91 | } |
90 | 92 | } |
|
126 | 128 | font-family: 'RobotoMono', sans-serif; |
127 | 129 |
|
128 | 130 | &:hover { |
129 | | - background-color: #7a23d1; |
| 131 | + background-color: #7a23d1; /* Slightly darker purple on hover */ |
130 | 132 | } |
131 | 133 | } |
132 | 134 | } |
|
154 | 156 | grid-template-columns: 1fr 1fr; |
155 | 157 | gap: 20px; |
156 | 158 |
|
| 159 | + /* Switch to single-column layout on small screens */ |
157 | 160 | @media (max-width: 500px) { |
158 | 161 | grid-template-columns: 1fr; |
159 | 162 | } |
|
176 | 179 | grid-template-columns: repeat(3, 1fr); |
177 | 180 | gap: 10px; |
178 | 181 |
|
| 182 | + /* Adjust to two columns on small screens */ |
179 | 183 | @media (max-width: 500px) { |
180 | 184 | grid-template-columns: repeat(2, 1fr) !important; |
181 | 185 | } |
|
202 | 206 | } |
203 | 207 |
|
204 | 208 | &:hover { |
205 | | - color: #8a2be2; |
| 209 | + color: #8a2be2; /* Purple highlight on hover */ |
206 | 210 | } |
207 | 211 | } |
208 | 212 | } |
|
0 commit comments