Skip to content

Commit

Permalink
add graphics for schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed Jan 20, 2024
1 parent 5735d41 commit 458e9e7
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/components/Schedule.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
---
import { Image } from 'astro:assets';
import shapesLeft from '../graphics/shapes_twirl_1.svg';
import shapesRight from '../graphics/shapes_sparkle_1.svg';
---

<section>
<Image class="shape-left" src={shapesLeft} alt="" />
<Image class="shape-right" src={shapesRight} alt="" />

<div class="header-container">
<h4 id="schedule">SCHEDULE</h4>
<h3>1 day, but <b>countless</b> possibilities</h3>
Expand Down Expand Up @@ -135,4 +144,34 @@
border-collapse: collapse;
}
}

.shape-left {
$offset: 200px;

position: absolute;
top: 100px;
left: -$offset;
z-index: -1;
display: none;
transform: translateX(clamp(0px, 15vw, $offset));

@media (min-width: breakpoints.$tablet) {
display: block;
}
}

.shape-right {
$offset: 100px;

position: absolute;
top: 150px;
right: -$offset;
z-index: -1;
display: none;
transform: translateX(clamp(#{-$offset}, -15vw, 0px));

@media (min-width: breakpoints.$tablet) {
display: block;
}
}
</style>

0 comments on commit 458e9e7

Please sign in to comment.