Haris Razis
4 years ago
5 changed files with 218 additions and 23 deletions
@ -0,0 +1,84 @@ |
|||
<template> |
|||
<aside class="menu has-background-black"> |
|||
<div class="container mx-5 my-4"> |
|||
<p class="menu-label"> |
|||
General |
|||
</p> |
|||
<ul class="menu-list"> |
|||
<li> |
|||
<a> |
|||
<span class="icon-text"> |
|||
<span class="icon"> |
|||
<i class="fas fa-digital-tachograph"/> |
|||
</span> |
|||
<span> Dashboard</span> |
|||
</span> |
|||
</a> |
|||
</li> |
|||
<li> |
|||
<a> |
|||
<span class="icon-text"> |
|||
<span class="icon"> |
|||
<i class="fas fa-users"/> |
|||
</span> |
|||
<span> Athletes</span> |
|||
</span> |
|||
</a> |
|||
</li> |
|||
</ul> |
|||
<p class="menu-label"> |
|||
Athlete Data |
|||
</p> |
|||
<ul class="menu-list"> |
|||
<li> |
|||
<a> |
|||
<span class="icon-text"> |
|||
<span class="icon"> |
|||
<i class="fas fa-table"/> |
|||
</span> |
|||
<span> Tables</span> |
|||
</span> |
|||
</a> |
|||
</li> |
|||
<li> |
|||
<a> |
|||
<span class="icon-text"> |
|||
<span class="icon"> |
|||
<i class="fas fa-chart-area"/> |
|||
</span> |
|||
<span> Charts</span> |
|||
</span> |
|||
</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</aside> |
|||
</template> |
|||
|
|||
<script lang="ts"> |
|||
import {Vue} from 'vue-class-component'; |
|||
|
|||
export default class Sidebar extends Vue { |
|||
|
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
@media (max-width: 572px) { |
|||
aside { |
|||
position: relative; |
|||
top: 5vh; |
|||
min-width: 100%; |
|||
} |
|||
} |
|||
|
|||
@media (min-width: 572px) { |
|||
aside { |
|||
position: fixed; |
|||
height: 95vh; |
|||
width: 15rem; |
|||
top: 5vh; |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,67 @@ |
|||
<template> |
|||
<div class="tile"> |
|||
<article class="tile is-child notification has-background-primary-dark has-text-white"> |
|||
<nav class="level"> |
|||
<div class="level-left"> |
|||
<div class="level-item "> |
|||
<span class="icon is-large"> |
|||
<i class="fa fa-3x fa-user-circle"/> |
|||
</span> |
|||
<p class="is-size-4 is-bold"> Whats up, {{ user.username }}</p> |
|||
</div> |
|||
</div> |
|||
<div class="level-right"> |
|||
<div class="level-item has-text-centered"> |
|||
<p class="is-size-6 is-bold">Last login on {{ date }}</p> |
|||
</div> |
|||
</div> |
|||
</nav> |
|||
<nav class="level"> |
|||
<div class="level-item has-text-centered"> |
|||
<div> |
|||
<p class="heading">Your Athletes</p> |
|||
<p class="title">3,456</p> |
|||
</div> |
|||
</div> |
|||
<div class="level-item has-text-centered"> |
|||
<div> |
|||
<p class="heading">Live Athletes</p> |
|||
<p class="title">123</p> |
|||
</div> |
|||
</div> |
|||
<div class="level-item has-text-centered"> |
|||
<div> |
|||
<p class="heading">Followers</p> |
|||
<p class="title">456K</p> |
|||
</div> |
|||
</div> |
|||
<div class="level-item has-text-centered"> |
|||
<div> |
|||
<p class="heading">Likes</p> |
|||
<p class="title">789</p> |
|||
</div> |
|||
</div> |
|||
</nav> |
|||
</article> |
|||
</div> |
|||
</template> |
|||
|
|||
<script lang="ts"> |
|||
import {Vue} from 'vue-class-component'; |
|||
|
|||
interface User { |
|||
username: string, |
|||
lastLogin: string |
|||
} |
|||
|
|||
export default class Tile extends Vue { |
|||
private user!: User; |
|||
private date!: string; |
|||
|
|||
created() { |
|||
this.user = this.$store.getters.user |
|||
this.date = new Date(this.user.lastLogin).toLocaleString() |
|||
} |
|||
|
|||
} |
|||
</script> |
Loading…
Reference in new issue