mirror of
https://github.com/danbulant/Mangades
synced 2026-06-19 22:31:30 +00:00
improved about page styles
This commit is contained in:
parent
000dafb61c
commit
81be1414ef
2 changed files with 63 additions and 2 deletions
|
|
@ -1,10 +1,14 @@
|
|||
<script>
|
||||
import Navbar from "./navbar.svelte";
|
||||
</script>
|
||||
<svelte:head>
|
||||
<title>Mangadex search & downloader - About</title>
|
||||
<meta name="description" content="About page. Read manga from Mangadex online, or download it as EPUB or CBZ file to read it on your e-reader." />
|
||||
</svelte:head>
|
||||
|
||||
<main>
|
||||
<h1>Manga reader</h1>
|
||||
<Navbar title="About" />
|
||||
|
||||
<main style="padding-top: 6rem;">
|
||||
<a href="https://discord.gg/XKPbz5xRuK">Made by TechmandanCZ#3372</a>
|
||||
|
||||
<hr>
|
||||
|
|
|
|||
57
src/routes/about/navbar.svelte
Normal file
57
src/routes/about/navbar.svelte
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<script lang="ts">
|
||||
export var transparent: boolean = false;
|
||||
export var title: string;
|
||||
</script>
|
||||
|
||||
<div class="navbar" class:transparent>
|
||||
<a href="/">←</a>
|
||||
<span class="title">{title}</span>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.navbar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 5rem;
|
||||
background: rgb(0,0,0,0.9);
|
||||
backdrop-filter: blur(25px);
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 0 1rem;
|
||||
transition: background 0.3s ease;
|
||||
user-select: none;
|
||||
}
|
||||
.transparent.navbar {
|
||||
background: none;
|
||||
backdrop-filter: none;
|
||||
}
|
||||
.navbar a {
|
||||
color: white;
|
||||
font-size: 2rem;
|
||||
transform: translateX(0);
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
.navbar a:hover, .navbar a:active, .navbar a:focus {
|
||||
text-decoration: none;
|
||||
transform: translateX(-0.5rem);
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
.transparent .title {
|
||||
opacity: 0;
|
||||
user-select: none;
|
||||
}
|
||||
.title {
|
||||
user-select: inherit;
|
||||
opacity: 1;
|
||||
transition: opacity 0.3s ease;
|
||||
font-size: 1.5rem;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
flex-grow: 1;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in a new issue