Skip to content

Commit c400a6e

Browse files
committed
add cfp link to hero
1 parent 4957ed1 commit c400a6e

3 files changed

Lines changed: 45 additions & 2 deletions

File tree

public/data/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,5 +216,6 @@
216216
"status": "open",
217217
"formUrl": "https://majorleaguehacking.typeform.com/to/WkalvfPw",
218218
"year": "2026"
219-
}
219+
},
220+
"ticketUrl": "https://ti.to/mlh/devrelcon-2026"
220221
}

src/pages/home-page.ts

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ import { openVideoDialog } from '../store/ui/actions';
2828
import {
2929
aboutBlock,
3030
buyTicket,
31+
cfp,
3132
scholarshipTicket,
3233
dates,
3334
description,
3435
heroSettings,
3536
location,
3637
showForkMeBlockForProjectIds,
38+
ticketUrl,
3739
title,
3840
viewHighlights,
3941
} from '../utils/data';
@@ -123,7 +125,7 @@ export class HomePage extends ReduxMixin(PolymerElement) {
123125
}
124126
125127
.action-buttons {
126-
margin: 0 -8px;
128+
margin: 24px -8px 0;
127129
font-size: 14px;
128130
}
129131
@@ -140,6 +142,25 @@ export class HomePage extends ReduxMixin(PolymerElement) {
140142
margin-right: 8px;
141143
}
142144
145+
.apply-to-speak {
146+
background-color: #fff;
147+
color: var(--default-primary-color);
148+
font-size: 16px;
149+
font-weight: 600;
150+
padding: 12px 32px;
151+
letter-spacing: 0.02em;
152+
}
153+
154+
.buy-ticket {
155+
background-color: var(--default-primary-color);
156+
color: #fff;
157+
font-size: 16px;
158+
font-weight: 600;
159+
padding: 12px 32px;
160+
letter-spacing: 0.02em;
161+
border: 2px solid #fff;
162+
}
163+
143164
.scroll-down {
144165
margin-top: 24px;
145166
color: currentColor;
@@ -283,6 +304,23 @@ export class HomePage extends ReduxMixin(PolymerElement) {
283304
</div>
284305
</div>
285306
307+
<template is="dom-if" if="[[isCfpOpen]]">
308+
<div class="action-buttons" layout horizontal center-justified wrap>
309+
<a href="[[cfpFormUrl]]" target="_blank" rel="noopener noreferrer">
310+
<paper-button class="apply-to-speak animated icon-right">
311+
<span>Apply to Speak</span>
312+
<iron-icon icon="hoverboard:arrow-right-circle"></iron-icon>
313+
</paper-button>
314+
</a>
315+
<a href="[[ticketUrl]]" target="_blank" rel="noopener noreferrer">
316+
<paper-button class="buy-ticket animated icon-right">
317+
<span>[[buyTicket]]</span>
318+
<iron-icon icon="hoverboard:arrow-right-circle"></iron-icon>
319+
</paper-button>
320+
</a>
321+
</div>
322+
</template>
323+
286324
<div class="scroll-down" on-click="scrollNextBlock">
287325
<svg
288326
xmlns="http://www.w3.org/2000/svg"
@@ -376,6 +414,9 @@ export class HomePage extends ReduxMixin(PolymerElement) {
376414
private scholarshipTicket = scholarshipTicket;
377415
private heroSettings = heroSettings.home;
378416
private aboutBlock = aboutBlock;
417+
private isCfpOpen = cfp.status === 'open';
418+
private cfpFormUrl = cfp.formUrl;
419+
private ticketUrl = ticketUrl;
379420

380421
@query('#hero')
381422
hero!: HeroBlock;

src/utils/data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,5 @@ export {
7272
showForkMeBlockForProjectIds,
7373
signInProviders,
7474
socialNetwork,
75+
ticketUrl,
7576
} from '../../public/data/settings.json';

0 commit comments

Comments
 (0)