Add MVLog favicon
This commit is contained in:
parent
289f57d0c0
commit
9b29203929
4 changed files with 34 additions and 3 deletions
31
assets/img/favicon.svg
Normal file
31
assets/img/favicon.svg
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="80" y1="40" x2="430" y2="470" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#1B1E22"/>
|
||||
<stop offset="0.55" stop-color="#111315"/>
|
||||
<stop offset="1" stop-color="#26383A"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="film" x1="88" y1="124" x2="424" y2="388" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#3BA7A0"/>
|
||||
<stop offset="1" stop-color="#C46A3A"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-20%" y="-20%" width="140%" height="140%">
|
||||
<feDropShadow dx="0" dy="18" stdDeviation="18" flood-color="#000" flood-opacity="0.45"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="512" height="512" rx="112" fill="url(#bg)"/>
|
||||
<circle cx="256" cy="256" r="184" fill="none" stroke="#3BA7A0" stroke-width="12" opacity="0.55"/>
|
||||
<path d="M128 160c0-20 16-36 36-36h184c20 0 36 16 36 36v192c0 20-16 36-36 36H164c-20 0-36-16-36-36V160Z" fill="#111315" stroke="url(#film)" stroke-width="18" filter="url(#shadow)"/>
|
||||
<g fill="#F3F4F6" opacity="0.92">
|
||||
<rect x="154" y="157" width="34" height="34" rx="7"/>
|
||||
<rect x="154" y="225" width="34" height="34" rx="7"/>
|
||||
<rect x="154" y="293" width="34" height="34" rx="7"/>
|
||||
<rect x="324" y="157" width="34" height="34" rx="7"/>
|
||||
<rect x="324" y="225" width="34" height="34" rx="7"/>
|
||||
<rect x="324" y="293" width="34" height="34" rx="7"/>
|
||||
</g>
|
||||
<path d="M222 178v156l112-78-112-78Z" fill="#C46A3A"/>
|
||||
<path d="M222 178v156l112-78-112-78Z" fill="none" stroke="#F3F4F6" stroke-width="10" stroke-linejoin="round" opacity="0.92"/>
|
||||
<path d="M112 414h288" stroke="#3BA7A0" stroke-width="14" stroke-linecap="round" opacity="0.85"/>
|
||||
<text x="256" y="455" text-anchor="middle" font-family="Arial Black,Arial,sans-serif" font-size="46" letter-spacing="6" fill="#F3F4F6">MV</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
|
|
@ -86,7 +86,7 @@ usort($videos, function($a, $b) use ($videoCache) {
|
|||
});
|
||||
$page=max(1,(int)($_GET['page']??1)); $per=$config['items_per_page']; $total=count($videos); $pages=max(1,(int)ceil($total/$per)); $page=min($page,$pages); $slice=array_slice($videos,($page-1)*$per,$per);
|
||||
?>
|
||||
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>MVLog</title><link rel="alternate" type="application/rss+xml" title="MVLog RSS" href="feed.php"><link rel="stylesheet" href="style.css"></head><body>
|
||||
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>MVLog</title><link rel="alternate" type="application/rss+xml" title="MVLog RSS" href="feed.php"><link rel="icon" type="image/svg+xml" href="assets/img/favicon.svg"><link rel="stylesheet" href="style.css"></head><body>
|
||||
<header class="site-header"><a class="brand" href="index.php"><h1>MVLog</h1><p>Bubulescu.Org</p></a><a class="rss-link" href="feed.php" aria-label="RSS feed" title="RSS feed"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6.2 17.8a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM2.2 8.7v3.1a10 10 0 0 1 10 10h3.1A13.1 13.1 0 0 0 2.2 8.7Zm0-5.5v3.1a15.5 15.5 0 0 1 15.5 15.5h3.1A18.6 18.6 0 0 0 2.2 3.2Z"/></svg></a></header><main>
|
||||
<section id="videos"><?php if(!$slice): ?><p>No videos yet.</p><?php endif; ?><div class="video-list">
|
||||
<?php foreach($slice as $v): $name=basename($v); $url=$config['public_videos'].'/'.rawurlencode($name); $m=$videoCache[$name]['metadata'] ?? video_metadata($v); ?>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
}
|
||||
function h($s){ return htmlspecialchars((string)$s, ENT_QUOTES, 'UTF-8'); }
|
||||
?>
|
||||
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>MVLog Login</title><link rel="stylesheet" href="style.css"></head><body>
|
||||
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>MVLog Login</title><link rel="icon" type="image/svg+xml" href="assets/img/favicon.svg"><link rel="stylesheet" href="style.css"></head><body>
|
||||
<header class="site-header"><a class="brand" href="index.php"><h1>MVLog Admin</h1><p>Bubulescu.Org</p></a></header>
|
||||
<main><section><h2>Log in</h2><?php if($err): ?><div class="err"><?=h($err)?></div><?php endif; ?><form method="post" autocomplete="on"><input type="hidden" name="next" value="<?=h($next)?>"><label>Username<input name="user" autocomplete="username" required autofocus></label><label>Password<input type="password" name="password" autocomplete="current-password" required></label><button type="submit">Log in</button></form></section></main>
|
||||
</body></html>
|
||||
|
|
|
|||
2
new.php
2
new.php
|
|
@ -157,7 +157,7 @@ $editName = $_GET['edit'] ?? '';
|
|||
$editDir = null; $editData = ['title'=>'','date'=>'','place'=>'','description'=>'','captions'=>[]]; $editFiles = [];
|
||||
if ($editName !== '') { try { $editDir = safe_input_dir($config['uploads_dir'], $editName); $editData = read_data($editDir); $editFiles = list_files($editDir); } catch (Throwable $e) { $err = $e->getMessage(); } }
|
||||
?>
|
||||
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Admin - <?=h($config['site_name'])?></title><link rel="stylesheet" href="style.css"></head><body>
|
||||
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Admin - <?=h($config['site_name'])?></title><link rel="icon" type="image/svg+xml" href="assets/img/favicon.svg"><link rel="stylesheet" href="style.css"></head><body>
|
||||
<header class="site-header admin-header"><nav class="tabs"><a class="<?= $tab==='new'?'active':'' ?>" href="new.php?tab=new">New</a><a class="<?= $tab==='edit'?'active':'' ?>" href="new.php?tab=edit">Edit</a><a class="<?= $tab==='videos'?'active':'' ?>" href="new.php?tab=videos">Videos</a></nav><a class="brand" href="index.php"><h1>MVLog Admin</h1><p>Bubulescu.Org</p></a><a class="logout-link" href="logout.php">Log off</a></header><main>
|
||||
<?php if($msg): ?><div class="ok"><?=h($msg)?></div><?php endif; ?><?php if($err): ?><div class="err"><?=h($err)?></div><?php endif; ?>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue