Skip to content

Commit 63375d0

Browse files
committed
Update navigation icons
1 parent 5404b81 commit 63375d0

File tree

3 files changed

+27
-9
lines changed

3 files changed

+27
-9
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template>
2+
<i class="ion" :class="iconClass"></i>
3+
</template>
4+
5+
<script>
6+
export default {
7+
props: {
8+
type: {type: String, required: true},
9+
iconStyle: {type: String, default: 'ios'},
10+
},
11+
12+
computed: {
13+
iconClass: function () {
14+
return `ion-${this.iconStyle}-${this.type}`;
15+
}
16+
},
17+
}
18+
</script>

resources/assets/scripts/components/core/Navigation.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,22 @@
4444
<ul>
4545
<li>
4646
<router-link :to="{ name: 'dashboard' }">
47-
<server-icon aria-label="Server dashboard" class="h-4"/>
47+
<Icon type="cube"/>
4848
</router-link>
4949
</li>
5050
<li>
5151
<router-link :to="{ name: 'account' }">
52-
<user-icon aria-label="Profile management" class="h-4"/>
52+
<Icon type="contact"/>
5353
</router-link>
5454
</li>
5555
<li>
5656
<a :href="this.route('admin.index')">
57-
<settings-icon aria-label="Administrative controls" class="h-4"/>
57+
<Icon type="cog"/>
5858
</a>
5959
</li>
6060
<li>
6161
<a :href="this.route('auth.logout')" v-on:click.prevent="doLogout">
62-
<log-out-icon aria-label="Sign out" class="h-4"/>
62+
<Icon type="log-out"/>
6363
</a>
6464
</li>
6565
</ul>
@@ -70,12 +70,11 @@
7070
<script>
7171
import debounce from 'lodash/debounce';
7272
import { mapState } from 'vuex';
73-
import { LogOutIcon, ServerIcon, SettingsIcon, UserIcon } from 'vue-feather-icons'
73+
import Icon from '../Icon';
7474
7575
export default {
7676
name: 'navigation',
77-
components: { LogOutIcon, ServerIcon, SettingsIcon, UserIcon },
78-
77+
components: {Icon},
7978
data: function () {
8079
return {
8180
loadingResults: false,

resources/assets/styles/components/navigation.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
& > .search-box {
1919
& > .search-input {
20-
@apply .text-sm .p-2 .mt-3 .mx-3 .rounded .border .border-blue-darker .bg-grey-lightest .text-grey-darkest;
20+
@apply .text-sm .p-2 .mx-3 .rounded .border .border-blue-darker .bg-grey-lightest .text-grey-darkest;
21+
margin-top: 0.6rem;
2122
width: 26rem;
2223
opacity: 0.7;
2324
transition: ease-in-out opacity 150ms;
@@ -53,7 +54,7 @@
5354
& > li {
5455
@apply .inline-block;
5556
& > a {
56-
@apply .block .h-full .no-underline .text-grey-lighter .font-light .text-sm .p-5;
57+
@apply .block .h-full .no-underline .text-grey-lighter .font-light .text-xl .px-5 .py-4;
5758

5859
&:hover {
5960
@apply .bg-blue-dark;

0 commit comments

Comments
 (0)