improved about page styles

This commit is contained in:
Daniel Bulant 2022-12-12 17:01:14 +01:00
parent 000dafb61c
commit 81be1414ef
2 changed files with 63 additions and 2 deletions

View file

@ -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>

View 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>