Skip to content

Commit

Permalink
Merge pull request #20 from rustnl/all-hands
Browse files Browse the repository at this point in the history
All hands page
  • Loading branch information
m-ou-se authored Dec 9, 2024
2 parents 03bacd9 + b677347 commit dfbc9fa
Show file tree
Hide file tree
Showing 19 changed files with 19,709 additions and 28 deletions.
Binary file added public/images/venues/dus-outside-landscape.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/venues/dus-outside-portrait.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/venues/dus-rooms1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/venues/dus-rooms1b.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/venues/dus-rooms2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/venues/plattegrond.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18,680 changes: 18,680 additions & 0 deletions public/images/venues/plattegrond2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
227 changes: 227 additions & 0 deletions src/components/LocationDusMix.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
---
---

<section class="container py-24 space-y-12">
<div class="location">
<div class="image"></div>
<div class="image"></div>
<div class="image">
<div class="ferris"></div>
<div class="ferris-arms"></div>
</div>
<div class="ferris">
<img src="/images/ferris.png" alt="" />
</div>
</div>
</section>

<style lang="scss">
@import "../styles/breakpoint.scss";
@import "../styles/variables.scss";

.location {
position: relative;

@include wider_than(sm) {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-areas:
"a b"
"a c";
}

&::before {
aspect-ratio: 16 / 9;
background-color: $color-neutral-500;
clip-path: polygon(0 100%, 100% 0, 100% 100%);
content: "";
position: absolute;
right: 0;
top: 0;
translate: 0 -100%;
width: 50%;
z-index: -1;
}

> .ferris {
display: none;

@include wider_than(sm) {
align-items: flex-start;
aspect-ratio: 16 / 9;
display: flex;
justify-content: flex-end;
position: absolute;
top: -12px;
right: 24px;
translate: 0 -100%;
width: 50%;
z-index: -2;
}

@include wider_than(xl) {
top: -24px;
}

img {
@include wider_than(sm) {
rotate: -30deg;
width: 144px;
}

@include wider_than(xl) {
width: 288px;
}
}
}

.image {
background-color: $color-neutral-500;
position: relative;
}

.image:nth-of-type(1) {
aspect-ratio: 16 / 18;
background-image: url("/images/venues/dus-outside-portrait.jpg");
background-position: right bottom;
background-size: cover;

@include wider_than(sm) {
aspect-ratio: auto;
grid-area: a;
}

&::after {
aspect-ratio: 16 / 9;
background-color: $color-red-400;
clip-path: polygon(0 0, 100% 0, 0 100%);
content: "";
left: 0;
position: absolute;
top: 0;
width: 100%;
}

&::before {
background-repeat: no-repeat;
background-size: cover;
background-position: right bottom;
content: "";
inset: 0;
position: absolute;
z-index: 1;
}

&.boat::before {
background-image: none;
}
}

.image:nth-of-type(2) {
aspect-ratio: 16 / 9;
background-image: url("/images/venues/dus-rooms2.jpg");
background-size: 120%;
background-position: top;
background-repeat: no-repeat;

&.boat {
background-size: 100%;
background-image: url("/images/boat1.jpg");
}

&.unconf {
background-size: 100%;
background-image: url("/images/vakwerkhuis.jpg");
}

@include wider_than(sm) {
grid-area: b;
}
}

.image:nth-of-type(3) {
display: none;

@include wider_than(sm) {
aspect-ratio: 16 / 9;
background-color: $color-yellow-400;
grid-area: c;
display: flex;
align-items: center;
justify-content: center;
}

&::after {
@include wider_than(sm) {
background-color: $color-yellow-500;
content: "";
inset: 0 50% 0 0;
position: absolute;
}
}

&:hover .ferris {
@include wider_than(sm) {
translate: 0;
}

/* This timing is for the entering animation */
transition: translate 300ms 200ms ease-out;
}

&:hover .ferris-arms {
@include wider_than(sm) {
opacity: 1;
translate: 0px;
}

/* This timing is for the entering animation */
transition:
opacity 200ms ease-in,
translate 200ms ease-out;
}

> .ferris,
> .ferris-arms {
@include wider_than(sm) {
background-repeat: no-repeat;
background-size: contain;
height: 120px;
position: absolute;
rotate: 90deg;
width: 144px;
}

@include wider_than(xl) {
height: 240px;
width: 288px;
}
}

> .ferris {
@include wider_than(sm) {
background-image: url("/images/ferris.png");
/* This timing is for the leaving animation */
transition: translate 300ms ease-out;
translate: -24px;
}
}

> .ferris-arms {
@include wider_than(sm) {
background-image: url("/images/ferris-arms.png");
background-position: center -12px;
/* This timing is for the leaving animation */
transition:
opacity 200ms 300ms ease-out,
translate 200ms 200ms ease-out;
translate: 10px;
opacity: 0;
z-index: 1;
clip-path: circle(34%);
}
}
}
}
</style>
Loading

0 comments on commit dfbc9fa

Please sign in to comment.