style: ajusta responsividade geral do projeto
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<template>
|
||||
<div class="relative min-h-screen overflow-hidden bg-[#f5f5f5] px-4 py-10 font-sans text-[#0c0a09] md:px-8 md:py-16">
|
||||
<div
|
||||
class="relative min-h-screen overflow-x-hidden bg-[#f5f5f5] px-3 py-8 font-sans text-[#0c0a09] sm:px-4 md:px-6 md:py-12 xl:px-8 xl:py-16">
|
||||
<div
|
||||
class="pointer-events-none absolute left-1/2 top-8 h-[460px] w-[min(92vw,820px)] -translate-x-1/2 rounded-[48px] bg-[radial-gradient(circle_at_20%_30%,rgba(244,197,168,0.62),transparent_28%),radial-gradient(circle_at_72%_24%,rgba(167,229,211,0.5),transparent_30%),radial-gradient(circle_at_52%_78%,rgba(168,200,232,0.52),transparent_34%)] blur-2xl"
|
||||
aria-hidden="true"></div>
|
||||
|
||||
<main class="relative mx-auto grid w-full max-w-[1120px] gap-8" aria-labelledby="gift-card-title">
|
||||
<main class="relative mx-auto grid w-full min-w-0 max-w-[1120px] gap-6 md:gap-8" aria-labelledby="gift-card-title">
|
||||
<header class="flex flex-col gap-5 sm:flex-row sm:items-end sm:justify-between">
|
||||
<div>
|
||||
<p
|
||||
@@ -12,7 +13,7 @@
|
||||
Carteira
|
||||
</p>
|
||||
<h1 id="gift-card-title"
|
||||
class="my-5 max-w-[720px] font-serif text-[40px] font-light leading-[1.08] tracking-[-0.96px] text-[#0c0a09] md:text-[48px]">
|
||||
class="my-5 max-w-[720px] break-words font-serif text-[34px] font-light leading-[1.08] tracking-[-0.96px] text-[#0c0a09] sm:text-[40px] md:text-[48px]">
|
||||
Gift Cards
|
||||
</h1>
|
||||
<p class="m-0 max-w-[560px] text-base font-normal leading-6 tracking-[0.16px] text-[#4e4e4e]">
|
||||
@@ -21,9 +22,9 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="grid gap-8 lg:grid-cols-2">
|
||||
<div class="grid min-w-0 gap-6 md:gap-8 xl:grid-cols-2">
|
||||
<section
|
||||
class="grid gap-6 rounded-2xl border border-[#e7e5e4] bg-white p-6 shadow-[0_4px_16px_rgba(0,0,0,0.04)] md:p-8"
|
||||
class="grid min-w-0 gap-6 rounded-2xl border border-[#e7e5e4] bg-white p-4 shadow-[0_4px_16px_rgba(0,0,0,0.04)] sm:p-5 md:p-6 xl:p-8"
|
||||
aria-label="Criar gift card">
|
||||
<div>
|
||||
<span
|
||||
@@ -41,11 +42,11 @@
|
||||
Valor inicial (R$)
|
||||
</label>
|
||||
<input id="balance" v-model.number="createForm.balance" type="number" min="1" step="0.01" required
|
||||
class="h-11 rounded-xl border border-[#e7e5e4] px-4 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09]"
|
||||
class="h-11 w-full min-w-0 rounded-xl border border-[#e7e5e4] px-4 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09]"
|
||||
placeholder="100.00" />
|
||||
</div>
|
||||
<button type="submit" :disabled="isCreating"
|
||||
class="inline-flex h-10 w-fit items-center justify-center gap-2 rounded-full bg-[#292524] px-6 text-[15px] font-medium text-white transition hover:bg-[#0c0a09] disabled:cursor-not-allowed disabled:opacity-70">
|
||||
class="inline-flex min-h-10 w-full items-center justify-center gap-2 rounded-full bg-[#292524] px-6 py-2 text-[15px] font-medium text-white transition hover:bg-[#0c0a09] disabled:cursor-not-allowed disabled:opacity-70 sm:w-fit">
|
||||
<Icon v-if="isCreating" name="mdi:loading" class="animate-spin text-base" />
|
||||
<span>{{ isCreating ? 'Criando...' : 'Criar gift card' }}</span>
|
||||
</button>
|
||||
@@ -53,7 +54,7 @@
|
||||
</section>
|
||||
|
||||
<section
|
||||
class="grid gap-6 rounded-2xl border border-[#e7e5e4] bg-white p-6 shadow-[0_4px_16px_rgba(0,0,0,0.04)] md:p-8"
|
||||
class="grid min-w-0 gap-6 rounded-2xl border border-[#e7e5e4] bg-white p-4 shadow-[0_4px_16px_rgba(0,0,0,0.04)] sm:p-5 md:p-6 xl:p-8"
|
||||
aria-label="Consultar e resgatar gift card">
|
||||
<div>
|
||||
<span
|
||||
@@ -71,11 +72,11 @@
|
||||
Código do cartão
|
||||
</label>
|
||||
<input id="code" v-model="operationForm.code" type="text" required maxlength="10"
|
||||
class="h-11 rounded-xl border border-[#e7e5e4] px-4 text-[15px] uppercase text-[#0c0a09] outline-none transition focus:border-[#0c0a09]"
|
||||
class="h-11 w-full min-w-0 rounded-xl border border-[#e7e5e4] px-4 text-[15px] uppercase text-[#0c0a09] outline-none transition focus:border-[#0c0a09]"
|
||||
placeholder="AB12CD34EF" />
|
||||
</div>
|
||||
<button type="submit" :disabled="isConsulting"
|
||||
class="inline-flex h-10 w-fit items-center justify-center gap-2 rounded-full border border-[#d6d3d1] bg-transparent px-6 text-[15px] font-medium text-[#0c0a09] transition hover:border-[#0c0a09] disabled:cursor-not-allowed disabled:opacity-70">
|
||||
class="inline-flex min-h-10 w-full items-center justify-center gap-2 rounded-full border border-[#d6d3d1] bg-transparent px-6 py-2 text-[15px] font-medium text-[#0c0a09] transition hover:border-[#0c0a09] disabled:cursor-not-allowed disabled:opacity-70 sm:w-fit">
|
||||
<Icon v-if="isConsulting" name="mdi:loading" class="animate-spin text-base" />
|
||||
<span>{{ isConsulting ? 'Consultando...' : 'Consultar saldo' }}</span>
|
||||
</button>
|
||||
@@ -87,11 +88,11 @@
|
||||
Valor do resgate (R$)
|
||||
</label>
|
||||
<input id="amount" v-model.number="operationForm.amount" type="number" min="0.01" step="0.01" required
|
||||
class="h-11 rounded-xl border border-[#e7e5e4] px-4 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09]"
|
||||
class="h-11 w-full min-w-0 rounded-xl border border-[#e7e5e4] px-4 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09]"
|
||||
placeholder="25.00" />
|
||||
</div>
|
||||
<button type="submit" :disabled="isRedeeming"
|
||||
class="inline-flex h-10 w-fit items-center justify-center gap-2 rounded-full bg-[#292524] px-6 text-[15px] font-medium text-white transition hover:bg-[#0c0a09] disabled:cursor-not-allowed disabled:opacity-70">
|
||||
class="inline-flex min-h-10 w-full items-center justify-center gap-2 rounded-full bg-[#292524] px-6 py-2 text-[15px] font-medium text-white transition hover:bg-[#0c0a09] disabled:cursor-not-allowed disabled:opacity-70 sm:w-fit">
|
||||
<Icon v-if="isRedeeming" name="mdi:loading" class="animate-spin text-base" />
|
||||
<span>{{ isRedeeming ? 'Resgatando...' : 'Resgatar valor' }}</span>
|
||||
</button>
|
||||
@@ -112,7 +113,7 @@
|
||||
</div>
|
||||
|
||||
<section
|
||||
class="grid gap-6 rounded-2xl border border-[#e7e5e4] bg-white p-6 shadow-[0_4px_16px_rgba(0,0,0,0.04)] md:p-8"
|
||||
class="grid min-w-0 gap-6 rounded-2xl border border-[#e7e5e4] bg-white p-4 shadow-[0_4px_16px_rgba(0,0,0,0.04)] sm:p-5 md:p-6 xl:p-8"
|
||||
aria-label="Meus gift cards">
|
||||
<div>
|
||||
<span
|
||||
@@ -142,17 +143,16 @@
|
||||
<div v-else class="overflow-hidden rounded-xl border border-[#e7e5e4]">
|
||||
<ul class="grid divide-y divide-[#e7e5e4]">
|
||||
<li v-for="card in giftCards" :key="card.id"
|
||||
class="flex flex-col gap-3 bg-white p-4 sm:flex-row sm:items-center sm:justify-between">
|
||||
<div class="grid gap-1">
|
||||
<span class="font-mono text-base font-medium tracking-wider text-[#0c0a09]">{{
|
||||
card.code
|
||||
}}</span>
|
||||
class="flex min-w-0 flex-col gap-3 bg-white p-4 lg:flex-row lg:items-center lg:justify-between">
|
||||
<div class="grid min-w-0 gap-1">
|
||||
<span class="min-w-0 break-words font-mono text-base font-medium tracking-wider text-[#0c0a09]">{{
|
||||
card.code }}</span>
|
||||
<span class="text-xs text-[#777169]">Criado em {{ formatDate(card.created_at) }}</span>
|
||||
</div>
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<div class="flex min-w-0 flex-wrap items-center gap-3">
|
||||
<span class="text-[15px] font-medium text-[#292524]">{{
|
||||
formatCurrency(card.balance)
|
||||
}}</span>
|
||||
}}</span>
|
||||
<span class="inline-flex rounded-full px-2.5 py-1 text-xs font-semibold uppercase" :class="card.is_active
|
||||
? 'bg-[rgba(167,229,211,0.62)] text-[#0c0a09]'
|
||||
: 'bg-[#f0efed] text-[#777169]'
|
||||
|
||||
Reference in New Issue
Block a user