mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2026-04-13 09:49:39 +02:00
In this PR we move all of the CSS and JavaScript assets from the public assets directory to a new directory in the project root. The main reason for this is that I would like to believe this makes them easier to find. Since all CSS and JS is bundled with each page anyways there is no need to access these directly from a public directory. The main argument against this I think would be "transparency". We already run this site with `display_php_source=true` in Vegvisir (so page source code can be inspected by appending `.php` to the end of a url. But there is of course no reason to trust that it's the actual source code. Reviewed-on: https://codeberg.org/vlw/vlw.se/pulls/72
26 lines
847 B
PHP
26 lines
847 B
PHP
<?php
|
|
|
|
enum RGB: string {
|
|
case WORK = "3,255,219";
|
|
case ABOUT = "148,255,21";
|
|
case CONTACT = "255,195,255";
|
|
}
|
|
|
|
?>
|
|
<?= VV::css("assets/css/pages/index") ?>
|
|
<div class="menu">
|
|
<?= VV::embed("public/assets/media/line.svg") ?>
|
|
<menu>
|
|
<a href="/work"><li data-rgb="<?= RGB::WORK->value ?>" data-hue="90">work</li></a>
|
|
<a href="/about"><li data-rgb="<?= RGB::ABOUT->value ?>" data-hue="390">about</li></a>
|
|
<a href="/contact"><li data-rgb="<?= RGB::CONTACT->value ?>" data-hue="200">contact</li></a>
|
|
</menu>
|
|
<?= VV::embed("public/assets/media/line.svg") ?>
|
|
<button class="email">
|
|
<p>victor@vlw.se</p>
|
|
<p class="cta">to copy</p>
|
|
</button>
|
|
</div>
|
|
|
|
<img src="/assets/media/gazing.jpg" alt="A portrait of Victor with a pair of cartoon glasses drawn in the shape of two V's over his eyes"/>
|
|
<?= VV::js("assets/js/pages/index") ?>
|