-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Design Mobile Menu ( Only Surface Items )
- Loading branch information
Showing
4 changed files
with
146 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template lang="pug"> | ||
|
||
router-link.mobileMenuItem.d-flex.mt-16( active-class="active" :to="link" ) | ||
|
||
.icon.d-flex.justify-content-center.align-items-center.w3-animate-left | ||
img( :src="require('@/assets/img/icons/icon_' + icon + ($route.path !== link? '_gray.svg' : '_green.svg'))" :alt="page" ) | ||
|
||
.text.flex-grow-1.pl-16.d-flex.justify-content-start.align-items-center.w3-animate-opacity | ||
p.mb-0 {{ page }} | ||
|
||
</template> | ||
|
||
<script lang="ts"> | ||
import { Options, Vue } from 'vue-class-component' | ||
@Options({ | ||
// Element Props | ||
props: ["page", "link", "icon"], | ||
}) | ||
export default class MobileMenuItem extends Vue {} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<template lang="pug"> | ||
|
||
.weekiIconButton.cursor-pointer.d-flex.align-items-center.justify-content-center | ||
|
||
img( :src="require('@/assets/img/' + icon)" alt="img" ) | ||
|
||
| {{ text }} | ||
|
||
</template> | ||
|
||
<script lang="ts"> | ||
import { Options, Vue } from 'vue-class-component' | ||
@Options({ | ||
// Element Props | ||
props: ["icon", "type", "text"], | ||
}) | ||
export default class WeekiIconButton extends Vue {} | ||
</script> | ||
|
||
<style scoped lang="sass"> | ||
.weekiIconButton | ||
background-color: #D1E9C9!important | ||
box-shadow: 0 3px 10px #0000001A!important | ||
border-radius: 4px!important | ||
padding: 16px 0!important | ||
color: #68B64D!important | ||
font-size: 14px!important | ||
.weekiIconButton:hover | ||
box-shadow: none!important | ||
.weekiIconButton > img | ||
margin-right: 8px!important | ||
</style> |