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(196,184,232,0.6),transparent_28%),radial-gradient(circle_at_72%_24%,rgba(244,197,168,0.5),transparent_30%),radial-gradient(circle_at_52%_78%,rgba(167,229,211,0.56),transparent_34%)] blur-2xl"
|
||||
aria-hidden="true"></div>
|
||||
|
||||
<main class="relative mx-auto grid w-full max-w-[720px] gap-8" aria-labelledby="criar-title">
|
||||
<main class="relative mx-auto grid w-full min-w-0 max-w-[720px] gap-6 md:gap-8" aria-labelledby="criar-title">
|
||||
<header class="flex flex-col gap-5 sm:flex-row sm:items-end sm:justify-between">
|
||||
<div>
|
||||
<p
|
||||
@@ -12,7 +13,7 @@
|
||||
Catálogo
|
||||
</p>
|
||||
<h1 id="criar-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]">
|
||||
Novo jogo
|
||||
</h1>
|
||||
<p class="m-0 max-w-[560px] text-base font-normal leading-6 tracking-[0.16px] text-[#4e4e4e]">
|
||||
@@ -22,7 +23,7 @@
|
||||
</header>
|
||||
|
||||
<form
|
||||
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 de criação de jogo" @submit.prevent="submitForm">
|
||||
<div>
|
||||
<span
|
||||
@@ -46,7 +47,7 @@
|
||||
Título <span class="text-red-500">*</span>
|
||||
</label>
|
||||
<input id="title" v-model="form.title" type="text" placeholder="Ex: Counter-Strike 2" required
|
||||
class="w-full rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
class="w-full min-w-0 rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
</div>
|
||||
|
||||
<div class="grid gap-1.5">
|
||||
@@ -55,7 +56,7 @@
|
||||
Descrição <span class="text-red-500">*</span>
|
||||
</label>
|
||||
<textarea id="description" v-model="form.description" rows="3" placeholder="Descreva o jogo..." required
|
||||
class="w-full resize-none rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white"></textarea>
|
||||
class="w-full min-w-0 resize-none rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="grid gap-1.5">
|
||||
@@ -64,17 +65,17 @@
|
||||
Developer <span class="text-red-500">*</span>
|
||||
</label>
|
||||
<input id="developer" v-model="form.developer" type="text" placeholder="Ex: Valve" required
|
||||
class="w-full rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
class="w-full min-w-0 rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
</div>
|
||||
|
||||
<div class="grid gap-5 md:grid-cols-2">
|
||||
<div class="grid min-w-0 gap-5 xl:grid-cols-2">
|
||||
<div class="grid gap-1.5">
|
||||
<label for="genres"
|
||||
class="text-xs font-semibold uppercase leading-[1.4] tracking-[0.96px] text-[#777169]">
|
||||
Gêneros <span class="text-red-500">*</span>
|
||||
</label>
|
||||
<input id="genres" v-model="form.genresRaw" type="text" placeholder="Ex: FPS, Ação, Multiplayer" required
|
||||
class="w-full rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
class="w-full min-w-0 rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
<p class="text-xs leading-[1.4] text-[#777169]">Separe com vírgula</p>
|
||||
</div>
|
||||
|
||||
@@ -84,7 +85,7 @@
|
||||
Plataformas <span class="text-red-500">*</span>
|
||||
</label>
|
||||
<input id="platforms" v-model="form.platformsRaw" type="text" placeholder="Ex: PC, PlayStation 5" required
|
||||
class="w-full rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
class="w-full min-w-0 rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
<p class="text-xs leading-[1.4] text-[#777169]">Separe com vírgula</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -99,14 +100,14 @@
|
||||
Opcional — URLs públicas das imagens do jogo.
|
||||
</p>
|
||||
|
||||
<div class="grid gap-5 md:grid-cols-2">
|
||||
<div class="grid min-w-0 gap-5 xl:grid-cols-2">
|
||||
<div class="grid gap-1.5">
|
||||
<label for="thumbnail"
|
||||
class="text-xs font-semibold uppercase leading-[1.4] tracking-[0.96px] text-[#777169]">
|
||||
Thumbnail URL
|
||||
</label>
|
||||
<input id="thumbnail" v-model="form.thumbnail" type="url" placeholder="https://..."
|
||||
class="w-full rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
class="w-full min-w-0 rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
</div>
|
||||
|
||||
<div class="grid gap-1.5">
|
||||
@@ -115,7 +116,7 @@
|
||||
Header URL
|
||||
</label>
|
||||
<input id="header" v-model="form.header" type="url" placeholder="https://..."
|
||||
class="w-full rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
class="w-full min-w-0 rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -127,24 +128,24 @@
|
||||
</span>
|
||||
<p class="mb-4 mt-3 text-[13px] leading-[1.5] text-[#777169]">Opcional.</p>
|
||||
|
||||
<div class="grid gap-5 md:grid-cols-3">
|
||||
<div class="grid min-w-0 gap-5 xl:grid-cols-3">
|
||||
<div class="grid gap-1.5">
|
||||
<label for="cpu"
|
||||
class="text-xs font-semibold uppercase leading-[1.4] tracking-[0.96px] text-[#777169]">CPU</label>
|
||||
<input id="cpu" v-model="form.cpu" type="text" placeholder="Ex: Intel i5-8400"
|
||||
class="w-full rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
class="w-full min-w-0 rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
</div>
|
||||
<div class="grid gap-1.5">
|
||||
<label for="gpu"
|
||||
class="text-xs font-semibold uppercase leading-[1.4] tracking-[0.96px] text-[#777169]">GPU</label>
|
||||
<input id="gpu" v-model="form.gpu" type="text" placeholder="Ex: GTX 1060"
|
||||
class="w-full rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
class="w-full min-w-0 rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
</div>
|
||||
<div class="grid gap-1.5">
|
||||
<label for="ram"
|
||||
class="text-xs font-semibold uppercase leading-[1.4] tracking-[0.96px] text-[#777169]">RAM</label>
|
||||
<input id="ram" v-model="form.ram" type="text" placeholder="Ex: 8 GB"
|
||||
class="w-full rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
class="w-full min-w-0 rounded-xl border border-[#e7e5e4] bg-[#fafafa] px-4 py-2.5 text-[15px] text-[#0c0a09] outline-none transition focus:border-[#0c0a09] focus:bg-white" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -157,13 +158,13 @@
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end gap-3 border-t border-[#e7e5e4] pt-5">
|
||||
<div class="flex flex-col gap-3 border-t border-[#e7e5e4] pt-5 sm:flex-row sm:justify-end">
|
||||
<NuxtLink to="/catalogo"
|
||||
class="inline-flex h-10 items-center justify-center rounded-full border border-[#d6d3d1] bg-transparent px-5 text-[15px] font-medium leading-none text-[#0c0a09] transition hover:border-[#0c0a09]">
|
||||
class="inline-flex min-h-10 items-center justify-center rounded-full border border-[#d6d3d1] bg-transparent px-5 py-2 text-[15px] font-medium leading-none text-[#0c0a09] transition hover:border-[#0c0a09]">
|
||||
Cancelar
|
||||
</NuxtLink>
|
||||
<button type="submit" :disabled="isSubmitting"
|
||||
class="inline-flex h-10 items-center justify-center gap-2 rounded-full bg-[#292524] px-5 text-[15px] font-medium leading-none 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-5 py-2 text-[15px] font-medium leading-none text-white transition hover:bg-[#0c0a09] disabled:cursor-not-allowed disabled:opacity-70">
|
||||
<Icon v-if="isSubmitting" name="mdi:loading" class="animate-spin text-base" />
|
||||
<span>{{ isSubmitting ? 'Salvando...' : 'Salvar jogo' }}</span>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user