Skip to content

Commit 2091e43

Browse files
tomvannuenenclaude
andcommitted
Make all workshop categories display in one row on large screens
- Change column classes to col-xl col-lg-4 col-md-6 col-sm-6 - Add category-row class for targeting specific CSS - Add CSS media query for 5-column layout on XL screens (≥1200px) - Maintains responsive behavior for smaller screens 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4e422c3 commit 2091e43

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h4 class="alert-heading">
2929
</div>
3030
{% endif %}
3131

32-
<div class="row justify-content-center mb-4">
32+
<div class="row justify-content-center mb-4 category-row">
3333
{% assign python_count = 0 %}
3434
{% assign r_count = 0 %}
3535
{% assign ai_count = 0 %}
@@ -93,7 +93,7 @@ <h4 class="alert-heading">
9393
{% endif %}
9494
{% endfor %}
9595

96-
<div class="col-lg-3 col-md-6 col-sm-6 mb-3">
96+
<div class="col-xl col-lg-4 col-md-6 col-sm-6 mb-3">
9797
<div class="card h-100 text-center border-0 shadow-sm category-card">
9898
<div class="card-body d-flex flex-column">
9999
<div class="category-icon python-icon"></div>
@@ -105,7 +105,7 @@ <h5 class="card-title text-dark">Python</h5>
105105
</div>
106106
</div>
107107

108-
<div class="col-lg-3 col-md-6 col-sm-6 mb-3">
108+
<div class="col-xl col-lg-4 col-md-6 col-sm-6 mb-3">
109109
<div class="card h-100 text-center border-0 shadow-sm category-card">
110110
<div class="card-body d-flex flex-column">
111111
<div class="category-icon r-icon"></div>
@@ -117,7 +117,7 @@ <h5 class="card-title text-dark">R</h5>
117117
</div>
118118
</div>
119119

120-
<div class="col-lg-3 col-md-6 col-sm-6 mb-3">
120+
<div class="col-xl col-lg-4 col-md-6 col-sm-6 mb-3">
121121
<div class="card h-100 text-center border-0 shadow-sm category-card">
122122
<div class="card-body d-flex flex-column">
123123
<div class="category-icon ai-icon"></div>
@@ -129,7 +129,7 @@ <h5 class="card-title text-dark">AI</h5>
129129
</div>
130130
</div>
131131

132-
<div class="col-lg-3 col-md-6 col-sm-6 mb-3">
132+
<div class="col-xl col-lg-4 col-md-6 col-sm-6 mb-3">
133133
<div class="card h-100 text-center border-0 shadow-sm category-card">
134134
<div class="card-body d-flex flex-column">
135135
<div class="category-icon qualitative-icon"></div>
@@ -141,7 +141,7 @@ <h5 class="card-title text-dark">Qualitative</h5>
141141
</div>
142142
</div>
143143

144-
<div class="col-lg-3 col-md-6 col-sm-6 mb-3">
144+
<div class="col-xl col-lg-4 col-md-6 col-sm-6 mb-3">
145145
<div class="card h-100 text-center border-0 shadow-sm category-card">
146146
<div class="card-body d-flex flex-column">
147147
<div class="category-icon other-icon"></div>

static/stylesheets/custom-home.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@
104104
border-bottom: 1px solid #e9ecef;
105105
}
106106

107+
/* Five column layout for categories on xl screens */
108+
@media (min-width: 1200px) {
109+
.category-row .col-xl {
110+
flex: 0 0 20%;
111+
max-width: 20%;
112+
}
113+
}
114+
107115
/* Responsive adjustments */
108116
@media (max-width: 768px) {
109117
.workshop-links .btn {

0 commit comments

Comments
 (0)