@@ -43,18 +43,29 @@ const { Content } = allHackathonContent[matchingPath];
4343 <div class =" columns is-centered" >
4444 <div class =" column is-two-thirds" >
4545
46- <!-- Registration CTA Box -->
47- { hackathon .status === ' upcoming' && (
48- <div class = " notification is-warning is-light has-text-centered mb-6" >
49- <h3 class = " title is-4" >Registration Open!</h3 >
50- <p class = " mb-4" >Secure your spot via Rubric.</p >
51- <a href = { hackathon .rubricLink } target = " _blank" class = " button is-dark is-medium" >
52- <strong >Register Now</strong >
53- <span class = " icon ml-2" ><i class = " fa-solid fa-arrow-right" ></i ></span >
54- </a >
46+ <!-- Action Buttons Box -->
47+ { (hackathon .status === ' upcoming' || hackathon .devpostLink ) && (
48+ <div class = " notification is-light has-text-centered mb-6" >
49+ <h3 class = " title is-4" >Event Actions</h3 >
50+ <div class = " buttons is-centered" >
51+ <!-- Rubric Registration (Only if upcoming) -->
52+ { hackathon .status === ' upcoming' && (
53+ <a href = { hackathon .rubricLink } target = " _blank" rel = " noopener noreferrer" class = " button is-warning is-medium" >
54+ <strong >Register on Rubric</strong >
55+ <span class = " icon ml-2" ><i class = " fa-solid fa-ticket" ></i ></span >
56+ </a >
57+ )}
58+
59+ <!-- Devpost Link (Always visible if link exists) -->
60+ { hackathon .devpostLink && (
61+ <a href = { hackathon .devpostLink } target = " _blank" rel = " noopener noreferrer" class = " button is-link is-medium" >
62+ <strong >View on Devpost</strong >
63+ <span class = " icon ml-2" ><i class = " fa-solid fa-code" ></i ></span >
64+ </a >
65+ )}
66+ </div >
5567 </div >
5668 )}
57-
5869 <!-- Main Markdown Content -->
5970 <div class =" content is-medium" >
6071 <Content />
0 commit comments