summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2026-05-11 19:06:56 +0200
committerWriterV2 <primary-v2@protonmail.com>2026-05-11 19:06:56 +0200
commit19223f40bfc0b8395e476c9d413e9e9903bd073a (patch)
treefb0f36963bb900317f888084b4a2dd1df43f7aad
parentfa0f57d719dee5f3a34a03f660e9db0084e03f74 (diff)
Add logo
-rw-r--r--LICENSE7
-rw-r--r--src/page.rs25
2 files changed, 32 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..6fc10f5
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,7 @@
+Copyright 2026 Vithuran Vishnuthas
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/src/page.rs b/src/page.rs
index 6f3331f..e473c4d 100644
--- a/src/page.rs
+++ b/src/page.rs
@@ -11,15 +11,32 @@ pub trait Page: Sized {
(DOCTYPE)
meta charset="utf-8";
meta name="viewport" content="width=device-width,initial-scale=1";
+ link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=";
title { (Self::page_title()) }
}
)
}
+ fn logo_svg(height_px: f32) -> Markup {
+ html!(
+ svg xmlns="http://www.w3.org/2000/svg" width=(height_px * 0.707_070_7) height=(height_px) viewBox="0 0 210 297" {
+ path d="m143.17 118.01 19.018 30.905-33.758-.951zM66.41 118.01 47.39 148.915l33.758-.951z" style="opacity:.5;fill:#000;fill-opacity:1;stroke:#000;stroke-width:5.76727" transform="matrix(1.081 0 0 1.081 -10.214 -40)"{}
+ path d="M193.13 62.963s.92 3.455 0 4.74c-3.708 5.173-13.105 2.168-18.081 6.136-24.12 19.233-36.92 50.23-48.505 78.822-10.285 25.384-17.792 80.217-17.792 80.217h-6.274s-9.022-55.018-19.557-80.566c-11.655-28.264-24.145-58.718-47.478-78.473-4.225-3.577-12.324-1.556-15.432-6.136-.887-1.308 0-4.74 0-4.74" aria-label="V" style="font-size:251.905px;font-family:&quot;Liberation Serif&quot;;-inkscape-font-specification:&quot;Liberation Serif&quot;;opacity:1;fill:none;fill-opacity:1;stroke:#000;stroke-width:4.62538498;stroke-dasharray:none" transform="matrix(1.081 0 0 1.081 -10.214 -40)"{}
+ path d="M35.723 73.988h135.413v75.733H35.723v86.553h135.413" style="opacity:1;fill:none;fill-opacity:1;stroke:#000;stroke-width:4.62538498;stroke-dasharray:none" transform="matrix(1.081 0 0 1.081 -10.214 -40)"{}
+ path d="M35.723 87.977v54.416" style="opacity:.5;fill:none;stroke:#000;stroke-width:3.95992" transform="matrix(1.081 0 0 1.081 -10.214 -40)"{}
+ path d="M171.136 159.95v65.573" style="opacity:.5;fill:none;stroke:#000;stroke-width:4.34701" transform="matrix(1.081 0 0 1.081 -10.214 -40)"{}
+ path d="M83.645 241.56c-5.936 9.817-6.62 12.1-6.62 12.1-3.007 10.213-2.685 9.89-2.685 9.89M129.52 241.56c5.935 9.817 6.62 12.1 6.62 12.1 3.007 10.213 2.684 9.89 2.684 9.89M73.891 269.662l13.698 13.584zm-.8.343-16.208 11.643zm.344.228-2.17 16.551zM139.273 269.662l-13.698 13.584zm.799.343 16.209 11.643zm-.343.228 2.17 16.551z" style="opacity:.5;fill:none;fill-opacity:1;stroke:#000;stroke-width:3.91616" transform="matrix(1.081 0 0 1.081 -10.214 -40)"{}
+ }
+ )
+ }
+
fn render_navigation() -> Markup {
html!(
div class="navbar" {
header {
+ a href="/index.html" {
+ (Self::logo_svg(50.))
+ }
h1 {
"V2 Tales";
}
@@ -68,6 +85,14 @@ pub trait Page: Sized {
padding: 0 3rem;
}
+ header {
+ display: flex;
+ align-items: center;
+ a {
+ margin: 0 1rem;
+ }
+ }
+
nav {
display: flex;
justify-content: space-around;