front page redesign: progressive enhancement for no-JS

redesign-v2-active-buttons
Ryan Barrett 2023-12-26 10:08:32 -08:00
rodzic e98fc447df
commit 34173b2e22
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
3 zmienionych plików z 5 dodań i 8 usunięć

Wyświetl plik

@ -113,13 +113,6 @@ pre .value, code .value, code.value {
box-shadow: 0 0 .5em 1.5em var(--fg);
}
#front-form {
margin-bottom: 0;
padding-bottom: 2em;
background-color: transparent; /* topology animation is behind */
box-shadow: none;
}
.text-outline {
text-shadow: -2px -2px 0 var(--bg), 2px -2px 0 var(--bg), -2px 2px 0 var(--bg), 2px 2px 0 var(--bg);
/* this is easier and supported in major browsers but draws the outline *inside*

Wyświetl plik

@ -166,6 +166,10 @@ let sketch = function(p) {
let myQ5Sketch = new p5(sketch, document.getElementById('topology'));
// canvas is behind #front-form
const frontForm = document.getElementById('front-form');
frontForm.style.backgroundColor = 'transparent';
frontForm.style.boxShadow = 'none';
// tried setting this inside the sketch with p.windowResized = ...
// but that didn't work.

Wyświetl plik

@ -6,7 +6,7 @@
<script src="/static/bootstrap.min.js"></script>
<script src="/static/index.js"></script>
<div id="front-form" class="front-dark">
<div id="front-form" class="row front-dark">
<div id="topology" style="position: absolute; top: 0; left: 0"></div>
<div id="front-tagline" class="row bigger">