Skip to content

Commit 32b2ea1

Browse files
authored
Make QA Different color (#131)
1 parent 37cd6bc commit 32b2ea1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

content/pages/schedule.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<div class="schedule-grid">
2121
{{#each talks}}
22-
<div class="schedule-card">
22+
<div class="schedule-card {{isQAClass this}}">
2323
<div class="v-sign">v</div>
2424

2525
<div><b>{{this.name}}</b></div>
@@ -84,6 +84,7 @@
8484
display: grid;
8585
grid-template-columns: 1fr 1fr;
8686
column-gap: 12px;
87+
row-gap: 12px;
8788
width: 100%;
8889
}
8990

@@ -114,6 +115,10 @@
114115

115116
transition: opacity 0.2s;
116117
}
118+
119+
.qa {
120+
background-color: #09155a;
121+
}
117122

118123
.schedule-card:hover {
119124
opacity: 0.85;
@@ -164,6 +169,10 @@
164169
<script>
165170
let schedules = [];
166171
let schedulesFormatted = [];
172+
173+
Handlebars.registerHelper('isQAClass', (data) => {
174+
return data.title.startsWith('Q&A') ? 'qa' : '';
175+
});
167176

168177
function initCardHidden() {
169178
document.querySelectorAll('.schedule-card').forEach(element => {

0 commit comments

Comments
 (0)