style: ajusta responsividade geral do projeto
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
<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(232,184,196,0.55),transparent_28%),radial-gradient(circle_at_72%_24%,rgba(168,200,232,0.56),transparent_30%),radial-gradient(circle_at_52%_78%,rgba(167,229,211,0.58),transparent_34%)] blur-2xl"
|
||||
aria-hidden="true"></div>
|
||||
|
||||
<main class="relative mx-auto grid w-full max-w-[960px] gap-8" aria-labelledby="perfil-gamer-title">
|
||||
<main class="relative mx-auto grid w-full min-w-0 max-w-[960px] gap-6 md:gap-8"
|
||||
aria-labelledby="perfil-gamer-title">
|
||||
<header class="flex flex-col gap-5 sm:flex-row sm:items-end sm:justify-between">
|
||||
<div>
|
||||
<p
|
||||
@@ -12,7 +14,7 @@
|
||||
Perfil
|
||||
</p>
|
||||
<h1 id="perfil-gamer-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]">
|
||||
Perfil Gamer
|
||||
</h1>
|
||||
<p class="m-0 max-w-[560px] text-base font-normal leading-6 tracking-[0.16px] text-[#4e4e4e]">
|
||||
@@ -22,7 +24,7 @@
|
||||
</header>
|
||||
|
||||
<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="Formulário do perfil gamer">
|
||||
<div>
|
||||
<span
|
||||
@@ -50,7 +52,7 @@
|
||||
Nickname
|
||||
</label>
|
||||
<input id="nickname" v-model="form.nickname" type="text" required maxlength="80"
|
||||
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="Seu apelido no GameVerse" />
|
||||
</div>
|
||||
|
||||
@@ -59,7 +61,7 @@
|
||||
Bio
|
||||
</label>
|
||||
<textarea id="bio" v-model="form.bio" rows="4"
|
||||
class="rounded-xl border border-[#e7e5e4] px-4 py-3 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09]"
|
||||
class="w-full min-w-0 rounded-xl border border-[#e7e5e4] px-4 py-3 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09]"
|
||||
placeholder="Conte um pouco sobre você como jogador"></textarea>
|
||||
</div>
|
||||
|
||||
@@ -68,7 +70,7 @@
|
||||
País
|
||||
</label>
|
||||
<input id="country" v-model="form.country" type="text" maxlength="80"
|
||||
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="Brasil" />
|
||||
</div>
|
||||
|
||||
@@ -77,7 +79,7 @@
|
||||
Plataformas favoritas
|
||||
</label>
|
||||
<input id="platforms" v-model="form.platformsText" type="text"
|
||||
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="Steam, Epic Games, PlayStation" />
|
||||
<p class="m-0 text-xs text-[#777169]">Separe por vírgula.</p>
|
||||
</div>
|
||||
@@ -87,7 +89,7 @@
|
||||
Jogos favoritos
|
||||
</label>
|
||||
<input id="games" v-model="form.gamesText" type="text"
|
||||
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="Valorant, Elden Ring, Hades" />
|
||||
<p class="m-0 text-xs text-[#777169]">Separe por vírgula.</p>
|
||||
</div>
|
||||
@@ -98,15 +100,15 @@
|
||||
class="h-20 w-20 rounded-full border border-[#e7e5e4] object-cover" />
|
||||
</div>
|
||||
|
||||
<div class="flex flex-wrap gap-3 pt-2">
|
||||
<div class="flex flex-col gap-3 pt-2 sm:flex-row sm:flex-wrap">
|
||||
<button type="submit" :disabled="isSaving"
|
||||
class="inline-flex h-10 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 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">
|
||||
<Icon v-if="isSaving" name="mdi:loading" class="animate-spin text-base" />
|
||||
<span>{{ isSaving ? 'Salvando...' : submitLabel }}</span>
|
||||
</button>
|
||||
|
||||
<button v-if="perfil" type="button" :disabled="isSaving" @click="removerPerfil"
|
||||
class="inline-flex h-10 items-center justify-center rounded-full border border-red-300 bg-transparent px-6 text-[15px] font-medium text-red-700 transition hover:border-red-500 disabled:cursor-not-allowed disabled:opacity-70">
|
||||
class="inline-flex min-h-10 items-center justify-center rounded-full border border-red-300 bg-transparent px-6 py-2 text-[15px] font-medium text-red-700 transition hover:border-red-500 disabled:cursor-not-allowed disabled:opacity-70">
|
||||
Remover perfil
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user