add icon
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -26,6 +26,7 @@ import Container from './Container.astro'
|
||||
</button>
|
||||
</Container>
|
||||
|
||||
<!-- Dropdown Menu -->
|
||||
<div
|
||||
x-cloak
|
||||
x-show="open"
|
||||
@@ -41,7 +42,7 @@ import Container from './Container.astro'
|
||||
aria-hidden={true}
|
||||
x-on:click="open = false"
|
||||
>
|
||||
<Icon name="xmark" />
|
||||
<Icon name="x-mark" />
|
||||
</button>
|
||||
|
||||
<div class="border-b border-black pb-6 lg:pb-12 mb-6 lg:mb-12">
|
||||
@@ -54,4 +55,5 @@ import Container from './Container.astro'
|
||||
</div>
|
||||
</Container>
|
||||
</div>
|
||||
<!-- Dropdown Menu End -->
|
||||
</nav>
|
||||
|
||||
3
superpage/src/icons/arrow-left-end-on-rectangle.svg
Normal file
3
superpage/src/icons/arrow-left-end-on-rectangle.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 337 B |
|
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 206 B |
@@ -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()
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<slot name="head">
|
||||
<title>Educação que garante sua segurança — EDUSEG®</title>
|
||||
</slot>
|
||||
</head>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<slot name="head">
|
||||
<title>Educação que garante sua segurança — EDUSEG®</title>
|
||||
</slot>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<Container class="flex items-center py-3">
|
||||
<a href="/" aria-label="Página inicial"><Logo className="h-8" /></a>
|
||||
<body>
|
||||
<Container class="flex items-center py-3">
|
||||
<a href="/" aria-label="Página inicial">
|
||||
<Logo className="h-8" />
|
||||
</a>
|
||||
|
||||
<div class="ml-auto">
|
||||
<a href="//app.betaeducacao.com.br" class="flex gap-1 items-center hover:outline rounded-xs">
|
||||
<ArrowLeftStartOnRectangleIcon className="w-5 rotate-180" />
|
||||
<>Entrar</>
|
||||
</a>
|
||||
</div>
|
||||
</Container>
|
||||
<div class="ml-auto">
|
||||
<a href="//app.betaeducacao.com.br" class="flex gap-1 items-center hover:outline rounded-xs">
|
||||
<Icon name="arrow-left-end-on-rectangle" class="size-5 rotate-180" />
|
||||
<>Entrar</>
|
||||
</a>
|
||||
</div>
|
||||
</Container>
|
||||
|
||||
<HeaderNav />
|
||||
<HeaderNav />
|
||||
|
||||
<main id="content">
|
||||
<slot />
|
||||
</main>
|
||||
<main id="content">
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<footer class="py-6 text-white/70">
|
||||
<Container>
|
||||
© {year} EDUSEG® Todos os direitos reservados. CNPJ15.608.435/0001-90
|
||||
</Container>
|
||||
</footer>
|
||||
<footer class="py-6 text-white/70">
|
||||
<Container>
|
||||
© {year} EDUSEG® Todos os direitos reservados. CNPJ15.608.435/0001-90
|
||||
</Container>
|
||||
</footer>
|
||||
|
||||
<style is:global>
|
||||
/* https://css-tricks.com/almanac/properties/c/content-visibility/ */
|
||||
img {
|
||||
content-visibility: auto;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
<style is:global>
|
||||
/* https://css-tricks.com/almanac/properties/c/content-visibility/ */
|
||||
img {
|
||||
content-visibility: auto;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user