diff --git a/superpage/src/pages/[slug].astro b/superpage/src/pages/[slug].astro index f0d986b..20e19f7 100644 --- a/superpage/src/pages/[slug].astro +++ b/superpage/src/pages/[slug].astro @@ -46,7 +46,7 @@ const { Content } = await render(course); />
- + { data.course.reciclagem ? ( <>Curso de reciclagem @@ -58,6 +58,7 @@ const { Content } = await render(course);

{data.title}

@@ -66,7 +67,6 @@ const { Content } = await render(course); [1] @@ -98,7 +98,6 @@ const { Content } = await render(course);
; -} - -const { id, className, query, uiOptions = {} } = Astro.props; const bundlePath = `${import.meta.env.BASE_URL}pagefind/`; ---
+ diff --git a/superpage/src/pages/index.astro b/superpage/src/pages/index.astro index b846ca8..197adc1 100644 --- a/superpage/src/pages/index.astro +++ b/superpage/src/pages/index.astro @@ -5,7 +5,6 @@ import Layout from "~/layouts/Layout.astro"; import Container from "~/components/Container.astro"; import { Clients } from "~/components/Course"; import Search from "./_components/Search.astro"; -// import Search from "astro-pagefind/components/Search"; import mulhercomepi from "~/assets/mulher-com-epi.png"; --- @@ -27,25 +26,13 @@ import mulhercomepi from "~/assets/mulher-com-epi.png"; -
- - -
+
diff --git a/superpage/src/styles/app.css b/superpage/src/styles/app.css index d481f9a..75a13c6 100644 --- a/superpage/src/styles/app.css +++ b/superpage/src/styles/app.css @@ -11,20 +11,17 @@ body { @apply text-white bg-black scroll-pt-22 antialiased; } -/* .pagefind-ui { - @apply w-full; -} */ - +/* Pagefind */ .pagefind-ui__form { @apply flex; } .pagefind-ui__search-input { - @apply focus:outline-none w-full placeholder:text-white h-13 px-4; + @apply focus:outline-none w-full placeholder:text-white h-10 lg:h-12 px-3.5; } .pagefind-ui__search-clear { - @apply cursor-pointer px-2.5 text-sm hover:underline; + @apply cursor-pointer px-3.5 text-sm hover:underline; } .pagefind-ui__result-excerpt, @@ -34,7 +31,7 @@ body { } .pagefind-ui__drawer { - @apply absolute w-full top-full bg-white mt-1.5 p-5 rounded-xl drop-shadow space-y-2.5 z-5; + @apply absolute w-full top-full bg-white mt-1.5 p-2.5 lg:p-5 rounded-xl drop-shadow space-y-2.5 z-10; } .pagefind-ui__results { @@ -51,5 +48,9 @@ body { } .pagefind-ui__button { - @apply text-center text-sm cursor-pointer hover:underline border border-gray-200 rounded-lg p-1.5 w-full; + @apply text-sm cursor-pointer hover:underline; +} + +.pagefind-ui__loading { + @apply w-full h-6 bg-gray-100 animate-pulse text-transparent rounded-lg; }