From 9b162aa539ab4c0919eeb66937fb01f54da74c4d Mon Sep 17 00:00:00 2001 From: MatheusTrindade5201 Date: Wed, 13 Nov 2024 17:41:13 -0300 Subject: [PATCH] feat: Header UI --- .deco/blocks/Header.json | 2 +- .deco/blocks/Neutral.json | 32 +++++++++++++++-- sections/Header.tsx | 76 ++++++++++++--------------------------- static/tailwind.css | 20 ++++++++--- 4 files changed, 69 insertions(+), 61 deletions(-) diff --git a/.deco/blocks/Header.json b/.deco/blocks/Header.json index ee2cec9..d8ddb55 100644 --- a/.deco/blocks/Header.json +++ b/.deco/blocks/Header.json @@ -21,6 +21,6 @@ "buttons": [] }, "logo": { - "src": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/quorum/01c27184-1e86-442f-b399-26127b0aa401/LOGOCOMPLETA-SEMFUNDO.png" + "src": "https://deco-sites-assets.s3.sa-east-1.amazonaws.com/quorum/46316b91-d569-404a-b52e-1babd555037e/LOGOCOMPLETA-SEMFUNDO.svg" } } \ No newline at end of file diff --git a/.deco/blocks/Neutral.json b/.deco/blocks/Neutral.json index 78b744f..54896ad 100644 --- a/.deco/blocks/Neutral.json +++ b/.deco/blocks/Neutral.json @@ -29,8 +29,36 @@ "__resolveType": "website/loaders/fonts/googleFonts.ts", "fonts": [ { - "variations": [], - "family": "Albert Sans" + "variations": [ + { + "weight": "100" + }, + { + "weight": "200" + }, + { + "weight": "300" + }, + { + "weight": "400" + }, + { + "weight": "500" + }, + { + "weight": "600" + }, + { + "weight": "700" + }, + { + "weight": "800" + }, + { + "weight": "900" + } + ], + "family": "Poppins" } ] }, diff --git a/sections/Header.tsx b/sections/Header.tsx index 3f92956..a9c6238 100644 --- a/sections/Header.tsx +++ b/sections/Header.tsx @@ -19,14 +19,12 @@ export interface Nav { label?: string; url?: string; }[]; - buttons: CTA[]; }; } export default function Header({ logo = { - src: - "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/1527/67120bcd-936a-4ea5-a760-02ed5c4a3d04", + src: "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/1527/67120bcd-936a-4ea5-a760-02ed5c4a3d04", alt: "Logo", }, navigation = { @@ -36,10 +34,6 @@ export default function Header({ { label: "Princing", url: "/" }, { label: "Contact", url: "/" }, ], - buttons: [ - { id: "change-me-1", href: "/", text: "Change me", outline: false }, - { id: "change-me-2", href: "/", text: "Change me", outline: true }, - ], }, }: Nav) { return ( @@ -47,47 +41,38 @@ export default function Header({ {/* main content */} -
+
- {logo.alt} + {logo.alt} - @@ -100,41 +85,24 @@ export default function Header({ class="drawer-overlay" /> -
+
- {logo.alt} + {logo.alt} - -
diff --git a/static/tailwind.css b/static/tailwind.css index 5d54088..4923ad6 100644 --- a/static/tailwind.css +++ b/static/tailwind.css @@ -2906,6 +2906,9 @@ input.tab:checked + .tab-content, .w-2 { width: 0.5rem; } +.w-32 { + width: 8rem; +} .w-80 { width: 20rem; } @@ -3006,6 +3009,9 @@ input.tab:checked + .tab-content, .max-w-\[80px\] { max-width: 80px; } +.max-w-\[80vw\] { + max-width: 80vw; +} .max-w-full { max-width: 100%; } @@ -3400,10 +3406,6 @@ input.tab:checked + .tab-content, padding-top: 0.75rem; padding-bottom: 0.75rem; } -.py-4 { - padding-top: 1rem; - padding-bottom: 1rem; -} .py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; @@ -3437,6 +3439,9 @@ input.tab:checked + .tab-content, .pr-4 { padding-right: 1rem; } +.pt-10 { + padding-top: 2.5rem; +} .pt-12 { padding-top: 3rem; } @@ -3763,6 +3768,9 @@ input.tab:checked + .tab-content, .disabled\:hidden:disabled { display: none; } +.group:first-child .group-first\:font-bold { + font-weight: 700; +} .group[open] .group-open\:rotate-180 { --tw-rotate: 180deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -3909,6 +3917,10 @@ input.tab:checked + .tab-content, width: 40%; } + .lg\:w-48 { + width: 12rem; + } + .lg\:w-\[40\%\] { width: 40%; }