From fef31734d6a3beb657df1a669adcb693cf1c3b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Rafael=20Siqueira?= Date: Mon, 5 May 2025 11:19:03 -0300 Subject: [PATCH] add --- superpage/package-lock.json | 11 +++ superpage/package.json | 1 + .../src/components/Course/BuyDropdown.astro | 2 +- .../src/components/Course/HeaderNav.astro | 16 ++- .../src/components/Course/Solutions.astro | 16 ++- superpage/src/components/SEO.astro | 99 +++++++++++++++++++ superpage/src/data/site-info.ts | 37 +++++++ superpage/src/layouts/Layout.astro | 19 ++-- .../src/layouts/_components/BaseHead.astro | 50 ++++++++++ superpage/src/pages/[slug].astro | 2 +- .../src/pages/_components/BuyButton.astro | 1 + 11 files changed, 234 insertions(+), 20 deletions(-) create mode 100644 superpage/src/components/SEO.astro create mode 100644 superpage/src/data/site-info.ts create mode 100644 superpage/src/layouts/_components/BaseHead.astro diff --git a/superpage/package-lock.json b/superpage/package-lock.json index 402f5e1..086d1f0 100644 --- a/superpage/package-lock.json +++ b/superpage/package-lock.json @@ -26,6 +26,7 @@ "react": "^19.1.0", "react-dom": "^19.1.0", "react-hook-form": "^7.56.0", + "smartypants": "^0.2.2", "tailwindcss": "^4.0.13", "vanilla-cookieconsent": "^3.1.0", "zod": "^3.24.3" @@ -7120,6 +7121,16 @@ "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", "license": "MIT" }, + "node_modules/smartypants": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/smartypants/-/smartypants-0.2.2.tgz", + "integrity": "sha512-TzobUYoEft/xBtb2voRPryAUIvYguG0V7Tt3de79I1WfXgCwelqVsGuZSnu3GFGRZhXR90AeEYIM+icuB/S06Q==", + "license": "BSD-3-Clause", + "bin": { + "smartypants": "bin/smartypants.js", + "smartypantsu": "bin/smartypantsu.js" + } + }, "node_modules/smol-toml": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.3.4.tgz", diff --git a/superpage/package.json b/superpage/package.json index edbadbd..baa590a 100644 --- a/superpage/package.json +++ b/superpage/package.json @@ -27,6 +27,7 @@ "react": "^19.1.0", "react-dom": "^19.1.0", "react-hook-form": "^7.56.0", + "smartypants": "^0.2.2", "tailwindcss": "^4.0.13", "vanilla-cookieconsent": "^3.1.0", "zod": "^3.24.3" diff --git a/superpage/src/components/Course/BuyDropdown.astro b/superpage/src/components/Course/BuyDropdown.astro index 338db73..10bc079 100644 --- a/superpage/src/components/Course/BuyDropdown.astro +++ b/superpage/src/components/Course/BuyDropdown.astro @@ -5,7 +5,7 @@
diff --git a/superpage/src/components/Course/HeaderNav.astro b/superpage/src/components/Course/HeaderNav.astro index c9b8e4f..4cceb5c 100644 --- a/superpage/src/components/Course/HeaderNav.astro +++ b/superpage/src/components/Course/HeaderNav.astro @@ -9,7 +9,7 @@ const courses = await getCollection( ({ data }) => data.draft != true, ); -const { title } = Astro.props; +const { title, course } = Astro.props; ---