mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-18 00:33:57 +00:00
navbar finished
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
<script>
|
||||
import Navigation from '../atoms/Navigation.svelte';
|
||||
import { page } from '$app/stores';
|
||||
export let href = '/';
|
||||
$: current = href == $page.url.pathname;
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
<a href="/">
|
||||
<img class="logo" src="/logo.svg" alt="ReVanced Logo"/>
|
||||
<div class="logo">
|
||||
<img src="/logo.svg" class="logo-image" alt="ReVanced Logo" />
|
||||
|
||||
{#if $page.url.pathname !== '/'}
|
||||
<h1><span>Re</span>Vanced</h1>
|
||||
{/if}
|
||||
</div>
|
||||
</a>
|
||||
<ul>
|
||||
<Navigation href="/">Home</Navigation>
|
||||
@@ -19,14 +28,31 @@
|
||||
width: 100%;
|
||||
display: flex;
|
||||
padding-top: 1.25rem;
|
||||
padding-right: 2rem;
|
||||
padding-right: 3rem;
|
||||
padding-left: 6rem;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
min-height: 90px;
|
||||
min-height: 90px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 3rem;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.logo-image {
|
||||
width: 2.9rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
h1 {
|
||||
display: inline-block;
|
||||
margin-left: 1rem;
|
||||
font-size: 2.75rem;
|
||||
letter-spacing: -0.04em;
|
||||
transform: translateY(-5%);
|
||||
}
|
||||
|
||||
h1 span {
|
||||
color: var(--red);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user