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

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

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

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

50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
  .dashboard-editor-container {
    background-color: #e3e3e3;
    min-height: 100vh;
    padding: 50px 60px 0px;
    .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 已提交
74
</style>