ffi
This commit is contained in:
parent
14c97cec77
commit
635b07d7cc
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<a-modal
|
||||
wrapClassName="web"
|
||||
:visible="visible"
|
||||
:footer="null"
|
||||
width="60%"
|
||||
@ -7,15 +8,14 @@
|
||||
:centered="true"
|
||||
@cancel="onCancel"
|
||||
>
|
||||
<div class="flex">
|
||||
<div>
|
||||
<div class="flex modal-content">
|
||||
<div v-if="visible" class="hero">
|
||||
<img
|
||||
src="../../assets/img/badge/hero.png"
|
||||
alt="/hero.png"
|
||||
class="max-w-full h-auto hero-img"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="exclusive">
|
||||
<div class="cancel flex justify-end" @click="onCancel">
|
||||
<img
|
||||
@ -24,9 +24,11 @@
|
||||
class="max-w-full h-auto"
|
||||
/>
|
||||
</div>
|
||||
This is an exclusive badge for CEBG Genesis NFT holders. It will serve
|
||||
as an identity credential for Genesis NFT holders to participate in all
|
||||
future activities
|
||||
<div v-if="visible" class="pt-12 w-[450px] text-gray-100 text-content">
|
||||
This is an exclusive badge for CEBG Genesis NFT holders. It will
|
||||
serve as an identity credential for Genesis NFT holders to
|
||||
participate in all future activities
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
@ -46,13 +48,70 @@ const onCancel = () => {
|
||||
emit("update:visible", false);
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.hero-img {
|
||||
height: 459px;
|
||||
height: 420px;
|
||||
// object-fit: cover;
|
||||
.modal-content {
|
||||
height: 302px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.hero-img {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
cursor: pointer;
|
||||
width: 459px;
|
||||
height: 420px;
|
||||
opacity: 0;
|
||||
animation: slideInFromLeft 0.5s forwards;
|
||||
}
|
||||
|
||||
.exclusive {
|
||||
width: 621px;
|
||||
margin-left: 529px;
|
||||
}
|
||||
|
||||
.text-content {
|
||||
opacity: 0;
|
||||
animation: slideInFromRight 0.5s forwards;
|
||||
}
|
||||
|
||||
@keyframes slideInFromLeft {
|
||||
0% {
|
||||
transform: translateX(-100%);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slideInFromRight {
|
||||
0% {
|
||||
transform: translateX(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style lang="scss">
|
||||
.web {
|
||||
.ant-modal-body {
|
||||
background-color: #21211E;
|
||||
border: 1px solid #ccc;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ant-modal-content {
|
||||
background-color: #21211E !important;
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user