Skip to content

Commit 08ece10

Browse files
Redesign card grid: 2-column layout, step numbers, better spacing
- Switch from auto-fill 280px to fixed 2-column grid for wider cards - Add STEP 1-4 labels to the build sequence cards - Bump responsive breakpoint to 640px - Tighten card padding and gap for cleaner look Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bcd7bca commit 08ece10

2 files changed

Lines changed: 27 additions & 15 deletions

File tree

docs/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ description: Build AI-powered bioinformatics skills at Imperial College London.
4848
<div class="tutorial-card__header">
4949
<span class="difficulty-badge difficulty-badge--beginner">Beginner</span>
5050
<span class="time-estimate">10 min</span>
51+
<span class="tutorial-card__step">STEP 1</span>
5152
</div>
5253
<h3 class="tutorial-card__title">Setup</h3>
5354
<p class="tutorial-card__desc">Clone ClawBio, install dependencies, and run your first demo skill.</p>
@@ -57,6 +58,7 @@ description: Build AI-powered bioinformatics skills at Imperial College London.
5758
<div class="tutorial-card__header">
5859
<span class="difficulty-badge difficulty-badge--beginner">Beginner</span>
5960
<span class="time-estimate">20 min</span>
61+
<span class="tutorial-card__step">STEP 2</span>
6062
</div>
6163
<h3 class="tutorial-card__title">Your First Skill</h3>
6264
<p class="tutorial-card__desc">Write a SKILL.md from scratch and see it run end-to-end.</p>
@@ -66,6 +68,7 @@ description: Build AI-powered bioinformatics skills at Imperial College London.
6668
<div class="tutorial-card__header">
6769
<span class="difficulty-badge difficulty-badge--intermediate">Intermediate</span>
6870
<span class="time-estimate">20 min</span>
71+
<span class="tutorial-card__step">STEP 3</span>
6972
</div>
7073
<h3 class="tutorial-card__title">Add Python</h3>
7174
<p class="tutorial-card__desc">Add a Python implementation to your skill with real bioinformatics logic.</p>
@@ -75,6 +78,7 @@ description: Build AI-powered bioinformatics skills at Imperial College London.
7578
<div class="tutorial-card__header">
7679
<span class="difficulty-badge difficulty-badge--beginner">Beginner</span>
7780
<span class="time-estimate">10 min</span>
81+
<span class="tutorial-card__step">STEP 4</span>
7882
</div>
7983
<h3 class="tutorial-card__title">Test & Submit</h3>
8084
<p class="tutorial-card__desc">Validate your skill, run tests, and submit your hackathon entry.</p>

docs/stylesheets/clawbio.css

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -437,17 +437,17 @@
437437

438438
.tutorial-cards {
439439
display: grid;
440-
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
441-
gap: 1.5rem;
440+
grid-template-columns: repeat(2, 1fr);
441+
gap: 1rem;
442442
margin: 1rem 0 2.5rem;
443443
}
444444

445445
/* Individual card */
446446
.tutorial-card {
447447
display: flex;
448448
flex-direction: column;
449-
border-radius: 12px;
450-
padding: 1.5rem;
449+
border-radius: 10px;
450+
padding: 1.25rem 1.5rem;
451451
text-decoration: none !important;
452452
color: inherit !important;
453453
transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
@@ -467,7 +467,7 @@
467467

468468
[data-md-color-scheme="clawbio"] .tutorial-card:hover {
469469
border-color: #3fb950;
470-
box-shadow: 0 4px 16px rgba(63, 185, 80, 0.1);
470+
box-shadow: 0 4px 20px rgba(63, 185, 80, 0.12);
471471
}
472472

473473
/* Light theme cards */
@@ -487,23 +487,31 @@
487487
display: flex;
488488
align-items: center;
489489
gap: 0.5rem;
490-
margin-bottom: 0.5rem;
490+
margin-bottom: 0.6rem;
491491
flex-wrap: wrap;
492492
}
493493

494-
.tutorial-card__number {
495-
font-size: 0.78rem;
496-
font-weight: 700;
497-
color: #8b949e;
494+
/* Step number */
495+
.tutorial-card__step {
496+
font-size: 0.75rem;
497+
font-weight: 800;
498498
letter-spacing: 0.04em;
499-
min-width: 1.8rem;
499+
margin-right: auto;
500+
}
501+
502+
[data-md-color-scheme="clawbio"] .tutorial-card__step {
503+
color: #484f58;
504+
}
505+
506+
[data-md-color-scheme="default"] .tutorial-card__step {
507+
color: #94a3b8;
500508
}
501509

502510
/* Card title */
503511
.tutorial-card__title {
504-
font-size: 1.05rem;
512+
font-size: 1.1rem;
505513
font-weight: 700;
506-
margin: 0 0 0.25rem;
514+
margin: 0 0 0.35rem;
507515
line-height: 1.3;
508516
}
509517

@@ -519,7 +527,7 @@
519527
.tutorial-card__desc {
520528
font-size: 0.88rem;
521529
color: #8b949e;
522-
line-height: 1.6;
530+
line-height: 1.55;
523531
margin: 0;
524532
flex: 1;
525533
}
@@ -688,7 +696,7 @@
688696
Responsive: single column below 480px
689697
============================================================ */
690698

691-
@media (max-width: 480px) {
699+
@media (max-width: 640px) {
692700
.tutorial-cards,
693701
.section-cards {
694702
grid-template-columns: 1fr;

0 commit comments

Comments
 (0)