Skip to content

Commit fa54fec

Browse files
committed
Fix: Layout for devpost button placement
1 parent 3f82ffd commit fa54fec

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/pages/hackathons/[slug].astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const { Content } = allHackathonContent[matchingPath];
4343
<div class="columns is-centered">
4444
<div class="column is-two-thirds">
4545

46-
<!-- Action Buttons Box -->
46+
<!-- Event Actions Box (Devpost + Register) -->
4747
{(hackathon.status === 'upcoming' || hackathon.devpostLink) && (
4848
<div class="notification is-light has-text-centered mb-6">
4949
<h3 class="title is-4">Event Actions</h3>
@@ -66,6 +66,7 @@ const { Content } = allHackathonContent[matchingPath];
6666
</div>
6767
</div>
6868
)}
69+
6970
<!-- Main Markdown Content -->
7071
<div class="content is-medium">
7172
<Content />

src/pages/hackathons/index.astro

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="buttons"> ---
1+
---
22
import Layout from '@layouts/Default.astro'
33
import data from '@data/hackathons.json'
44
@@ -44,26 +44,29 @@ const hackathons = data.hackathons
4444
</p>
4545
<p>{hackathon.summary}</p>
4646

47-
<div class="buttons">
47+
<div class="buttons">
4848
<a href={`/hackathons/${hackathon.slug}`} class="button is-primary">
4949
<span>Event Details</span>
5050
</a>
5151

52-
{/* NEW: Devpost Button */}
52+
{/* Devpost Button */}
5353
{hackathon.devpostLink && (
5454
<a href={hackathon.devpostLink} class="button is-link is-outlined" target="_blank" rel="noopener noreferrer">
5555
<span>Devpost</span>
5656
<span class="icon is-small"><i class="fa-solid fa-code"></i></span>
5757
</a>
5858
)}
5959

60+
{/* Rubric Registration Button */}
6061
{hackathon.status === 'upcoming' && (
6162
<a href={hackathon.rubricLink} class="button is-warning" target="_blank" rel="noopener noreferrer">
6263
<span>Register on Rubric</span>
6364
<span class="icon is-small"><i class="fa-solid fa-external-link-alt"></i></span>
6465
</a>
6566
)}
66-
</div> </div>
67+
</div>
68+
</div>
69+
</div>
6770
</article>
6871
</div>
6972
))}

0 commit comments

Comments
 (0)