12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <template>
- <header>
- <router-link to="/" v-slot="{ href, navigate, isExactActive }">
- <a :class="{ 'active': isExactActive }" :href="href" @click="navigate">
- Homepage
- </a>
- </router-link>
- <router-link to="/accounts" v-slot="{ href, navigate, isExactActive }">
- <a :class="{ 'active': isExactActive }" :href="href" @click="navigate">
- Accounts
- </a>
- </router-link>
- <router-link to="/schemas" v-slot="{ href, navigate, isExactActive }">
- <a :class="{ 'active': isExactActive }" :href="href" @click="navigate">
- Schemas
- </a>
- </router-link>
- <router-link to="/convert" v-slot="{ href, navigate, isExactActive }">
- <a :class="{ 'active': isExactActive }" :href="href" @click="navigate">
- Convert
- </a>
- </router-link>
- <router-link to="/options" v-slot="{ href, navigate, isExactActive }">
- <a :class="{ 'active': isExactActive }" :href="href" @click="navigate">
- Options
- </a>
- </router-link>
- </header>
- </template>
- <script>
- export default {
- components: {},
- data: () => {
- return {
-
- }
- },
- methods: {
-
- },
- mounted() {
-
- }
- };
- </script>
- <style lang="scss" scoped>
- header {
- display: flex;
- width: 100%;
- height: 60px;
- background-color: green;
- flex-direction: row;
- a {
- text-align: center;
- padding: 10px;
- vertical-align: middle;
- line-height: 40px;
- text-decoration: none;
- color: white;
- font-size: 20px;
- &.active {
- background-color: darkgreen;
- }
- }
- }
- </style>
|