Blame view
src/views/dashboard/editor/index.vue
1.65 KB
d7d9c38c2 auto commit the c... |
1 2 |
<template> <div class="dashboard-editor-container"> |
50760eab9 auto commit the c... |
3 |
<div class="clearfix"> |
d7d9c38c2 auto commit the c... |
4 5 6 7 8 9 10 |
<pan-thumb :image="avatar" style="float: left"> Your roles: <span v-for="item in roles" :key="item" class="pan-info-roles">{{ item }}</span> </pan-thumb> <github-corner style="position: absolute; top: 0px; border: 0; right: 0;" /> <div class="info-container"> <span class="display_name">{{ name }}</span> |
3d3cdb68f auto commit the c... |
11 |
<span style="font-size:20px;padding-top:20px;display:inline-block;">{{ roles }}'s Dashboard</span> |
d7d9c38c2 auto commit the c... |
12 13 14 15 16 17 18 19 20 21 22 |
</div> </div> <div> <img :src="emptyGif" class="emptyGif"> </div> </div> </template> <script> import { mapGetters } from 'vuex' import PanThumb from '@/components/PanThumb' |
50760eab9 auto commit the c... |
23 |
// import GithubCorner from '@/components/GithubCorner' |
d7d9c38c2 auto commit the c... |
24 25 26 |
export default { name: 'DashboardEditor', |
50760eab9 auto commit the c... |
27 28 |
// components: { PanThumb, GithubCorner }, components: { PanThumb }, |
d7d9c38c2 auto commit the c... |
29 30 |
data() { return { |
50760eab9 auto commit the c... |
31 32 |
emptyGif: 'https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3' |
d7d9c38c2 auto commit the c... |
33 34 35 |
} }, computed: { |
50760eab9 auto commit the c... |
36 |
...mapGetters(['name', 'avatar', 'roles']) |
d7d9c38c2 auto commit the c... |
37 38 39 40 41 |
} } </script> <style lang="scss" scoped> |
50760eab9 auto commit the c... |
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
.emptyGif { display: block; width: 45%; margin: 0 auto; } .dashboard-editor-container { background-color: #e3e3e3; min-height: 100vh; padding: 50px 60px 0px; .pan-info-roles { font-size: 12px; font-weight: 700; color: #333; |
d7d9c38c2 auto commit the c... |
56 |
display: block; |
d7d9c38c2 auto commit the c... |
57 |
} |
50760eab9 auto commit the c... |
58 59 60 61 62 63 64 65 66 67 68 |
.info-container { position: relative; margin-left: 190px; height: 150px; line-height: 200px; .display_name { font-size: 48px; line-height: 48px; color: #212121; position: absolute; top: 25px; |
d7d9c38c2 auto commit the c... |
69 70 |
} } |
50760eab9 auto commit the c... |
71 |
} |
d7d9c38c2 auto commit the c... |
72 |
</style> |