Browse Source

Add logo by @SecularSteve, fixes #9

Sunny 2 years ago
parent
commit
41e8b80e4e
4 changed files with 18 additions and 2 deletions
  1. 5 0
      assets/icon.svg
  2. 8 0
      assets/style.css
  3. 1 1
      config/config.php
  4. 4 1
      elements/header.php

+ 5 - 0
assets/icon.svg

@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 43">
+  <path fill="currentColor" d="M25 0 0 43h43L68 0H25Z"/>
+  <path fill="currentColor" d="M75 0 50 43h25V0Z" opacity=".5"/>
+  <path fill="currentColor" d="M75 0v43h25L75 0Z"/>
+</svg>

+ 8 - 0
assets/style.css

@@ -149,6 +149,10 @@ a {
   text-decoration: initial;
 }
 
+#icon {
+  height: 12px;
+}
+
 ::selection {
   background: var(--color);
   color: var(--background);
@@ -166,4 +170,8 @@ a {
     --background: black;
     --color: white;
   }
+
+  #icon {
+    filter: invert(1);
+  }
 }

+ 1 - 1
config/config.php

@@ -9,7 +9,7 @@
     "title" => "Tent",
 
     // A line of text displayed in the footer. May contain HTML. No default.
-    "text" => "© 2023-present, <a href=\"https://sny.sh/\">Sunny</a>. Not affiliated with <a href=\"https://bandcamp.com/\">Bandcamp</a>. Running commit <a href=\"" . $link . "\">" . $text . "</a>.",
+    "text" => "Tent © <a href=\"https://sny.sh/\">Sunny</a> and contributors, Tent's logo © SecularSteve. Not affiliated with <a href=\"https://bandcamp.com/\">Bandcamp</a>. Running commit <a href=\"" . $link . "\">" . $text . "</a>.",
 
     // Contents of the identity cookie when logged in to Bandcamp. Allows access to higher quality audio files. No default.
     "identity" => null

+ 4 - 1
elements/header.php

@@ -16,12 +16,15 @@
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title><?= $title ?></title>
+    <link rel="icon" href="asset.php?file=icon.svg">
     <link rel="stylesheet" href="asset.php?file=style.css">
   </head>
   <body>
     <header>
       <div class="wrapper">
-        <a href="."><?= $config["title"] ?></a>
+        <a href=".">
+          <img id="icon" src="asset.php?file=icon.svg">
+        </a>
         <form action="search.php">
           <input name="query" placeholder="Search..." required>
         </form>