Skip to content

Commit 6aaee9e

Browse files
authored
Merge pull request #948 from CodeHarborHub/dev-3
Update RESOURCES section for responsive design
2 parents 174d395 + 9e95584 commit 6aaee9e

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

src/components/HomePage/style.css

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,23 @@
4444
}
4545

4646
.resources-section .resources-container .resources-filters {
47-
display: inline-flex;
48-
gap: 0.25rem;
49-
margin-bottom: 1.5rem;
47+
display: grid;
48+
grid-auto-flow: column;
49+
grid-auto-columns: max-content;
50+
gap: 10px;
51+
margin: 1.5rem 0;
5052
border-radius: 0.5rem;
5153
padding: 0.5rem;
5254
font-family: "Jakarta", sans-serif;
5355
font-size: 0.875rem;
54-
font-weight: 600;
56+
font-weight: 600;
57+
scroll-behavior: smooth;
58+
overflow-x: auto;
59+
white-space: nowrap;
60+
-ms-overflow-style: none;
61+
scrollbar-width: none;
62+
background-color: #07574e73;
63+
border: 1px solid #666;
5564
}
5665

5766
.bg-secondary-700 {
@@ -98,6 +107,8 @@
98107
.resource {
99108
text-decoration: none;
100109
color: inherit;
110+
border-radius: 0.5rem;
111+
box-shadow: 0 0 10px rgba(5, 174, 216, 0.386);
101112
}
102113

103114
.resources-section
@@ -155,6 +166,7 @@
155166
.resource-title {
156167
font-weight: 600;
157168
margin-bottom: 8px;
169+
padding: 0 0.5rem;
158170
}
159171

160172
.resources-section
@@ -163,6 +175,7 @@
163175
.resources-grid
164176
.resource-description {
165177
line-height: 1.375;
178+
padding: 0 0.5rem;
166179
}
167180

168181
.resources-section
@@ -180,13 +193,15 @@
180193
.resources-grid
181194
.resource-duration {
182195
font-size: 14px;
183-
color: #666;
196+
padding: 0.5rem;
197+
color: var(--ifm-color-primary);
184198
}
185199

186200
.resources-section .resources-container .pagination {
187201
display: flex;
188202
justify-content: center;
189203
gap: 1rem;
204+
margin-top: 2.5rem;
190205
}
191206

192207
.resources-section .resources-container .pagination .pagination-button {

0 commit comments

Comments
 (0)