|
@@ -0,0 +1,170 @@
|
|
|
+<template>
|
|
|
+ <div class="center">
|
|
|
+ <div class="project">
|
|
|
+ <div class="title">
|
|
|
+ <div class="info">
|
|
|
+ <img :src="userInfo.avatarUrl" alt="" />
|
|
|
+ <span class="name">{{ userInfo.nickName }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="logout" @click="logout">Sign out</div>
|
|
|
+ </div>
|
|
|
+ <div class="list">
|
|
|
+ <div class="item">
|
|
|
+ <div class="logo">
|
|
|
+ <img src="" alt="" />
|
|
|
+ </div>
|
|
|
+ <div class="desc">
|
|
|
+ <div class="name">LegalDAO Members</div>
|
|
|
+ <div class="font">Sell <span>175/1000</span></div>
|
|
|
+ <div class="font">Earnings <span>107.5 USDT</span></div>
|
|
|
+ </div>
|
|
|
+ <div class="opt">
|
|
|
+ <el-button link type="danger">Delete</el-button>
|
|
|
+ <el-button link type="primary">Publish</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- <el-empty description="description" /> -->
|
|
|
+ </div>
|
|
|
+ <div class="add" @click="add">
|
|
|
+ <img src="../../static/img/header-add.svg" alt="">
|
|
|
+ <span>Add New NFT Collection</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script lang="ts" setup>
|
|
|
+import { onMounted, ref } from 'vue'
|
|
|
+import { useRouter } from 'vue-router'
|
|
|
+import { getStorage, storageKey, removeStorage } from '../../static/utils/storage'
|
|
|
+
|
|
|
+const userInfo: any = ref({});
|
|
|
+
|
|
|
+const router = useRouter()
|
|
|
+
|
|
|
+const logout = () => {
|
|
|
+ removeStorage(storageKey.userInfo)
|
|
|
+ router.push({ name: 'home' })
|
|
|
+}
|
|
|
+
|
|
|
+const add = () => {
|
|
|
+ router.push({ name: 'nft-add' })
|
|
|
+}
|
|
|
+
|
|
|
+onMounted(() => {
|
|
|
+ userInfo.value = getStorage(storageKey.userInfo);
|
|
|
+})
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.center {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ --el-font-size-base: 16px;
|
|
|
+}
|
|
|
+.project {
|
|
|
+ width: 800px;
|
|
|
+ border-radius: 20px;
|
|
|
+ background: #FFFFFF;
|
|
|
+ .title {
|
|
|
+ height: 50px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ box-shadow: inset 0px -1px 0px #EDEDED;
|
|
|
+ .info {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ img {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ overflow: hidden;
|
|
|
+ border-radius: 50%;
|
|
|
+ margin: 0 8px 0 20px;
|
|
|
+ }
|
|
|
+ .name {
|
|
|
+ color: #919191;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .logout {
|
|
|
+ color: #FF0000;
|
|
|
+ cursor: pointer;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 500;
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .list {
|
|
|
+ margin: 20px;
|
|
|
+ height: 360px;
|
|
|
+ overflow-y: auto;
|
|
|
+ .item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ height: 104px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ border-radius: 10px;
|
|
|
+ border: 1px solid #EDEDED;
|
|
|
+ &:last-child {
|
|
|
+ margin-bottom: unset;
|
|
|
+ }
|
|
|
+ .logo {
|
|
|
+ width: 70px;
|
|
|
+ height: 70px;
|
|
|
+ margin: 0 24px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background-color: #f5f5f5;
|
|
|
+ }
|
|
|
+ .desc {
|
|
|
+ flex: 1;
|
|
|
+ line-height: 20px;
|
|
|
+ .name {
|
|
|
+ color: #000;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 500;
|
|
|
+ margin-bottom: 4px;
|
|
|
+ }
|
|
|
+ .font {
|
|
|
+ color: #666;
|
|
|
+ font-size: 12px;
|
|
|
+ span {
|
|
|
+ color: #EDA00A;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .opt {
|
|
|
+ margin-right: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .add {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ height: 60px;
|
|
|
+ cursor: pointer;
|
|
|
+ margin: 0 20px 20px 20px;
|
|
|
+ border-radius: 75px;
|
|
|
+ background: #F7F9FB;
|
|
|
+ img {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ margin-right: 8px;
|
|
|
+ vertical-align: middle;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ color: #1D9BF0;
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 600;
|
|
|
+ margin-bottom: -4px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|