blob: 1a76876c30adeca825eaa0b733560f605e44bcdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<script lang="ts">
const { pageTitle, rightComponent } = $props();
</script>
<nav>
<a id="logo" href="/">
<img src="/img/logo.svg" alt="" style="height:50px" />
</a>
<div id="middletitle">{pageTitle}</div>
<div id="right">{@render rightComponent()}</div>
</nav>
<style>
nav {
position: fixed;
width: 100%;
background-color: var(--bg-primary);
color: white;
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px;
height: 64px;
z-index: 2;
}
#logo {
transition-duration: 0.2s;
}
#logo:hover {
transform: scale(1.025);
filter: saturate(2);
}
#middletitle {
font-weight: bold;
font-size: 24px;
}
#right {
display: flex;
}
</style>
|