Badget.astro component displays an animated badge indicating immediate availability. It features a pulsing animation and is positioned absolutely in the top-right corner of its container.
The component filename contains a typo:
Badget.astro instead of Badge.astro. This is preserved in the source code.Props
This component does not accept any props. It displays a fixed message “Disponibilidad inmediata” (Immediate availability).Usage
Import and use the Badge component in your Astro pages:Example
The Badge component is used in the hero section of the CV Staff Web project:src/sections/hero.astro
Styling
The Badge component includes:- Background: Primary brand color
- Border radius: 2rem for pill shape
- Position: Absolute positioning (top: 1rem, right: 1rem)
- Animation: Continuous pulse effect that scales from 1 to 1.02
- Z-index: Uses
var(--deco-layer)for proper layering