diff --git a/superpage/astro.config.mjs b/superpage/astro.config.mjs
index c12dc54..af3a677 100644
--- a/superpage/astro.config.mjs
+++ b/superpage/astro.config.mjs
@@ -13,7 +13,7 @@ export default defineConfig({
integrations: [
sitemap(),
icon(),
- alpinejs({ entrypoint: '/src/entrypoint' }),
+ alpinejs(),
partytown({
config: {
forward: ['dataLayer.push', 'fbq'],
diff --git a/superpage/package-lock.json b/superpage/package-lock.json
index 5cbc10a..a32b5d6 100644
--- a/superpage/package-lock.json
+++ b/superpage/package-lock.json
@@ -8,7 +8,6 @@
"name": "eduseg",
"version": "0.0.1",
"dependencies": {
- "@alpinejs/collapse": "^3.14.9",
"@astrojs/alpinejs": "^0.4.6",
"@astrojs/partytown": "^2.1.4",
"@astrojs/sitemap": "^3.3.0",
@@ -22,12 +21,6 @@
"tailwindcss": "^4.0.13"
}
},
- "node_modules/@alpinejs/collapse": {
- "version": "3.14.9",
- "resolved": "https://registry.npmjs.org/@alpinejs/collapse/-/collapse-3.14.9.tgz",
- "integrity": "sha512-cUjbBVo4KR/CfFg0cLB+Q7a8SnjmD4MdxmtZvFjh25Dlf/ZWYPSPx/28b+aAykuX/SUoDPQRmdFiVVvq+iILHw==",
- "license": "MIT"
- },
"node_modules/@antfu/install-pkg": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-1.0.0.tgz",
diff --git a/superpage/package.json b/superpage/package.json
index c0899df..715d1f9 100644
--- a/superpage/package.json
+++ b/superpage/package.json
@@ -9,7 +9,6 @@
"astro": "astro"
},
"dependencies": {
- "@alpinejs/collapse": "^3.14.9",
"@astrojs/alpinejs": "^0.4.6",
"@astrojs/partytown": "^2.1.4",
"@astrojs/sitemap": "^3.3.0",
diff --git a/superpage/src/components/Accordion.astro b/superpage/src/components/Accordion.astro
deleted file mode 100644
index e82ba17..0000000
--- a/superpage/src/components/Accordion.astro
+++ /dev/null
@@ -1,6 +0,0 @@
-
- Why do they call it Ovaltine?
-
-
The mug is round. The jar is round. They should call it Roundtine.
-
-
diff --git a/superpage/src/components/Bookmark.jsx b/superpage/src/components/Bookmark.jsx
deleted file mode 100644
index 724bde0..0000000
--- a/superpage/src/components/Bookmark.jsx
+++ /dev/null
@@ -1,29 +0,0 @@
-export function Bookmark(props) {
- return (
-
-
-
-
-
-
-
-
-
-
- )
-}
diff --git a/superpage/src/components/Card.tsx b/superpage/src/components/Card.tsx
deleted file mode 100644
index 73d1305..0000000
--- a/superpage/src/components/Card.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import clsx from 'clsx'
-
-interface CardProps {
- children: React.ReactNode
- color?: 'gradient' | 'darker' | 'yellow' | 'zinc'
- className?: string | undefined
-}
-
-export function Card({ children, color = 'gradient', className }: CardProps) {
- const colorVariants = {
- gradient: 'bg-linear-to-tr from-[#8CD366] via-[#C7D174] to-[#FFCF82]',
- darker: 'bg-green-primary text-white',
- yellow: 'text-green-primary bg-yellow-tertiary',
- zinc: 'text-white bg-zinc-900',
- }
-
- return (
-
- {children}
-
- )
-}
diff --git a/superpage/src/components/Faq.jsx b/superpage/src/components/Faq.jsx
deleted file mode 100644
index e31a2f4..0000000
--- a/superpage/src/components/Faq.jsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import { Disclosure, DisclosureButton, DisclosurePanel } from '@headlessui/react'
-import { ChevronDownIcon } from '@heroicons/react/24/solid'
-
-export function Faq({ topics }) {
- return (
- <>
- {topics?.map((topic, idx) => (
-
-
- {idx + 1}. {topic}
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sit amet neque id libero semper vulputate a
- ut ex. Pellentesque semper ultrices mi in efficitur.
-
-
- Nulla sit amet quam eu neque convallis volutpat. Pellentesque eu commodo sem. Suspendisse ac lobortis
- massa, ac mattis mauris. Integer malesuada bibendum ante, sed consequat augue convallis et.
-
-
-
- ))}
- >
- )
-}
-
-export function ListItem({ children, ...props }) {
- return (
-
- {children}
-
- )
-}
-
-export function ListButton({ children }) {
- return (
-
- {children}
-
-
- )
-}
-
-export function ListPanel({ children }) {
- return {children}
-}
diff --git a/superpage/src/components/HeaderNav.astro b/superpage/src/components/HeaderNav.astro
index d68bd0b..57674f8 100644
--- a/superpage/src/components/HeaderNav.astro
+++ b/superpage/src/components/HeaderNav.astro
@@ -1,6 +1,9 @@
---
import { Icon } from 'astro-icon/components'
import Container from './Container.astro'
+
+import { getCollection } from 'astro:content'
+const courses = await getCollection('courses', ({ data }) => data.draft != true)
---
NR-18 PEMT Plataforma Móvel de Trabalho
-
+
@@ -60,6 +62,20 @@ import Container from './Container.astro'
Conheça outros cursos da EDUSEG®
+
+
+ {
+ courses.map(({ data: { title, slug } }) => {
+ return (
+
+
+ {title}
+
+
+ )
+ })
+ }
+
diff --git a/superpage/src/entrypoint.ts b/superpage/src/entrypoint.ts
deleted file mode 100644
index 11b5e83..0000000
--- a/superpage/src/entrypoint.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import type { Alpine } from 'alpinejs'
-import collapse from '@alpinejs/collapse'
-
-export default (Alpine: Alpine) => {
- Alpine.plugin(collapse)
-}
diff --git a/superpage/src/icons/lock-closed.svg b/superpage/src/icons/lock-closed.svg
index a10b095..9e2c218 100644
--- a/superpage/src/icons/lock-closed.svg
+++ b/superpage/src/icons/lock-closed.svg
@@ -1,3 +1,3 @@
-
-
+
+
diff --git a/superpage/src/layouts/Layout.astro b/superpage/src/layouts/Layout.astro
index 2502e9e..8038e0e 100644
--- a/superpage/src/layouts/Layout.astro
+++ b/superpage/src/layouts/Layout.astro
@@ -6,9 +6,6 @@ import Container from '~/components/Container.astro'
import HeaderNav from '~/components/HeaderNav.astro'
import { Icon } from 'astro-icon/components'
-import { getCollection } from 'astro:content'
-const courses = await getCollection('courses', ({ data }) => data.draft != true)
-
const year = new Date().getFullYear()
---
diff --git a/superpage/src/pages/[slug].astro b/superpage/src/pages/[slug].astro
index 1f2de96..9d74663 100644
--- a/superpage/src/pages/[slug].astro
+++ b/superpage/src/pages/[slug].astro
@@ -180,24 +180,24 @@ const trainer = data.course?.trainer ? await getEntry(data.course?.trainer) : nu
{
data.course.modules.map((summary) => (
{summary}
@@ -261,7 +261,7 @@ const trainer = data.course?.trainer ? await getEntry(data.course?.trainer) : nu
-
+
diff --git a/superpage/src/pages/index.astro b/superpage/src/pages/index.astro
index 871614d..31e90ab 100644
--- a/superpage/src/pages/index.astro
+++ b/superpage/src/pages/index.astro
@@ -9,14 +9,13 @@ let posts = await res.json()
{
- posts.map((post) => (
-
-
-
-
-
-
- ))
+ posts.map((post) => (
+
+
+
+
+
+ ))
}
diff --git a/superpage/src/styles/app.css b/superpage/src/styles/app.css
index a784ba5..a49eb16 100644
--- a/superpage/src/styles/app.css
+++ b/superpage/src/styles/app.css
@@ -1,24 +1,12 @@
@import 'tailwindcss';
@theme {
- --font-sans:
- 'Roboto', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
- 'Noto Color Emoji';
-
- --color-yellow-primary: #ffcf82;
- --color-yellow-secondary: #f2ebe1;
- --color-yellow-tertiary: #f9f7e8;
-
- --color-green-primary: #2e3524;
- --color-green-secondary: #8cd366;
- --color-green-tertiary: #83926d;
- --color-green-support: #c9fcad;
- --color-green-pastel: #f9fff6;
- --color-green-light: #cad9b4;
- --color-green-dark: #4e8630;
+ --font-sans:
+ 'Roboto', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
+ 'Noto Color Emoji';
}
html,
body {
- @apply text-white bg-black scroll-pt-22;
+ @apply text-white bg-black scroll-pt-22;
}