feat(layout): add footer component and centralize imports in Landing layout
This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
---
|
---
|
||||||
|
import '@/styles/global.css'
|
||||||
|
import '@fontsource-variable/roboto'
|
||||||
|
import '@fontsource/orbitron/900.css'
|
||||||
|
import '@fortawesome/fontawesome-free/css/fontawesome.min.css'
|
||||||
|
import '@fortawesome/fontawesome-free/css/solid.min.css'
|
||||||
|
import '@fortawesome/fontawesome-free/css/brands.min.css'
|
||||||
|
import Footer from '@/components/layout/parts/Footer.astro'
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
title?: string
|
title?: string
|
||||||
description?: string
|
description?: string
|
||||||
@@ -37,5 +45,6 @@ const seoImage =
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main><slot /></main>
|
<main><slot /></main>
|
||||||
|
<Footer />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
25
src/components/layout/parts/Footer.astro
Normal file
25
src/components/layout/parts/Footer.astro
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
import { css } from '@styled-system/css'
|
||||||
|
|
||||||
|
const footerLegendClass = css({
|
||||||
|
paddingBlock: 'md',
|
||||||
|
textAlign: 'center',
|
||||||
|
fontSize: 'sm'
|
||||||
|
})
|
||||||
|
const footerLegendHeartClass = css({
|
||||||
|
color: 'red'
|
||||||
|
})
|
||||||
|
---
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<p class={footerLegendClass}>
|
||||||
|
Hecho con
|
||||||
|
<span class={footerLegendHeartClass}
|
||||||
|
><i class="fa-solid fa-heart"></i></span
|
||||||
|
>
|
||||||
|
y
|
||||||
|
<a href="https://astro.build">Astro</a>
|
||||||
|
por
|
||||||
|
<a href="https://srjuggernaut.dev">Jugger</a>.
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
@@ -1,10 +1,4 @@
|
|||||||
---
|
---
|
||||||
import '@/styles/global.css'
|
|
||||||
import '@fontsource-variable/roboto'
|
|
||||||
import '@fontsource/orbitron/900.css'
|
|
||||||
import '@fortawesome/fontawesome-free/css/fontawesome.min.css'
|
|
||||||
import '@fortawesome/fontawesome-free/css/solid.min.css'
|
|
||||||
import '@fortawesome/fontawesome-free/css/brands.min.css'
|
|
||||||
import Landing from '@/components/layout/Landing.astro'
|
import Landing from '@/components/layout/Landing.astro'
|
||||||
import Hero from '@/components/pages/Home/Hero.astro'
|
import Hero from '@/components/pages/Home/Hero.astro'
|
||||||
import Links from '@/components/pages/Home/Links.astro'
|
import Links from '@/components/pages/Home/Links.astro'
|
||||||
|
|||||||
Reference in New Issue
Block a user