Skip to content

Commit 4cfa57c

Browse files
authored
Various general section tweaks (#1020)
* Fix width of general cols to be 60/40 Signed-off-by: Peter Kos <pkos91@icloud.com> * Fix button link thing Signed-off-by: Peter Kos <pkos91@icloud.com> * Factor button effect out for (most) place exc card Signed-off-by: Peter Kos <pkos91@icloud.com>
1 parent 1e5d8d8 commit 4cfa57c

2 files changed

Lines changed: 27 additions & 16 deletions

File tree

index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,12 @@ <h2>What is a Hackathon?</h2>
130130
<p>Students work in teams and mentors are present to offer help. Sponsors attend to help, recruit, and promote their products. Teams compete in different categories and prizes are awarded, but everyone learns and everyone wins!</p>
131131
<p>Come spend 24 hours with us at BrickHack and dedicate time to learn, collaborate, build, and innovate.</p>
132132
</div>
133-
<div id="mlh">
134-
<i class="fas fa-arrow-right"></i>
135-
<a href="https://mlh.io/" target="_blank" rel="noopener noreferrer">Visit Major League Hacking (MLH)</a>
136-
</div>
133+
<a href="https://mlh.io/" id="mlh" target="_blank" rel="noopener noreferrer">
134+
<div>
135+
<i class="fas fa-arrow-right"></i>
136+
<p>Visit Major League Hacking (MLH)</p>
137+
</div>
138+
</a>
137139
</div>
138140
</section>
139141
<section id="schedule">

sass/main.scss

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ $event-count: 6;
4848
display: inline-block;
4949
color: white;
5050
cursor: pointer;
51+
@include button-effect($red);
52+
}
53+
54+
@mixin button-effect($color) {
5155
transition: 0.2s all;
5256
&:hover {
53-
background-color: lighten($red, 5%);
57+
background-color: lighten($color, 5%);
5458
}
5559
&:active {
5660
transform: translateY(4px);
@@ -290,13 +294,17 @@ nav {
290294
}
291295

292296
.slick-arrow {
293-
margin-top: 70px;
297+
margin-top: 50px;
294298
width: 60px;
295299
height: 60px;
296300
background-color: $blue;
297301
border: 2px solid #A3A9CA;
298302
box-sizing: border-box;
299303
border-radius: 50%;
304+
305+
// slick-theme has a transform we don't need!
306+
transform: none;
307+
@include button-effect($blue);
300308
}
301309

302310
// Make sure these appear over the slides!
@@ -339,25 +347,24 @@ nav {
339347
padding: $section-padding;
340348
align-items: center;
341349

342-
div {
343-
width: 40%;
350+
#hackathon-text {
351+
width: 60%;
344352
}
345353
}
346354

347355
#mlh {
348356
@include button;
357+
@include button-effect($light-blue);
349358
background-color: $light-blue;
350-
display: inline-block;
351-
width: auto;
352-
height: auto;
359+
margin: 0 auto;
353360
padding: 30px;
354361
border-radius: 20px;
355362

356-
&:hover {
357-
background-color: lighten($light-blue, 5%);
363+
i, p {
364+
display: inline;
358365
}
359366

360-
a {
367+
p {
361368
font-size: 1.2em;
362369
font-weight: $font-medium;
363370
}
@@ -367,6 +374,7 @@ nav {
367374
font-size: 1.6em;
368375
color: $red;
369376
vertical-align: text-bottom;
377+
padding-right: 10px;
370378
}
371379
}
372380
}
@@ -399,8 +407,9 @@ nav {
399407
margin-bottom: $card-m;
400408
border-radius: 7px;
401409
background-color: $light-blue;
402-
&:hover {
403-
background-color: lighten($light-blue, 5%);
410+
@include button-effect($light-blue);
411+
&:active {
412+
transform: none;
404413
}
405414
.accordion-header {
406415
background-color: transparent;

0 commit comments

Comments
 (0)