Skip to content

Commit fa7372c

Browse files
make the card box itself clickable
1 parent 310a967 commit fa7372c

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

index.html

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
margin-top: 24px;
1212
}
1313
.lecture-card {
14+
display: block;
1415
background: #fff;
1516
border: 3px solid #ddd;
1617
border-radius: 12px;
@@ -19,28 +20,24 @@
1920
font-size: 1.5rem;
2021
transition: all 0.2s ease;
2122
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
23+
text-decoration: none;
24+
color: #0b74ff;
25+
font-weight: 600;
2226
}
2327
.lecture-card:hover {
2428
border-color: #0b74ff;
2529
box-shadow: 0 12px 12px rgba(0,0,0,0.3);
2630
transform: translateY(-3px);
2731
}
28-
.lecture-card a {
29-
display: block;
30-
font-weight: 600;
31-
font-size: 1.1em;
32-
color: #0b74ff;
33-
text-decoration: none;
34-
}
3532
</style>
3633

3734
<h1>📘 Flashcard Lectures</h1>
3835
<p>Pick a lecture to study:</p>
3936

4037
<div class="lecture-grid">
4138
{% for lec in site.lectures %}
42-
<div class="lecture-card">
43-
<a href="{{ lec.url | relative_url }}">{{ lec.title }}</a>
44-
</div>
39+
<a href="{{ lec.url | relative_url }}" class="lecture-card">
40+
{{ lec.title }}
41+
</a>
4542
{% endfor %}
4643
</div>

0 commit comments

Comments
 (0)