add icon
This commit is contained in:
@@ -10,7 +10,7 @@ import icon from 'astro-icon'
|
|||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
// site: 'https://eduseg.com.br',
|
site: 'https://eduseg.com.br',
|
||||||
integrations: [
|
integrations: [
|
||||||
react(),
|
react(),
|
||||||
sitemap(),
|
sitemap(),
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import Container from './Container.astro'
|
|||||||
</button>
|
</button>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
||||||
|
<!-- Dropdown Menu -->
|
||||||
<div
|
<div
|
||||||
x-cloak
|
x-cloak
|
||||||
x-show="open"
|
x-show="open"
|
||||||
@@ -41,7 +42,7 @@ import Container from './Container.astro'
|
|||||||
aria-hidden={true}
|
aria-hidden={true}
|
||||||
x-on:click="open = false"
|
x-on:click="open = false"
|
||||||
>
|
>
|
||||||
<Icon name="xmark" />
|
<Icon name="x-mark" />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="border-b border-black pb-6 lg:pb-12 mb-6 lg:mb-12">
|
<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>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Dropdown Menu End -->
|
||||||
</nav>
|
</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 |
@@ -6,10 +6,9 @@ export interface Props {
|
|||||||
import '@fontsource/roboto'
|
import '@fontsource/roboto'
|
||||||
import '~/styles/app.css'
|
import '~/styles/app.css'
|
||||||
import Logo from '~/components/logos/Eduseg.astro'
|
import Logo from '~/components/logos/Eduseg.astro'
|
||||||
import Head from './Head.astro'
|
|
||||||
import Container from '~/components/Container.astro'
|
import Container from '~/components/Container.astro'
|
||||||
import HeaderNav from '~/components/HeaderNav.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'
|
import { getCollection } from 'astro:content'
|
||||||
const courses = await getCollection('courses', ({ data }) => data.draft != true)
|
const courses = await getCollection('courses', ({ data }) => data.draft != true)
|
||||||
@@ -33,11 +32,13 @@ const year = new Date().getFullYear()
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<Container class="flex items-center py-3">
|
<Container class="flex items-center py-3">
|
||||||
<a href="/" aria-label="Página inicial"><Logo className="h-8" /></a>
|
<a href="/" aria-label="Página inicial">
|
||||||
|
<Logo className="h-8" />
|
||||||
|
</a>
|
||||||
|
|
||||||
<div class="ml-auto">
|
<div class="ml-auto">
|
||||||
<a href="//app.betaeducacao.com.br" class="flex gap-1 items-center hover:outline rounded-xs">
|
<a href="//app.betaeducacao.com.br" class="flex gap-1 items-center hover:outline rounded-xs">
|
||||||
<ArrowLeftStartOnRectangleIcon className="w-5 rotate-180" />
|
<Icon name="arrow-left-end-on-rectangle" class="size-5 rotate-180" />
|
||||||
<>Entrar</>
|
<>Entrar</>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
import Layout from '~/layouts/Layout.astro'
|
import Layout from '~/layouts/Layout.astro'
|
||||||
import Container from '~/components/Container'
|
import Container from '~/components/Container.astro'
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
const data = await fetch('https://betaeducacao.com.br/wp-json/wp/v2/posts')
|
const data = await fetch('https://betaeducacao.com.br/wp-json/wp/v2/posts')
|
||||||
|
|||||||
Reference in New Issue
Block a user