Skip to content

Commit 2d69c4d

Browse files
committed
feat: add featured card category
1 parent 70ba841 commit 2d69c4d

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

template/home.html.j2

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,28 @@
2525
<div class="featured-card-icon">
2626
{% include 'components/icons/arrow.svg' %}
2727
</div>
28-
<span class="featured-card-title">Exploratory Data Analysis with PyArrow</span>
28+
<div class="featured-card-content">
29+
<span class="featured-card-title">Exploratory Data Analysis with PyArrow</span>
30+
<span class="featured-card-category">Data Analysis</span>
31+
</div>
2932
</a>
3033
<a href="/connect-to-ducklake-with-adbc-in-python" class="featured-card">
3134
<div class="featured-card-icon">
3235
{% include 'components/icons/ducklake.svg' %}
3336
</div>
34-
<span class="featured-card-title">Connect to DuckLake with ADBC in Python</span>
37+
<div class="featured-card-content">
38+
<span class="featured-card-title">Connect to DuckLake with ADBC in Python</span>
39+
<span class="featured-card-category">Database Connections</span>
40+
</div>
3541
</a>
3642
<a href="/connect-to-clickhouse-with-adbc-in-python" class="featured-card">
3743
<div class="featured-card-icon">
3844
{% include 'components/icons/clickhouse.svg' %}
3945
</div>
40-
<span class="featured-card-title">Connect to ClickHouse with ADBC in Python</span>
46+
<div class="featured-card-content">
47+
<span class="featured-card-title">Connect to ClickHouse with ADBC in Python</span>
48+
<span class="featured-card-category">Database Connections</span>
49+
</div>
4150
</a>
4251
</div>
4352
<div class="search-container">

template/static/style.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,11 @@ table.cookbooks tbody tr:hover {
403403
fill: #fff;
404404
}
405405

406+
.featured-card-content {
407+
display: flex;
408+
flex-direction: column;
409+
}
410+
406411
.featured-card-title {
407412
margin-top: 0.75rem;
408413
font-size: 1rem;
@@ -411,9 +416,10 @@ table.cookbooks tbody tr:hover {
411416
}
412417

413418
.featured-card-category {
414-
margin-top: 0.25rem;
415-
font-size: 0.8125rem;
419+
margin-top: 0.5rem;
420+
font-size: 0.75rem;
416421
text-align: left;
422+
color: #666;
417423
}
418424

419425
@media (max-width: 600px) {

0 commit comments

Comments
 (0)