Let there be code!

This commit is contained in:
Dale Davies
2022-02-04 09:53:55 +00:00
commit 46fffeb46e
35 changed files with 1297 additions and 0 deletions

11
web/background-css.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
// Provided by composer for psr-4 style autoloading.
require __DIR__ .'/vendor/autoload.php';
$config = new Jump\Config();
$backgroundfile = (new Jump\Background($config))->get_random_background_file();
$backgroundgradient = 'linear-gradient(to bottom, #FC466B40, #425df530)';
header('Content-Type: text/css');
echo '.background {background-image: '.$backgroundgradient.', url("'.$backgroundfile.'");}';