Skip to content

Commit

Permalink
Push
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyersPh9 committed Feb 2, 2024
1 parent 0016338 commit cb0bad5
Show file tree
Hide file tree
Showing 16 changed files with 412 additions and 103 deletions.
10 changes: 7 additions & 3 deletions _includes/globe.html → _includes/banner-events.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<div class="banner-events-stars" data-variant="1"></div>
<div class="banner-events-stars" data-variant="2"></div>
<div class="banner-events-stars" data-variant="3"></div>

<svg
class="banner-logo"
class="banner-events-logo"
data-variant="left"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 155 36"
Expand All @@ -9,12 +13,12 @@
/>
</svg>

<div class="globe-container">
<div class="banner-events-globe">
<canvas id="globeCanvas"></canvas>
</div>

<svg
class="banner-logo"
class="banner-events-logo"
data-variant="right"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 155 36"
Expand Down
17 changes: 17 additions & 0 deletions _includes/dialog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<dialog id="info">
<div class="dialog-header">
<h1>About {{ site.title }}</h1>

<button
autofocus
onclick="document.getElementById('info').close()"
title="Close"
>
<svg alt="Close" loading="lazy" aria-hidden="true">
<use xlink:href="/assets/symbols.svg#close"></use>
</svg>
<span class="visually-hidden">Close</span>
</button>
</div>
<p>Who we are. How to contribute. Cori is a bitch.</p>
</dialog>
9 changes: 9 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<footer>
<ul>
<li>&copy; {{site.time | date: "%Y" }} {{ site.title }}</li>
<li>
<a href="mailto:[email protected]">Contact us</a>
</li>
</ul>
<p>Website designed by <a href="https://JonGraft.design">Jon Graft</a></p>
</footer>
1 change: 1 addition & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="{{ site.title }}" />
{% seo %}
<script src="/assets/js/scroll.js"></script>
29 changes: 27 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header>
<a href="/">
<!-- <a href="/">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1800 862"
Expand All @@ -10,5 +10,30 @@
d="M704.613 750.35 673.4 666.413l-79.835-214.795H497.72l-113.05 304.335L345.353 861.8l95.143.1L453 828.385l.3-.1 165.674-51.323L650.69 862h95.143l-41.219-111.65ZM492.72 722.438l-24.41 7.603 29.512-21.41 47.622-128.356v-.2l.2.2 42.018 112.65-94.942 29.513Zm355.158-155.87-9.704-22.31 9.704 22.31Zm272.02-115.25V861.8h-89.74v-.1h-54.723L838.173 544.259l17.307 72.932V861.8l-89.74-.5V451.317h32.315l-.1-.1h99.644l.1.1 132.459 306.637V451.317h89.74Zm462.606 89.24v73.632h130.058v91.04h-130.058l-31.414-.1.5.1 30.914 12.006v55.724H1800v88.74h-308.237v-.4h-.3V451.718H1800v88.84h-217.497Zm-111.75-89.54v90.54h-124.755c-64.028 0-115.951 51.322-115.951 115.35 0 60.128 45.72 109.45 104.246 115.252 2.001.2 3.902.3 5.903.4 1.9.1 3.901.1 5.802.1h124.756v89.14h-124.756c-113.65 0-205.791-91.841-205.791-205.492 0-113.55 91.64-205.09 205.191-205.29h125.356Zm80.837 254.212-.5-.1M177.478 451.117l-176.779.2L0 862h177.079c113.65 0 205.791-91.84 205.791-205.491S291.23 451.117 177.48 451.117Zm11.405 321.043c-2 .2-3.902.3-5.903.4-1.9.1-3.801.1-5.802.1H52.423l36.517-9.804V541.457h88.239c64.028 0 115.951 51.323 115.951 115.352.1 60.227-45.62 109.549-104.246 115.351ZM706.214 0H610.37l-112.85 303.935-.2.4-39.117 105.447-.2.4 95.142.1 12.706-33.915.2-.1 165.573-51.323.1.3 31.714 85.038h95.143L706.214 0ZM581.859 277.824l28.712-20.81 47.622-128.357v-.1l.2.2 41.918 112.35-118.452 36.717ZM435.393.1v410.182h-89.04l.201-147.265H157.27v147.265H68.23V.1h89.04v174.077l189.484.3.3-174.377h88.34Zm64.029 303.835-.1.4-39.117 105.447h-.2l39.317-105.747.1-.1Zm1141.407 15.507h90.94v90.94h-90.94v-90.94ZM1264.262 90.34v.1-.1ZM1441.241 0l-176.779.2-.7 410.683h177.078c113.651 0 205.792-91.841 205.792-205.492S1554.992 0 1441.24 0Zm11.505 321.043c-2.001.2-3.902.4-5.903.4-1.9.1-3.802.2-5.803.2h-124.755l36.516-9.904V90.44h88.24c64.028 0 116.051 51.323 116.051 115.352-.1 60.026-45.82 109.348-104.346 115.25Zm-208.993 89.44h-125.056L971.032 262.916h-2.802v147.565h-.1l-88.639.5.1-296.13h88.64v59.726h136.66c23.71 0 43.02-19.209 43.02-43.02 0-21.91-16.408-40.017-37.718-42.618H848.578L815.763.4h295.23c38.218 1.701 72.233 19.809 95.143 47.421a121.504 121.504 0 0 1 12.306 17.708c11.305 19.409 17.808 41.919 17.808 66.03 0 72.532-58.827 131.258-131.259 131.258h-33.815l37.317 12.005 135.26 135.66Z"
/>
</svg>
</a>
</a> -->

<ul role="menu">
<li role="presentation">
<a
role="menuitem"
{% if page.url == '/' or page.url == '/events/' %}
aria-active="current"
{% endif %}
{% if page.url == '/' %}
href="#top"
{% else %}
href="/"
{% endif %}
>Events</a>
</li>
<li role="presentation">
<a role="menuitem" href="/community.html" {% if page.url == '/community.html' %}aria-active="current"{% endif %}>Community</a>
</li>
</ul>

<button onclick="document.getElementById('info').showModal()">
<svg alt="Information" aria-hidden="true">
<use xlink:href="/assets/symbols.svg#info"></use>
</svg>
</button>
</header>
33 changes: 26 additions & 7 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,34 @@
<script src="https://unpkg.com/[email protected]/dist/color.js"></script>
</head>
<body>
<div class="banner">{% include globe.html %}</div>
{% include header.html %}

<div class="banner" data-variant="events" id="top">
{% include banner-events.html %}
</div>

<div class="page-title">
<h1>Events</h1>

<nav>
<button>North America</button>
<button>South America</button>
<button>Europe</button>
<button>Asia</button>
</nav>
<div>
<label for="pet-select">Location</label>
<select name="pets" id="pet-select">
<option value="all" selected>All</option>
<option value="north-america">North America</option>
<option value="south-america">South America</option>
<option value="europe">Europe</option>
<option value="asia">Asia</option>
</select>

<label for="pet-select">Genre</label>
<select name="pets" id="pet-select">
<option value="all" selected>All</option>
<option value="north-america">Multigenre</option>
<option value="south-america">Hardstyle</option>
<option value="europe">Hardcore</option>
<option value="asia">Uptempo</option>
</select>
</div>
</div>

<ol class="event-list">
Expand Down Expand Up @@ -74,6 +91,8 @@ <h1>Events</h1>
{% endfor %}
</ol>

{% include footer.html %} {% include dialog.html %}

<script>
document.addEventListener("DOMContentLoaded", function () {
// Select all images
Expand Down
153 changes: 153 additions & 0 deletions _sass/_banner.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
.banner {
background-repeat: no-repeat;
background-position: center;
background-size: cover;

&[data-variant="events"] {
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
}

// #region Events
.banner-events-logo {
fill: var(--color-text);
width: 42.5%;
}

.banner-events-globe {
width: 15%;
aspect-ratio: 1/1;
position: relative;

> canvas {
border-radius: 50%;
width: 120%;
aspect-ratio: 1/1;
contain: layout paint size;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

&::before,
&::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
}

// Shadow
&::before {
width: 200%;
height: 200%;
background: radial-gradient(circle at center, black 30%, transparent 70%);
}

// Pulse
&::after {
width: 100%;
height: 100%;
z-index: -1;

@media (prefers-reduced-motion: no-preference) {
animation: pulse 1.6s infinite;
}
@media (prefers-reduced-motion: no-preference) {
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 white;
}

70% {
box-shadow: 0 0 0 6vh rgba(0, 0, 0, 0);
}

100% {
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
}
}
}
}
}

@function multiple-box-shadow($n) {
$value: "#{random(2000)}px #{random(2000)}px #FFF";
@for $i from 2 through $n {
$value: "#{$value}, #{random(2000)}px #{random(2000)}px #FFF";
}
@return unquote($value);
}

$shadows-small: multiple-box-shadow(700);
$shadows-medium: multiple-box-shadow(200);
$shadows-big: multiple-box-shadow(100);

.banner-events-stars {
width: 1px;
height: 1px;
background: transparent;
animation: animStar 50s linear infinite;
position: absolute;
inset: 0;

&:after {
content: " ";
position: absolute;
top: 2000px;
width: 1px;
height: 1px;
background: transparent;
}

&[data-variant="1"] {
box-shadow: $shadows-small;

&:after {
box-shadow: $shadows-small;
}
}

&[data-variant="2"] {
width: 2px;
height: 2px;
box-shadow: $shadows-medium;
animation-duration: 100s;

&:after {
width: 2px;
height: 2px;
box-shadow: $shadows-medium;
}
}

&[data-variant="3"] {
width: 3px;
height: 3px;
box-shadow: $shadows-big;
animation-duration: 150s;

&:after {
width: 3px;
height: 3px;
box-shadow: $shadows-big;
}
}
}

@keyframes animStar {
from {
transform: translateY(0px);
}
to {
transform: translateY(-2000px);
}
}
// #endregion Events
72 changes: 72 additions & 0 deletions _sass/_dialog.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
dialog {
display: block;
position: fixed;
inset: 0;
min-height: 100vh;
min-height: 100dvh;
max-height: 100vh;
max-height: 100dvh;
min-width: 100vw;
min-width: 100dvw;
max-width: 100vw;
max-width: 100dvw;
border: none;
overscroll-behavior: none;
background-color: var(--color-background-backdrop);
z-index: 3;
transform: scale(1);
transition: opacity var(--duration) ease-out,
transform var(--duration) ease-out;

&:not([open]) {
pointer-events: none;
opacity: 0;
transform: scale(0.85);
transition-timing-function: ease-in;
}
}

.dialog-header {
background-color: red !important;
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
display: flex;
align-items: center;
justify-content: space-between;
height: var(--header-height);
position: sticky;
inset: 0 0 auto 0;
background-color: var(--color-background);
@supports (backdrop-filter: saturate(180%) blur(20px)) {
background-color: hsl(var(--color-background-hsl) / 0.8);
backdrop-filter: saturate(180%) blur(20px);
}
@media (forced-colors: active) {
background-color: var(--color-background);
backdrop-filter: none;
}

svg {
width: 50%;
height: 50%;
fill: currentColor;
@media (forced-colors: active) {
fill: LinkText;
}
}

> button,
> a {
aspect-ratio: 1/1;
background-color: transparent;
border: none;
display: flex;
align-items: center;
justify-content: center;
outline-offset: calc(var(--border-width) * -2);

&:hover {
background-color: var(--color-background-hover);
}
}
}
5 changes: 0 additions & 5 deletions _sass/_event-banner.scss

This file was deleted.

Loading

0 comments on commit cb0bad5

Please sign in to comment.