index.vue 1.6 KB
Newer Older
P
init  
Pan 已提交
1
<template>
P
Pan 已提交
2 3
  <div class="dashboard-editor-container">
    <div class=" clearfix">
花裤衩 已提交
4
      <pan-thumb style="float: left" :image="avatar"> Your roles:
P
Pan 已提交
5 6
        <span class="pan-info-roles" :key='item' v-for="item in roles">{{item}}</span>
      </pan-thumb>
P
Pan 已提交
7
      <github-corner></github-corner>
P
Pan 已提交
8 9
      <div class="info-container">
        <span class="display_name">{{name}}</span>
花裤衩 已提交
10
        <span style="font-size:20px;padding-top:20px;display:inline-block;">editor : dashboard</span>
P
Pan 已提交
11 12 13
      </div>
    </div>
    <div>
P
Pan 已提交
14
      <img class="emptyGif" :src="emptyGif">
P
Pan 已提交
15 16
    </div>
  </div>
P
init  
Pan 已提交
17 18 19
</template>

<script>
P
Pan 已提交
20
import { mapGetters } from 'vuex'
P
Pan 已提交
21
import PanThumb from '@/components/PanThumb'
P
Pan 已提交
22
import GithubCorner from '@/components/GithubCorner'
P
Pan 已提交
23 24 25

export default {
  name: 'dashboard-editor',
P
Pan 已提交
26
  components: { PanThumb, GithubCorner },
P
Pan 已提交
27
  data() {
P
Pan 已提交
28
    return {
P
Pan 已提交
29
      emptyGif: 'https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3'
P
init  
Pan 已提交
30
    }
P
Pan 已提交
31
  },
P
Pan 已提交
32 33 34 35 36
  computed: {
    ...mapGetters([
      'name',
      'avatar',
      'roles'
P
Pan 已提交
37 38
    ])
  }
P
Pan 已提交
39
}
P
init  
Pan 已提交
40 41 42
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
P
Pan 已提交
43 44 45 46 47 48 49 50 51
	.emptyGif {
		display: block;
		width: 45%;
		margin: 0 auto;
	}

	.dashboard-editor-container {
		background-color: #e3e3e3;
		min-height: 100vh;
P
Pan 已提交
52
		padding: 50px 60px 0px;
P
Pan 已提交
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
		.pan-info-roles {
			font-size: 12px;
			font-weight: 700;
			color: #333;
			display: block;
		}
		.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;
			}
		}
	}
P
init  
Pan 已提交
73
</style>