1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Tipografía typographyeditorialparagraph

Drop Cap Paragraph

Párrafo editorial clásico con letra capitular inicial grande y estilizada.

Vista Previa en Vivo

Drop Cap Paragraph

Uso

Copia y pega este código directamente en tu página de Astro:

astro
---
import { DropCapParagraph } from 'astro-component-kit';
---

<DropCapParagraph>Content</DropCapParagraph>
--- import { DropCapParagraph } from 'astro-component-kit'; --- <DropCapParagraph>Content</DropCapParagraph>

Instalación Manual

Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/lib/DropCapParagraph.astro:

astro
---
---
<p class="drop-p"><slot /></p>
<style>
  .drop-p { color: #94a3b8; line-height: 1.8; font-size: 1.1rem; }
  .drop-p::first-letter { float: left; font-size: 4rem; font-weight: 900; line-height: 0.8; margin-right: 0.5rem; margin-top: 0.5rem; color: #fff; background: linear-gradient(135deg, #6366f1, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
</style>
--- --- <p class="drop-p"><slot /></p> <style> .drop-p { color: #94a3b8; line-height: 1.8; font-size: 1.1rem; } .drop-p::first-letter { float: left; font-size: 4rem; font-weight: 900; line-height: 0.8; margin-right: 0.5rem; margin-top: 0.5rem; color: #fff; background: linear-gradient(135deg, #6366f1, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } </style>

Información Rápida

Categoría
Tipografía
Nombre de archivo
DropCapParagraph.astro
Dependencias
Ninguna — Astro nativo + CSS puro
Etiquetas
typographyeditorialparagraph