Update BuyerFlow responsive screen

This commit is contained in:
enzoggqs 2023-01-27 18:33:00 -03:00
parent c626a650b8
commit 6e08578038
4 changed files with 28 additions and 10 deletions

View File

@ -16,7 +16,7 @@ const emit = defineEmits(["makeAnotherTransaction"]);
<template> <template>
<div class="page"> <div class="page">
<div class="text-container"> <div class="text-container">
<span class="text font-extrabold text-5xl max-w-[50rem]" <span class="text font-extrabold sm:text-5xl text-xl max-w-[50rem]"
>Os tokens foram transferidos <br /> >Os tokens foram transferidos <br />
para a sua carteira! para a sua carteira!
</span> </span>
@ -30,8 +30,8 @@ const emit = defineEmits(["makeAnotherTransaction"]);
<p class="text-2xl text-gray-900">{{ props.tokenAmount }} BRZ</p> <p class="text-2xl text-gray-900">{{ props.tokenAmount }} BRZ</p>
</div> </div>
<div class="my-5"> <div class="my-5">
<p> <p class="text-sm">
<b>Não encontrou os tokens? </b>Clique no botão abaixo para <br /> <b>Não encontrou os tokens? </b><br/>Clique no botão abaixo para <br />
cadastrar o BRZ em sua carteira. cadastrar o BRZ em sua carteira.
</p> </p>
</div> </div>
@ -48,18 +48,21 @@ const emit = defineEmits(["makeAnotherTransaction"]);
Fazer nova transação Fazer nova transação
</button> </button>
</div> </div>
<div class="text-container mt-16"> <div class="text-container mt-16 lg-view">
<span class="text font-extrabold text-3xl max-w-[50rem]" <span class="text font-extrabold text-3xl max-w-[50rem]"
>Histórico de compras >Histórico de compras
</span> </span>
</div> </div>
<div class="w-full max-w-4xl"> <div class="w-full max-w-4xl lg-view">
<ListingComponent <ListingComponent
:walletTransactions="lastWalletReleaseTransactions" :walletTransactions="lastWalletReleaseTransactions"
:isManageMode="false" :isManageMode="false"
> >
</ListingComponent> </ListingComponent>
</div> </div>
<RouterLink to="/transaction_history" class="mt-8 text-white text-2xl font-bold">
Gerenciar Transações
</RouterLink>
</div> </div>
</template> </template>
@ -99,4 +102,22 @@ input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none; -webkit-appearance: none;
} }
.lg-view {
display: inline-block;
}
.sm-view {
display: none;
}
@media screen and (max-width: 500px) {
.lg-view {
display: none;
}
.sm-view {
display: inline-block;
}
}
</style> </style>

View File

@ -1,7 +1,4 @@
<script setup lang="ts"> <script setup lang="ts">
const props = defineProps({
showModal: Boolean,
});
</script> </script>
<template> <template>

View File

@ -3,7 +3,7 @@ import { pix } from "../utils/QrCodePix";
import { ref } from "vue"; import { ref } from "vue";
import { debounce } from "@/utils/debounce"; import { debounce } from "@/utils/debounce";
import CustomButton from "./CustomButton.vue"; import CustomButton from "./CustomButton.vue";
import AttentionModal from "./AttentionModal.vue"; import AttentionModal from "./CustomModal.vue";
import api from "../services/index"; import api from "../services/index";
// props and store references // props and store references

View File

@ -155,7 +155,7 @@ const getNetworkImage = (networkName: NetworkEnum): string => {
</div> </div>
<div <div
v-show="currencyMenuOpenToggle" v-show="currencyMenuOpenToggle"
class="mt-10 pl-3 absolute w-full text-gray-900 lg-view" class="mt-10 pl-3 absolute w-full text-gray-900"
> >
<div class="mt-2"> <div class="mt-2">
<div class="bg-white rounded-md z-10"> <div class="bg-white rounded-md z-10">