Skip to content

Commit

Permalink
ux improve
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrust committed Jun 30, 2022
1 parent b447981 commit 43ebdd8
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 36 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ pnpm-debug.log*

cache
artifacts

upload.sh
2 changes: 1 addition & 1 deletion frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<script type="module" src="https://w3q-wc.s3.us-west-2.amazonaws.com/wc-w3q.es.js"></script>
<title>W3Q NFT</title>
<title>QRobot</title>
</head>
<body>
<noscript>
Expand Down
14 changes: 9 additions & 5 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<div id="app">
<w3q-tip
style="width: 100vw"
bgColor="#2B66FF"
fontColor="#ffffff"
bgColor="#FFC124"
fontColor="#000000"
:fontSize="isMobile ? '12px' : '15px'"
/>
<div class="container">
Expand Down Expand Up @@ -89,6 +89,10 @@ export default {
font-family: AlibabaPuHuiTiB;
src: url("./assets/fonts/AlibabaSans-Bold.otf");
}
@font-face {
font-family: ComicSansMS;
src: url("./assets/fonts/Comic-Sans-MS.ttf");
}
$res: 780px;
$input-radius: 2rem;
html,
Expand Down Expand Up @@ -166,7 +170,7 @@ body {
text-align: center;
vertical-align: middle;
display: table-cell;
background: #2B66FF;
background: #FFC124;
color: #ffffff;
font-size: 1rem;
font-family: AlibabaPuHuiTiB;
Expand All @@ -176,12 +180,12 @@ body {
}
.btn-app:hover {
background: #ffffff;
color: #2B66FF;
color: #FFC124;
border: 1px solid #e8e6f2;
cursor: pointer;
}
.notification.is-info {
background-color: #2B66FF !important;
background-color: #FFC124 !important;
}
.container:not(.is-max-desktop):not(.is-max-widescreen) {
max-width: 1000px !important;
Expand Down
Binary file added frontend/src/assets/fonts/Comic-Sans-MS.ttf
Binary file not shown.
Binary file modified frontend/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 16 additions & 28 deletions frontend/src/components/Claim.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
<div class="last-panel">
<img src="../assets/demo.png" />
<div class="pad"></div>
<div class="title">Web3 QRobot</div>
<p class="text">
Web3 QRobot is a collection of cute robots that can be minted freely
on Web3Q blockchain. All the metadata has been uploaded to Web3Q in
on Web3Q blockchain. All the <a :href="metaLink" target="_blank" >metadata</a> has been uploaded to Web3Q in
advance, and the traits of the robot will be fully determined by an
on-chain random number generated when you mint. Enjoy your cute
robots, Cheers!
Expand All @@ -23,13 +22,13 @@
<header class="card-header">
<p class="card-header-title">Minted</p>
</header>
<div class="last-panel" v-if="myTokenIds.length === 0">
<div class="last-panel centered" v-if="myTokenIds.length === 0">
You don't own any QRobot yet
</div>
<div class="last-panel" v-else>
<div class="columns" v-for="(group, index) in groups" :key="index">
<div class="column is-4" v-for="id in group" :key="id">
<img :src="tokenUrl(id)" @click="zoomIn(id)" />
<a :href="tokenUrl(id)" target="_blank"> <img :src="tokenUrl(id)" /> </a>
<p class="heading">QRobot #{{ id }}</p>
</div>
</div>
Expand Down Expand Up @@ -133,9 +132,6 @@ export default {
tokenUrl(id) {
return `https://web3q.io/${this.chainConfig.nft}:w3q-g/compose/string!${id}.svg`;
},
nftLink(id) {
return `${this.chainConfig.scan}token/${this.chainConfig.nft}/instance/${id}`;
},
},
computed: {
...mapState(["account", "chainConfig"]),
Expand Down Expand Up @@ -167,6 +163,9 @@ export default {
}
return arr;
},
metaLink() {
return `https://web3q.io/0x31bc4dAd21fAd6212082C7953379bb62187ffE94:w3q-g/2/0.png`;
}
},
watch: {
async account(newValue) {
Expand Down Expand Up @@ -218,7 +217,7 @@ $res: 780px;
.num {
font-size: 1.7rem;
font-family: AlibabaPuHuiTiB;
color: #2b66ff;
color: #FFC124;
display: flex;
align-items: center;
}
Expand Down Expand Up @@ -311,15 +310,15 @@ button:disabled {
font-size: 1.2rem;
border: 1px solid #e8e6f2;
font-family: AlibabaPuHuiTiB;
color: #2b66ff;
color: #FFC124;
}
.cancel {
color: #2b66ff;
color: #FFC124;
background-color: #fff;
border: 1px solid #e8e6f2;
}
.cancel:hover {
background-color: #2b66ff;
background-color: #FFC124;
color: #fff;
}
.close {
Expand Down Expand Up @@ -382,7 +381,7 @@ button:disabled {
cursor: pointer;
}
.point {
color: #2b66ff;
color: #FFC124;
}
.grid-wrapper {
margin-top: 1rem;
Expand Down Expand Up @@ -415,16 +414,7 @@ button:disabled {
}
}
.centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
white-space: nowrap;
// font-size: 48px;
font-family: AlibabaPuHuiTiM;
color: #ffffff;
line-height: 4rem;
text-align: right;
padding-top: 5rem !important;
}
.centered button {
font-size: 16px;
Expand All @@ -434,11 +424,8 @@ button:disabled {
border-radius: 2rem;
border: 0;
}
// input.input {
// border-radius: 2rem !important;
// }
.centered button:hover {
background: #2b66ff;
background: #FFC124;
color: #ffffff !important;
}
.last-panel {
Expand Down Expand Up @@ -495,7 +482,8 @@ button:disabled {
}
.text {
width: 72%;
text-align: left;
text-align: justify;
font-family: ComicSansMS;
color: #000000;
font-size: 1.1rem;
line-height: 2rem;
Expand All @@ -516,6 +504,6 @@ button:disabled {
padding-top: 3rem;
}
.pcolor {
background-color: #2b66ff !important;
background-color: #FFC124 !important;
}
</style>
2 changes: 1 addition & 1 deletion frontend/src/mixins/tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const transaction = {
alert(content, type, duration) {
this.$buefy.notification.open({
duration: duration || 5000,
hasIcon: true,
hasIcon: false,
queue: false,
message: content,
position: 'is-bottom-right',
Expand Down
2 changes: 1 addition & 1 deletion frontend/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ module.exports = {
pluginOptions: {
},
productionSourceMap: false,
publicPath: '/nftdemo.w3q/',
publicPath: '/qrobot.w3q/',
};

0 comments on commit 43ebdd8

Please sign in to comment.