From 91d03d194efcabb7641e65b18428de6054b65266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Rafael=20Siqueira?= Date: Mon, 21 Apr 2025 12:23:43 -0300 Subject: [PATCH] add icon --- superpage/astro.config.mjs | 2 +- superpage/src/components/HeaderNav.astro | 4 +- .../src/icons/arrow-left-end-on-rectangle.svg | 3 + superpage/src/icons/{xmark.svg => x-mark.svg} | 0 superpage/src/layouts/Layout.astro | 79 ++++++++++--------- superpage/src/pages/blog/[slug].astro | 2 +- 6 files changed, 48 insertions(+), 42 deletions(-) create mode 100644 superpage/src/icons/arrow-left-end-on-rectangle.svg rename superpage/src/icons/{xmark.svg => x-mark.svg} (100%) diff --git a/superpage/astro.config.mjs b/superpage/astro.config.mjs index b6620e2..74120a1 100644 --- a/superpage/astro.config.mjs +++ b/superpage/astro.config.mjs @@ -10,7 +10,7 @@ import icon from 'astro-icon' // https://astro.build/config export default defineConfig({ - // site: 'https://eduseg.com.br', + site: 'https://eduseg.com.br', integrations: [ react(), sitemap(), diff --git a/superpage/src/components/HeaderNav.astro b/superpage/src/components/HeaderNav.astro index 52f424a..ca75780 100644 --- a/superpage/src/components/HeaderNav.astro +++ b/superpage/src/components/HeaderNav.astro @@ -26,6 +26,7 @@ import Container from './Container.astro' +
- +
@@ -54,4 +55,5 @@ import Container from './Container.astro'
+ diff --git a/superpage/src/icons/arrow-left-end-on-rectangle.svg b/superpage/src/icons/arrow-left-end-on-rectangle.svg new file mode 100644 index 0000000..842dc33 --- /dev/null +++ b/superpage/src/icons/arrow-left-end-on-rectangle.svg @@ -0,0 +1,3 @@ + + + diff --git a/superpage/src/icons/xmark.svg b/superpage/src/icons/x-mark.svg similarity index 100% rename from superpage/src/icons/xmark.svg rename to superpage/src/icons/x-mark.svg diff --git a/superpage/src/layouts/Layout.astro b/superpage/src/layouts/Layout.astro index d4e959c..9d2ae40 100644 --- a/superpage/src/layouts/Layout.astro +++ b/superpage/src/layouts/Layout.astro @@ -1,15 +1,14 @@ --- export interface Props { - title: string + title: string } import '@fontsource/roboto' import '~/styles/app.css' import Logo from '~/components/logos/Eduseg.astro' -import Head from './Head.astro' import Container from '~/components/Container.astro' import HeaderNav from '~/components/HeaderNav.astro' -import { ArrowLeftStartOnRectangleIcon } from '@heroicons/react/24/solid' +import { Icon } from 'astro-icon/components' import { getCollection } from 'astro:content' const courses = await getCollection('courses', ({ data }) => data.draft != true) @@ -20,46 +19,48 @@ const year = new Date().getFullYear() - - - - - - - - Educação que garante sua segurança — EDUSEG® - - + + + + + + + + Educação que garante sua segurança — EDUSEG® + + - - - + + + + + - - + + - + -
- -
+
+ +
-
- - © {year} EDUSEG® Todos os direitos reservados. CNPJ15.608.435/0001-90 - -
+
+ + © {year} EDUSEG® Todos os direitos reservados. CNPJ15.608.435/0001-90 + +
- - + + diff --git a/superpage/src/pages/blog/[slug].astro b/superpage/src/pages/blog/[slug].astro index 084ae1e..df7d875 100644 --- a/superpage/src/pages/blog/[slug].astro +++ b/superpage/src/pages/blog/[slug].astro @@ -1,6 +1,6 @@ --- import Layout from '~/layouts/Layout.astro' -import Container from '~/components/Container' +import Container from '~/components/Container.astro' export async function getStaticPaths() { const data = await fetch('https://betaeducacao.com.br/wp-json/wp/v2/posts')