From 77a99ba71e89dbcbceb061fb3125492c67aad27c Mon Sep 17 00:00:00 2001 From: Jon Andre Briones Date: Tue, 9 Dec 2025 15:07:40 -0800 Subject: [PATCH] feat: added mountain madness 2025 * commented out the information sections * changed the date for the event * changed the register button to "coming soon" * changed the CSSS home button to the logo * restyled the top bar to use flexbox * removed a lot of code that wasn't being used --- public/madness/2025/index.css | 538 ++++++++++++++++++++++++ public/madness/2025/index.html | 297 +++++++++++++ public/static/icons/csss_logo.raw.svg | 62 +++ public/static/icons/csss_logo.svg | 63 +-- public/static/icons/csss_logo_white.svg | 1 + 5 files changed, 899 insertions(+), 62 deletions(-) create mode 100644 public/madness/2025/index.css create mode 100755 public/madness/2025/index.html create mode 100644 public/static/icons/csss_logo.raw.svg create mode 100644 public/static/icons/csss_logo_white.svg diff --git a/public/madness/2025/index.css b/public/madness/2025/index.css new file mode 100644 index 00000000..9413f06b --- /dev/null +++ b/public/madness/2025/index.css @@ -0,0 +1,538 @@ +html { + margin: 0; + padding: 0; + width: 100vw; + max-width: 100%; +} + +body { + --hill-width: 40vw; + --hill-height: 50vh; + --hill-padding: 5vh; + --hill-shadow: #0d5; + --hill-shadow: #002805; + --hill-color: #22ff77; + --hill-color: #004208; + --sky-color: #2277ff; + --sky-color: #001c1f; + --sky-color: #000c0f; + --cloud-color: #ccc; + --red: #550400; + --red: #880500; + --darkred: #330300; + --darkred: #550500; + --lightred: #aa1500; + margin: 0; + padding: 0; + width: 100%; + font-family: sans-serif; + background: linear-gradient( + to right, + var(--hill-shadow) 3px, + var(--hill-color) 3px, + var(--hill-color) calc(100vw - 42px), + var(--hill-shadow) calc(100vw - 42px) + ); + background: var(--hill-color); +} + +p { + line-height: 1.5; + max-width: 100%; +} + +table { + font-size: 1rem; +} + +table * { + font-size: inherit; +} + +body * { + box-sizing: border-box; +} + +#above-fold::before { + content: ''; + position: absolute; + top: 0; + width: 100%; + height: 100vh; + z-index: -3; + background-color: black; + background-image: + radial-gradient(white 3px, transparent 2px), radial-gradient(white 1px, transparent 2px), + radial-gradient(rgba(255, 255, 255, 0.5) 2px, transparent 2px), + linear-gradient(transparent 100vh, var(--hill-color) 100vh, var(--hill-color) 150vh); + background-size: + 550px 550px, + 350px 350px, + 250px 250px, + 150px 150px; + background-position: + 0 0, + 40px 60px, + 130px 270px, + 70px 100px; +} + +#above-fold { + width: 100%; + min-height: 100vh; + display: flex; + flex-flow: column nowrap; + align-items: center; + margin: 0; +} + +.btn, +button { + display: inline-block; + padding: 12px 12px 10px 12px; + font-size: inherit; + font-weight: 700; + color: white; + background: var(--red); + white-space: nowrap; + border: none; + text-align: center; + /* TODO: Uncomment me when enabling the button */ + /* cursor: pointer; */ + font-size: 1em; + box-shadow: 0 6px 0 var(--darkred); + transition: + box-shadow 0.2s, + color 0.2s, + background 0.2s; +} + +/* TODO: Uncomment me when enabling the button */ +/* .btn:focus, */ +/* button:focus, */ +/* .btn:hover, */ +/* button:hover { */ +/* background: var(--lightred); */ +/* } */ +/**/ +/* .btn:active, */ +/* button:active { */ +/* background: var(--darkred); */ +/* } */ + +header { + text-align: center; + color: white; + margin: auto 0; +} + +header > h2, +header > h3, +header > h4 { + text-shadow: 1px 1px 1px black; +} + +header > h1 { + text-transform: uppercase; + letter-spacing: 0.2rem; + margin: 1rem 0; + font-family: Bungee; + font-size: 2rem; + text-shadow: 0 5px 0 black; +} + +header > h3 { + font-size: 1.5rem; +} + +header > h4 { + font-weight: 400; + margin: 0 0 2rem 0; +} + +header > h4 b { + font-weight: 800; +} + +#building { + position: relative; + z-index: -2; + margin: 3em 0 0 0; + min-width: 90px; + width: 20vw; + max-width: 125px; + height: 70px; + background: gray; + box-shadow: + inset -20px 0 0 gray, + 10px 0px 0 #444; +} + +#building::before { + background: var(--red); + content: 'SFU'; + font-size: 1rem; + color: white; + position: relative; + top: -6px; + left: 52.5px; + left: calc(100% - 50px); + width: 50px; + height: 70px; + padding: 5px 5px 0px 5px; +} + +#mountain { + border-top-left-radius: 30%; + border-top-right-radius: 30%; + border-right: 30px solid var(--hill-shadow); + border-left: 3px solid var(--hill-shadow); + position: relative; + z-index: -2; + display: flex; + flex-flow: row wrap; + justify-content: space-around; + align-content: flex-start; + padding-top: var(--hill-padding); + min-width: 320px; + width: 100%; + min-height: calc(var(--hill-height) + 1em); + background: var(--hill-color); +} + +.grass { + position: relative; + border-top-left-radius: 30%; + border-top-right-radius: 30%; + width: 100%; + height: 100%; + width: 2rem; + height: 5rem; + background: + linear-gradient(315deg, var(--hill-shadow) 25%, transparent 25%), + linear-gradient(45deg, var(--hill-shadow) 25%, transparent 25%); + background-color: var(--hill-color); + background-position: 0 0; + background-position: bottom left; +} + +.grass:nth-child(1) { + top: 5em; + right: 0em; +} + +.grass:nth-child(2) { + top: 0em; + right: 1em; +} + +.grass:nth-child(3) { + top: 7em; + left: 1em; +} + +#clouds-container { + overflow-x: hidden; + position: absolute; + z-index: -2; + width: 100%; + top: 0; + margin-top: 8vh; +} + +@keyframes cross { + 0% { + left: 100%; + } + 100% { + left: -100%; + } +} + +.clouds { + --width: 5vmax; + --height: calc(var(--width) / 2); + margin-top: 30vh; + width: 100%; + opacity: 0.8; + display: flex; + justify-content: space-between; + position: relative; + z-index: 5; + animation: cross 120s infinite linear; +} + +.cloud { + background: var(--cloud-color); + width: var(--width); + height: var(--height); + border-radius: calc(var(--width) / 3); + position: relative; +} + +.cloud::after { + content: ''; + position: absolute; + background: var(--cloud-color); + height: calc(var(--width) / 3); + width: calc(var(--width) / 3); + border-radius: 50%; + top: calc(var(--height) / -5); + left: calc(var(--height) / 6); +} + +.cloud::before { + content: ''; + position: absolute; + background: var(--cloud-color); + height: calc(var(--width) / 2); + width: calc(var(--width) / 2); + border-radius: 50%; + top: calc(var(--height) / -2); + left: calc(var(--width) / 3); +} + +.clouds:nth-child(even) { + --width: 10vmax; + animation: cross 50s infinite linear; +} + +.clouds:nth-child(even) > .cloud:nth-child(odd) { + top: -20vh; +} + +.clouds > .cloud:nth-child(odd) { + top: -15vh; +} + +#info-container { + background: var(--hill-color); + background: linear-gradient(to bottom, var(--hill-color) 10%, #0a1f0a 40%, #0a0a10 100%); + background: linear-gradient(to bottom, var(--hill-color) 10%, #0a1f0a 40%); + + color: white; +} + +#info-container > article { + padding: 1em 0; +} + +#info-container > article > div { + flex: 0 0 auto; + margin-left: 1em; + margin-right: 1em; +} + +#info-container > article h2 { + text-align: center; +} + +#sponsors > .btn { + text-align: center; +} + +/* if have more sponsors, add sponsors here too */ +#schedule, +#prize, +#sponsors { + display: flex; + flex-flow: row wrap; + justify-content: center; + max-width: 100%; +} + +/* new layout: single column*/ +.center { + box-sizing: content-box; + display: block; + margin: 0 auto; +} + +.stack > * + * { + margin-block-start: 2rem; +} + +#schedule div, +#prize div, +#sponsors div { + max-width: calc(100% - 2em); + margin-left: 1em; + margin-right: 1em; +} + +table td { + padding: 0.5em 0; + max-width: 45%; +} + +#schedule > h2, +#schedule > h3, +#faq > h2, +#prize > h2, +#sponsors > h2 { + flex: 1 0 100%; +} + +.forest { + position: relative; + display: flex; + z-index: 99999; + flex-flow: row nowrap; + justify-content: space-around; + align-items: space-around; + max-width: 95vw; + height: calc(var(--trunk-height) + var(--foliage-height)); + overflow: hidden; +} + +.tree { + --trunk-width: 1vmax; + --trunk-height: 2vmax; + --foliage-width: 3vmax; + --foliage-height: 5vmax; + flex: 1 0 auto; + margin: var(--foliage-height) var(--foliage-width) var(--trunk-height) var(--foliage-width); +} + +.tree::before { + content: ''; + position: absolute; + background: brown; + box-shadow: -3px 0 0 inset #533; + width: var(--trunk-width); + height: var(--trunk-height); +} + +.tree::after { + content: ''; + position: absolute; + width: var(--foliage-width); + height: var(--foliage-height); + margin-left: calc(var(--foliage-width) / -2 + var(--trunk-width) / 2); + margin-top: calc(-1 * var(--foliage-height)); + clip-path: polygon(50% 0%, 95% 60%, 75% 60%, 100% 100%, 0 100%, 25% 60%, 5% 60%); + background: green; + background: var(--hill-shadow); +} + +.home { + padding: 0.1rem; +} + +.home > object { + width: 2rem; + pointer-events: none; +} + +#nav-links { + background: rgba(255, 255, 255, 0.1); + width: 100%; + display: flex; + padding: 0.4rem; + gap: min(1.5rem, 5vw); + align-items: center; +} + +#nav-links a { + color: white; + transition: text-shadow 0.2s; +} + +#nav-links a:hover { + text-shadow: 0 0 5px grey; +} + +#schedule h3 { + flex: 1 0 100%; + text-align: center; +} + +th { + text-align: left; +} + +td:first-child { + text-align: right; + font-weight: 700; + padding-right: 1em; +} + +a { + text-decoration: none; + color: inherit; +} + +h2 > a { + transition: + box-shadow 0.2s, + background 0.2s, + color 0.2s; + padding: 7px 5px 5px 5px; +} + +#join-discord { + font-weight: lighter; +} + +#join-discord a { + font-weight: bold; + text-decoration: underline white; +} + +a > img { + max-width: calc(100% - 4em); + height: auto; + background: white; + filter: grayscale(100%); + opacity: 0.8; + transition: + opacity 0.2s, + filter 0.2s; +} + +#mobify-logo { + width: 100%; +} + +a:hover > img { + filter: none; + opacity: 1; +} + +@media (max-width: 770px) { + article > div { + padding: 0 2rem; + } +} + +@media (min-width: 770px) { + header > h1 { + font-size: calc(100vw / 24); + font-size: 4rem; + text-shadow: 0 10px 0 black; + } + #info-container > article { + max-width: 500px; + } + #mountain { + max-width: 500px; + } +} + +footer { + display: flex; + flex-flow: row wrap; + justify-content: center; + align-items: baseline; +} + +footer a { + font-size: 1rem; + color: white; + text-decoration: none; + transition: text-shadow 0.2s; +} + +footer p { + color: white; +} diff --git a/public/madness/2025/index.html b/public/madness/2025/index.html new file mode 100755 index 00000000..fd880768 --- /dev/null +++ b/public/madness/2025/index.html @@ -0,0 +1,297 @@ + + + + Mountain Madness 2024 + + + + + + + + + + +
+
+

The CSSS presents...

+

Mountain Madness

+

Feb 28th - March 1st, 2025

+

at the Simon Fraser University Burnaby Mountain Campus

+

+ Coming Soon +

+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/static/icons/csss_logo.raw.svg b/public/static/icons/csss_logo.raw.svg new file mode 100644 index 00000000..846fd449 --- /dev/null +++ b/public/static/icons/csss_logo.raw.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + diff --git a/public/static/icons/csss_logo.svg b/public/static/icons/csss_logo.svg index 846fd449..a36465c9 100644 --- a/public/static/icons/csss_logo.svg +++ b/public/static/icons/csss_logo.svg @@ -1,62 +1 @@ - - - - - - - - - - - - + diff --git a/public/static/icons/csss_logo_white.svg b/public/static/icons/csss_logo_white.svg new file mode 100644 index 00000000..64279224 --- /dev/null +++ b/public/static/icons/csss_logo_white.svg @@ -0,0 +1 @@ +