-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTheHeader.vue
More file actions
98 lines (86 loc) · 1.79 KB
/
TheHeader.vue
File metadata and controls
98 lines (86 loc) · 1.79 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<script setup lang="ts">
import logo from '../assets/images/logo.png'
import HelloWorld from './HelloWorld.vue'
</script>
<template>
<div class="wrapper">
<header class="header">
<a href="https://vitejs.dev" target="_blank" rel="noopener noreferrer">
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
</a>
<a href="https://vuejs.org/" target="_blank" rel="noopener noreferrer">
<img :src="logo" class="logo vue" alt="Vue logo" />
</a>
</header>
<HelloWorld msg="Vue Typescript !" />
<nav>
<RouterLink to="/">Home</RouterLink>
</nav>
</div>
</template>
<style scoped>
header {
display: flex;
justify-content: center;
align-items: center;
}
.logo {
height: 10em;
padding: 1.5em;
will-change: filter;
}
.logo.vite:hover {
filter: drop-shadow(0 0 2em var(--color-vite));
}
.logo.vue:hover {
filter: drop-shadow(0 0 2em var(--color-vue));
}
.wrapper {
line-height: 1.5;
max-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
}
nav {
width: 100%;
font-size: 12px;
text-align: center;
margin-top: 2rem;
display: flex;
justify-content: center;
}
nav a.router-link-exact-active {
color: var(--color-text);
}
nav a.router-link-exact-active:hover {
background-color: transparent;
}
nav a {
display: inline-block;
padding: 0 1rem;
border-left: 1px solid var(--color-border);
}
nav a:first-of-type {
border: 0;
}
@media (min-width: 1024px) {
.wrapper {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
}
.wrapper main {
display: flex;
place-items: flex-start;
flex-wrap: wrap;
}
nav {
text-align: left;
margin-left: -1rem;
font-size: 1rem;
padding: 1rem 0;
margin-top: 1rem;
}
}
</style>