feat: add search token card

Co-authored-by: RcleydsonR <rafael.cleydson@gmail.com>
This commit is contained in:
EsioFreitas
2022-11-23 18:12:04 -03:00
parent c5322854aa
commit 0b1a59b333
4 changed files with 89 additions and 12 deletions

View File

@@ -1,4 +1,9 @@
<script setup lang="ts"></script>
<script setup lang="ts">
import CustomButton from "../components/CustomButton.vue";
const searchClick = () => {
console.log("oferta selecionada");
};
</script>
<template>
<div class="page">
@@ -11,15 +16,60 @@
crypto após realizar o Pix</span
>
</div>
<!-- <div
class="flex flex-col justify-center items-start px-8 py-6 gap-2 rounded-lg shadow-current backdrop-blur-md w-96 mt-10"
<div
class="flex flex-col justify-center items-center px-8 py-6 gap-2 rounded-lg shadow-md shadow-gray-600 backdrop-blur-md w-1/3 mt-10"
>
</div>
Search component
--></div>
<div
class="flex justify-between w-full bg-white px-10 py-5 rounded-lg border-y-10 relative"
>
<input
type="number"
class="border-none outline-none text-lg"
placeholder="Digite o valor que deseja pagar"
/>
<p class="text-lg font-bold">R$</p>
</div>
<div
class="flex flex-col w-full bg-white px-10 py-5 rounded-lg border-y-10"
>
<div
class="bg-emerald-400 px-4 py-3 rounded-lg absolute bottom-position"
>
<img alt="Ethereum image" src="@/assets/arrow.svg" />
</div>
<div class="flex justify-between w-full items-center">
<p class="text-3xl">0</p>
<div class="flex flex-row p-2 px-3 bg-gray-300 rounded-full">
<img alt="Ethereum image" class="mr-3" src="@/assets/brz.svg" />
<p class="text-gray-900 text-lg">BRZ</p>
</div>
</div>
<div class="custom-divide py-2"></div>
<p class="text-gray-500 text-lg pt-2">~ ETH 0,00 (+0,121%)</p>
</div>
<CustomButton
:text="'Selecionar Oferta'"
:is-disabled="true"
@clicked="searchClick()"
/>
</div>
</div>
</template>
<style scoped>
.custom-divide {
width: 100%;
border-bottom: 1px solid #d1d5db;
}
.bottom-position {
top: -20px;
right: 50%;
transform: translateX(50%);
}
.page {
@apply flex flex-col items-center justify-center w-full mt-20;
}