Dev Footer
Pie de página mínimo con una fila de enlaces monoespaciados, copyright y una nota de «hecho con».
Uso
Copia y pega este código directamente en tu página de Astro:
---
import { DevFooter } from 'astro-component-kit/sections';
---
<DevFooter name="Noa Lindqvist" links={[{ label: 'Blog', href: '/blog/' }]} note="Built with Astro" /> ---
import { DevFooter } from 'astro-component-kit/sections';
---
<DevFooter name="Noa Lindqvist" links={[{ label: 'Blog', href: '/blog/' }]} note="Built with Astro" /> Ejemplos en contexto
Código real del kit: cómo se usa esta pieza dentro de plantillas, secciones y otros componentes.
PortfolioLayout.astro <DevFooter
name={site.name}
links={[...links, { label: 'GitHub', href: site.contacts.find((c) => c.kind === 'github')?.href ?? '#' }]}
note="Keycap theme · Astro & Three.js"
/> <DevFooter
name={site.name}
links={[...links, { label: 'GitHub', href: site.contacts.find((c) => c.kind === 'github')?.href ?? '#' }]}
note="Keycap theme · Astro & Three.js"
/> Se usa en
Combina bien con
Instalación Manual
Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/sections/DevFooter.astro:
---
/**
* DevFooter — Minimal footer for developer portfolios ("Keycap" design): a row of mono links, the
* copyright and an optional "built with" note, separated by a hairline.
*
* @param {string} name - Copyright holder.
* @param {Array<{label: string, href: string}>} links - Footer links.
* @param {string} note - Optional small note (e.g. "Built with Astro & Three.js").
* @param {number} year - Copyright year. Default current year.
* @param {string} className - Extra class.
*
* Accessibility: contentinfo landmark with a labelled nav; 44px link targets on touch screens.
*/
interface Props {
name?: string;
links?: Array<{ label: string; href: string }>;
note?: string;
year?: number;
className?: string;
}
const { name = 'Noa Lindqvist', links = [{ label: 'Home', href: '/' }, { label: 'Projects', href: '/projects/' }, { label: 'Blog', href: '/blog/' }, { label: 'Contact', href: '/contact/' }], note, year = new Date().getFullYear(), className = '' } = Astro.props;
---
<footer class:list={['dvft', className]}>
<div class="dvft__wrap">
{links.length > 0 && (
<nav aria-label="Footer">
<ul class="dvft__links">{links.map((l) => <li><a href={l.href}>{l.label}</a></li>)}</ul>
</nav>
)}
<p class="dvft__copy">© {year} {name}{note && <span class="dvft__note"> · {note}</span>}</p>
</div>
</footer>
<style>
.dvft { border-top: 1px solid var(--c-border); padding: 2rem 0; color: var(--c-text-2); }
.dvft__wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 1.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.dvft__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.dvft__links a { display: inline-flex; align-items: center; min-height: 32px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--c-text-2); text-decoration: none; transition: color 0.2s ease; }
.dvft__links a:hover { color: var(--c-text-1); }
.dvft__links a:focus-visible { outline: 2px solid var(--c-text-1); outline-offset: 2px; }
.dvft__copy { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-text-3); }
@media (hover: none) { .dvft__links a { min-height: 44px; } }
</style> ---
/**
* DevFooter — Minimal footer for developer portfolios ("Keycap" design): a row of mono links, the
* copyright and an optional "built with" note, separated by a hairline.
*
* @param {string} name - Copyright holder.
* @param {Array<{label: string, href: string}>} links - Footer links.
* @param {string} note - Optional small note (e.g. "Built with Astro & Three.js").
* @param {number} year - Copyright year. Default current year.
* @param {string} className - Extra class.
*
* Accessibility: contentinfo landmark with a labelled nav; 44px link targets on touch screens.
*/
interface Props {
name?: string;
links?: Array<{ label: string; href: string }>;
note?: string;
year?: number;
className?: string;
}
const { name = 'Noa Lindqvist', links = [{ label: 'Home', href: '/' }, { label: 'Projects', href: '/projects/' }, { label: 'Blog', href: '/blog/' }, { label: 'Contact', href: '/contact/' }], note, year = new Date().getFullYear(), className = '' } = Astro.props;
---
<footer class:list={['dvft', className]}>
<div class="dvft__wrap">
{links.length > 0 && (
<nav aria-label="Footer">
<ul class="dvft__links">{links.map((l) => <li><a href={l.href}>{l.label}</a></li>)}</ul>
</nav>
)}
<p class="dvft__copy">© {year} {name}{note && <span class="dvft__note"> · {note}</span>}</p>
</div>
</footer>
<style>
.dvft { border-top: 1px solid var(--c-border); padding: 2rem 0; color: var(--c-text-2); }
.dvft__wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 1.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.dvft__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.dvft__links a { display: inline-flex; align-items: center; min-height: 32px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--c-text-2); text-decoration: none; transition: color 0.2s ease; }
.dvft__links a:hover { color: var(--c-text-1); }
.dvft__links a:focus-visible { outline: 2px solid var(--c-text-1); outline-offset: 2px; }
.dvft__copy { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-text-3); }
@media (hover: none) { .dvft__links a { min-height: 44px; } }
</style>
Esta sección fue diseñada como un bloque clave para la siguiente plantilla. Puedes ver la experiencia multipágina interactiva completa o explorar todos sus componentes.
Portfolio de desarrollador
Un portfolio monocromo inspirado en un teclado, con proyectos en 3D, un teclado que escribe y una matriz de contribuciones de cubos que vuelan.
Más secciones para explorar
Descubre otros bloques para landing pages y secciones listas para producción de nuestra librería.
Dev Header
Navegación flotante con un logo partido que se contrae al hacer scroll (N·OALINDQVIST·.DEV → N.DEV), enlaces en píldora, cambio de tema claro/oscuro y menú móvil a pantalla completa.
Dev Hero
Hero de desarrollador: un título enorme que se reescribe solo, el nombre cayendo con bloques flotantes, un indicador de estado y una cinta infinita de habilidades con tooltips, sobre una matriz de puntos 3D que se aparta del cursor.
Dev Projects Showcase 3D
Slider 3D de proyectos: tarjetas de papel con contornos de tinta en perspectiva, cada una con un visual animado elegido por datos (código, terminal, ecualizador, monitor, endpoints, pintura, átomo). Arrastra, usa las teclas o las flechas; haz clic para abrir la ficha.
Dev Keyboard 3D
Teclado mecánico 3D a todo el ancho que escribe tu stack solo y lo repite como una palabra gigante de fondo; el contenido del slot (p. ej. una lista de repos) flota sobre las filas inferiores.