Skip to content

Commit c6e60e0

Browse files
committed
worked on login button style
1 parent 8a6f07e commit c6e60e0

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

src/App.vue

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
>Dashboard</router-link
77
>
88
<template v-if="!user">
9-
<router-link :to="{ name: 'authenticate' }">
10-
<button type="button">Login</button>
9+
<router-link :to="{ name: 'authenticate' }" class="navButton">
10+
<span>Login</span>
1111
</router-link>
1212
</template>
1313

14-
<template v-if="user">
14+
<template v-else>
1515
<span>Hello, {{ user.name }}.</span>
1616
<button type="button" @click="logout">Log out</button>
1717
</template>
@@ -66,6 +66,10 @@ export default {
6666
#nav span {
6767
margin: auto 1em auto 0em;
6868
}
69+
#nav a span {
70+
vertical-align: middle;
71+
margin: auto !important;
72+
}
6973
a:visited {
7074
color: #2c3e50;
7175
}
@@ -104,6 +108,14 @@ input {
104108
color: #2c3e50;
105109
}
106110
.navButton {
107-
margin-left: auto;
111+
background: white;
112+
color: #2c3e50 !important;
113+
text-decoration: none;
114+
font-size: 1em;
115+
font-weight: 500 !important;
116+
width: 5em;
117+
height: 1.8em;
118+
border-radius: 5%;
119+
margin: 0.5em 0.5em 0.5em auto !important;
108120
}
109121
</style>

src/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ new Vue({
2222
error => {
2323
console.log(error.response)
2424
if (error.response.status === 401) {
25-
// Do something with response error
2625
this.$router.push('/')
2726
//This messes with displaying login error
2827
this.$store.dispatch('logout')

0 commit comments

Comments
 (0)