Moved 2021.css to assets folder and fixed header-bgs.json.

This commit is contained in:
flash 2023-05-28 18:34:43 +00:00
parent 6960a14d9d
commit 406a8e28f1
7 changed files with 14 additions and 14 deletions

View file

@ -71,8 +71,8 @@ $router->use('/', function($response) {
$response->setPoweredBy('Makai+Index'); $response->setPoweredBy('Makai+Index');
}); });
$router->get('/header-bgs.json', function() { $router->get('/header-bgs.json', function() use ($ctx) {
return json_encode(FM_BGS); return $ctx->getDefaultHeaders();
}); });
$router->get('/now-listening', function() use ($ctx) { $router->get('/now-listening', function() use ($ctx) {

View file

@ -144,7 +144,7 @@ $self->block('container', function($self) {
<div class="ascii-wrap"> <div class="ascii-wrap">
<div class="ascii-search"> <div class="ascii-search">
<div class="ascii-search-box"> <div class="ascii-search-box">
<input type="search" id="search" placeholder="Filter..." autocomplete="off"/> <input type="search" id="search" placeholder="Filter..." autocomplete="off">
</div> </div>
<div class="ascii-search-hint js-invisible-on-scroll"> <div class="ascii-search-hint js-invisible-on-scroll">
Type <em><code>printable</code></em> for all printable characters, or <em><code>control</code></em> for all control characters. Type <em><code>printable</code></em> for all printable characters, or <em><code>control</code></em> for all control characters.

View file

@ -6,7 +6,7 @@ $self->block('container', function($self) {
<div class="http-error"> <div class="http-error">
<h2 class="http-error-head"><?=($self->http_error_title ?? ('Unknown Error #' . $self->http_error_code));?></h2> <h2 class="http-error-head"><?=($self->http_error_title ?? ('Unknown Error #' . $self->http_error_code));?></h2>
<?php if(isset($self->http_error_image)): ?> <?php if(isset($self->http_error_image)): ?>
<img src="<?=$self->http_error_image;?>" alt="<?=$self->http_error_image;?>" class="http-error-image"/> <img src="<?=$self->http_error_image;?>" alt="<?=$self->http_error_image;?>" class="http-error-image">
<?php endif; ?> <?php endif; ?>
<div class="http-error-desc"><?=($self->http_error_desc ?? 'No additional information is available.');?></div> <div class="http-error-desc"><?=($self->http_error_desc ?? 'No additional information is available.');?></div>
</div> </div>

View file

@ -38,7 +38,7 @@ $self->block('container', function($self) {
</div> </div>
<form class="php-search" method="get" action="https://duckduckgo.com/"> <form class="php-search" method="get" action="https://duckduckgo.com/">
<div class="php-search-input"> <div class="php-search-input">
<input type="search" name="q" placeholder="Search using DuckDuckGo..."/> <input type="search" name="q" placeholder="Search using DuckDuckGo...">
</div> </div>
</form> </form>
</div> </div>

View file

@ -1,17 +1,17 @@
<!doctype html> <!doctype html>
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8">
<title><?=($self->header_title ?? 'flash.moe');?></title> <title><?=($self->header_title ?? 'flash.moe');?></title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="/css/2021.css" type="text/css" rel="stylesheet"/> <link href="/assets/2021.css" type="text/css" rel="stylesheet">
<link href="/assets/sprite.css" type="text/css" rel="stylesheet"/> <link href="/assets/sprite.css" type="text/css" rel="stylesheet">
<link href="/assets/fonts/electrolize/style.css" type="text/css" rel="stylesheet"/> <link href="/assets/fonts/electrolize/style.css" type="text/css" rel="stylesheet">
</head> </head>
<body class="<?php if(isset($self->header_is_index)) { echo 'index ';} if(isset($self->header_full)) { echo 'fullscreen-header ';} if(isset($self->header_now_playing)) { echo 'now-playing ';} if(isset($self->header_minimal)) { echo 'header-minimal ';} ?>"> <body class="<?php if(isset($self->header_is_index)) { echo 'index ';} if(isset($self->header_full)) { echo 'fullscreen-header ';} if(isset($self->header_now_playing)) { echo 'now-playing ';} if(isset($self->header_minimal)) { echo 'header-minimal ';} ?>">
<div class="header"> <div class="header">
<div class="header-background"> <div class="header-background">
<img src="<?=($self->header_bgs[array_rand($self->header_bgs)]);?>" alt=""/> <img src="<?=($self->header_bgs[array_rand($self->header_bgs)]);?>" alt="">
</div> </div>
<div class="header-foreground"<?php if(isset($self->header_offset) && $self->header_offset > 0) echo " style=\"padding-bottom: {$self->header_offset}px\""; ?>> <div class="header-foreground"<?php if(isset($self->header_offset) && $self->header_offset > 0) echo " style=\"padding-bottom: {$self->header_offset}px\""; ?>>
<a class="header-logo" href="/"> <a class="header-logo" href="/">
@ -24,7 +24,7 @@
<a href="/now-listening"><div class="fmi fmi-music"></div></a> <a href="/now-listening"><div class="fmi fmi-music"></div></a>
</div> </div>
<div class="header-now-playing-cover"> <div class="header-now-playing-cover">
<img src="//now.flash.moe/resources/no-cover.png" alt=""/> <img src="//now.flash.moe/resources/no-cover.png" alt="">
</div> </div>
<div class="header-now-playing-details"> <div class="header-now-playing-details">
<div class="header-now-playing-title"><a href="#" target="_blank" rel="noopener"></a></div> <div class="header-now-playing-title"><a href="#" target="_blank" rel="noopener"></a></div>

View file

@ -11,8 +11,8 @@ $self->block('container', function($self) {
?> ?>
<div class="whois-container"> <div class="whois-container">
<form class="whois-lookup-form" method="get" action=""> <form class="whois-lookup-form" method="get" action="">
<input class="whois-lookup-form-input" type="text" name="domain" placeholder="Enter a domain or IP address to look up!" value="" id="lookup-input"/> <input class="whois-lookup-form-input" type="text" name="domain" placeholder="Enter a domain or IP address to look up!" value="" id="lookup-input">
<input class="whois-lookup-form-submit" type="submit" value="Look up" id="lookup-submit"/> <input class="whois-lookup-form-submit" type="submit" value="Look up" id="lookup-submit">
</form> </form>
<div class="whois-result-container"> <div class="whois-result-container">