Skip to content

Commit b88e171

Browse files
committed
UPD: style
1 parent c45a9c8 commit b88e171

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

src/App.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55

66
<script lang="ts" setup>
77
import Nav from "@/components/Nav.vue";
8-
</script>
9-
8+
</script>

src/components/Nav.vue

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,28 @@
6262
<script lang="ts" setup>
6363
import { computed } from "vue";
6464
import { useRouter } from "vue-router";
65-
import { routes } from "@/router/index";
65+
import { routes } from "@/router";
6666
6767
const router = useRouter();
6868
const activeRoute = computed(() => router.currentRoute.value.path);
6969
const isActive = (path: string) => path === activeRoute.value;
7070
</script>
71+
72+
<style lang="scss" scoped>
73+
$blc: #000;
74+
$lblc: rgba($blc, 0.65);
75+
76+
a {
77+
text-decoration: none;
78+
color: $lblc;
79+
transition: all 0.25s;
80+
}
81+
82+
ul {
83+
list-style: none;
84+
}
85+
86+
.nav-link { border-top: 1px solid rgba($lblc, 0.01); }
87+
88+
.nav-link.router-link-active.router-link-exact-active { border-top: 1px solid rgba($lblc, 0.2); }
89+
</style>

src/main.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { createApp } from "vue";
2-
import App from "./App.vue";
3-
import { router } from "./router";
2+
3+
import App from "@/App.vue";
4+
import { router } from "@/router";
45

56
import "bootstrap/scss/bootstrap.scss";
67
import "bootstrap-icons/font/bootstrap-icons.css";
78

89
const app = createApp(App).use(router);
9-
10-
router.isReady().then(() => app.mount("#app"));
10+
app.mount("#app")
11+
//router.isReady().then(() => app.mount("#app"));

0 commit comments

Comments
 (0)