This repository has been archived by the owner on Feb 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa9da2c
commit b647a8f
Showing
35 changed files
with
842 additions
and
433 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
<main> | ||
<section class="title"> | ||
<slot name="title" /> | ||
</section> | ||
|
||
{#if $$slots.toolbar} | ||
<section class="toolbar"> | ||
<slot name="toolbar" /> | ||
</section> | ||
{/if} | ||
|
||
<section class="content"> | ||
<slot /> | ||
</section> | ||
</main> | ||
|
||
|
||
<!-- Styles --> | ||
|
||
|
||
<style lang="sass"> | ||
@use "$styles/variables.sass" as * | ||
@use "$styles/palette.sass" as * | ||
main | ||
display: flex | ||
flex-flow: column nowrap | ||
place-items: stretch start | ||
box-sizing: content-box | ||
min-width: $small-column | ||
max-width: $big-column | ||
margin: auto | ||
padding: $main-padding $tudelft-logo-width | ||
@media screen and (max-width: $phone-breakpoint) | ||
width: $small-column | ||
padding: $main-padding | ||
padding-bottom: $footer-height | ||
.title | ||
margin-bottom: 2rem | ||
color: $dark-gray | ||
.toolbar | ||
display: flex | ||
flex-flow: row nowrap | ||
place-items: center start | ||
gap: $form-small-gap | ||
margin-bottom: 1rem | ||
.content | ||
display: flex | ||
flex-flow: column nowrap | ||
place-items: stretch start | ||
gap: 2rem | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
|
||
<div class="loader" /> | ||
<div class="loader" /> | ||
<div class="loader" /> | ||
|
||
<style lang="sass"> | ||
@use 'sass:math' | ||
@use "$styles/variables.sass" as * | ||
@use "$styles/palette.sass" as * | ||
$radius: 10px | ||
$diagonal: math.sqrt(2) * $radius | ||
$duration: 1.25s | ||
.loader | ||
position: absolute | ||
right: 50% | ||
bottom: 50% | ||
width: $diagonal | ||
height: $diagonal | ||
animation: figure-eight $duration infinite linear | ||
&:nth-child(2) | ||
animation-delay: -$duration / 3 | ||
&:nth-child(3) | ||
animation-delay: -$duration / 1.5 | ||
&::after | ||
content: '' | ||
position: absolute | ||
translate: -50% -50% | ||
top: 50% | ||
left: 50% | ||
width: 10px | ||
height: 10px | ||
border-radius: 50% | ||
background: $purple | ||
@keyframes figure-eight | ||
0%, 100% | ||
transform-origin: bottom right | ||
translate: $diagonal 0 | ||
rotate: 0deg | ||
35% | ||
transform-origin: bottom right | ||
translate: $diagonal 0 | ||
rotate: 270deg | ||
50% | ||
transform-origin: top left | ||
translate: 0 $diagonal | ||
rotate: 270deg | ||
85% | ||
transform-origin: top left | ||
translate: 0 $diagonal | ||
rotate: 0deg | ||
</style> | ||
|
||
<!-- .loader { | ||
width: calc(100px - 14px); | ||
height: 50px; | ||
border-radius: 50px; | ||
background: | ||
radial-gradient(farthest-side,#0000 calc(100% - 15px),#ccc calc(100% - 14px) 99%,#0000) left, | ||
radial-gradient(farthest-side,#0000 calc(100% - 15px),#ccc calc(100% - 14px) 99%,#0000) right; | ||
background-size: calc(50% + 7px) 100%; | ||
background-repeat: no-repeat; | ||
position: relative; | ||
animation: l10-0 1s infinite linear; | ||
} | ||
.loader:before { | ||
content: ""; | ||
position: absolute; | ||
inset: 0; | ||
margin: auto; | ||
width: 10px; | ||
height: 10px; | ||
border-radius: 50%; | ||
background: #f03355; | ||
transform-origin: -14px 50%; | ||
animation: l10-1 0.5s infinite linear; | ||
} | ||
@keyframes l10-0 { | ||
0%,49.99% { transform:scaleX(1)} | ||
50%,100% { transform:scaleX(-1)} | ||
} | ||
@keyframes l10-1 { | ||
100% { transform:rotate(1turn)} | ||
} | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.