style: ajusta responsividade geral do projeto

This commit is contained in:
2026-05-28 19:04:17 -05:00
parent f5375c42ee
commit 98bdc96b6a
11 changed files with 198 additions and 176 deletions

View File

@@ -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(232,184,196,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(168,200,232,0.56),transparent_34%)] blur-2xl"
aria-hidden="true"></div>
<main class="relative mx-auto grid w-full max-w-[1120px] gap-8" aria-labelledby="favoritos-title">
<main class="relative mx-auto grid w-full min-w-0 max-w-[1120px] gap-6 md:gap-8" aria-labelledby="favoritos-title">
<header class="flex flex-col gap-5 sm:flex-row sm:items-end sm:justify-between">
<div>
<p
@@ -12,7 +13,7 @@
Favoritos
</p>
<h1 id="favoritos-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]">
Meus favoritos
</h1>
<p class="m-0 max-w-[560px] text-base font-normal leading-6 tracking-[0.16px] text-[#4e4e4e]">
@@ -22,7 +23,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="Lista de jogos favoritos">
<div>
<span
@@ -56,24 +57,24 @@
<div v-else class="overflow-hidden rounded-xl border border-[#e7e5e4]">
<div
class="hidden bg-[#fafafa] px-4 py-3 text-xs font-semibold uppercase leading-[1.4] tracking-[0.96px] text-[#777169] md:grid md:grid-cols-[minmax(0,1fr)_160px] md:gap-4">
class="hidden bg-[#fafafa] px-4 py-3 text-xs font-semibold uppercase leading-[1.4] tracking-[0.96px] text-[#777169] lg:grid lg:grid-cols-[minmax(0,1fr)_160px] lg:gap-4">
<span>Jogo</span>
<span>Ação</span>
</div>
<ul class="grid divide-y divide-[#e7e5e4]">
<li v-for="game in favorites" :key="game.id"
class="grid items-center gap-4 bg-white p-4 md:grid-cols-[minmax(0,1fr)_160px] md:gap-4">
<div class="flex items-center gap-3">
class="grid min-w-0 items-center gap-4 bg-white p-4 lg:grid-cols-[minmax(0,1fr)_160px] lg:gap-4">
<div class="flex min-w-0 items-center gap-3">
<Icon name="mdi:heart" class="shrink-0 text-rose-500" />
<span class="text-base font-medium leading-6 tracking-[0.16px] text-[#0c0a09]">
<span class="min-w-0 break-words text-base font-medium leading-6 tracking-[0.16px] text-[#0c0a09]">
{{ game.game_id }}
</span>
</div>
<button type="button" :disabled="removingId === game.game_id"
:aria-label="`Remover ${game.game_id} dos favoritos`" @click="removeFavorite(game)"
class="inline-flex h-9 items-center justify-center gap-2 rounded-full border border-[#e7e5e4] px-4 text-[13px] font-medium leading-none text-[#777169] transition hover:border-red-300 hover:text-red-600 disabled:cursor-not-allowed disabled:opacity-50">
class="inline-flex min-h-9 w-full items-center justify-center gap-2 rounded-full border border-[#e7e5e4] px-4 py-2 text-[13px] font-medium leading-none text-[#777169] transition hover:border-red-300 hover:text-red-600 disabled:cursor-not-allowed disabled:opacity-50 sm:w-fit lg:w-full">
<Icon :name="removingId === game.game_id ? 'mdi:loading' : 'mdi:heart-remove-outline'"
:class="['text-sm', removingId === game.game_id && 'animate-spin']" />
<span class="hidden sm:inline">{{