Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,7 @@ dist

# TernJS port file
.tern-port
package-lock.json
package-lock.json

#lib
# src/libs/allocation_merkle_output.json
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@chenfengyuan/vue-countdown": "^2.0.0-rc",
"@hennge/vue3-pagination": "^1.0.17",
"@walletconnect/web3-provider": "^1.6.6",
"bignumber.js": "^9.0.2",
"bootstrap-icons": "^1.6.0",
"date-fns": "^2.25.0",
"eslint": "^7.32.0",
Expand Down
5,042 changes: 5,042 additions & 0 deletions src/assets/contracts/MerkleDistributor.json

Large diffs are not rendered by default.

Binary file added src/assets/images/Congrats.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/loadingCircle.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 17 additions & 3 deletions src/components/SaleInputAirdrop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@
@click="
handlePurchase('0x27a339d9b59b21390d7209b78a839868e319301b', 0)
"
v-if="!this.isXdrop"
>
Get Random xBlade
</c-button>
<h4>Or choose your options</h4>
<c-button
class="mybtn1"
@click="
handlePurchase('0x27a339d9b59b21390d7209b78a839868e319301b', 0)
"
v-else
>
Claim your xBlade
</c-button>
<h4 v-if="!this.isXdrop">Or choose your options</h4>
</div>
<div class="mt-32">
<div class="mt-32" v-if="!this.isXdrop">
<table class="table">
<thead>
<tr>
Expand Down Expand Up @@ -92,7 +102,7 @@
</table>
</div>

<div style="margin-top: 0px">
<div style="margin-top: 0px" v-if="!this.isXdrop">
<!-- <hr/> -->
<h5>💕 Get free xBlade 💕</h5>
Get Free xBlade by refering to your friends to claim airdrop using
Expand Down Expand Up @@ -156,6 +166,10 @@ export default {
type: Number,
default: 0,
},
isXdrop: {
type: Boolean,
default: false
}
},
computed: {
availableToClaim() {
Expand Down
119 changes: 119 additions & 0 deletions src/components/elements/CustomModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<template >
<div class="modal-mask">
<div class="modal-wrapper">
<div class="modal-container col-lg-4">
<div class="modal-header">
<slot name="header"> </slot>
</div>

<div class="modal-body">
<slot name="body"> </slot>
</div>

<div class="modal-footer">
<slot name="footer">
<button class="mybtn1" @click="$emit('close')">
OK
</button>
</slot>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
methods: {
handleClick(e) {
this.$emit("close", e);
},
},
};
</script>

<style scoped>
.modal-mask {
position: fixed;
z-index: 9998;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: table;
}

.modal-wrapper {
display: table-cell;
vertical-align: middle;
}

.modal-container {
margin: 0px auto;
padding: 20px 30px;
background-image: url("../../assets/images/counter-bg.jpg");
border-radius: 18px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
font-family: "Josefin Sans", sans-serif;
/* text-align: center; */
}

.modal-header h3 {
margin-top: 0;
color: #42b983;
}
.modal-header {
border-bottom: none;
color: #fff;
}

.modal-body {
border-bottom: none;
justify-self: start;
padding-left: 20px;
padding-right: 30px;
color: #fff;
/* margin: 20px 0; */
}

.modal-default-button {
display: block;
margin-top: 1rem;
}
.modal-footer {
border-top: none;
display: flex;
flex-direction: column;
}

/*
* The following styles are auto-applied to elements with
* transition="modal" when their visibility is toggled
* by Vue.js.
*
* You can easily play with the modal transition by editing
* these styles.
*/

.modal-enter-active,
.modal-leave-active {
transition: opacity 0.5s ease;
}

.modal-enter-from,
.modal-leave-to {
opacity: 0;
}
.mybtn1{
background:none
}
.modal-footer{
align-items: center;
justify-content: center;
}
.mybtn1{
border: none;
color: #00a2ff;
box-shadow: inset 0px 0px 10px 7px #00a2ff;
}
</style>
Loading