1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Tarjetascardretro

Retro Arcade Game Card

Tarjeta retro de videojuegos con tipografías pixeladas y líneas de escaneo CRT.

Vista Previa en Vivo

SCORE:

Uso

Copia y pega este código directamente en tu componente React:

tsx
import { RetroGameCard } from 'react-component-kit-ui/cards';

<RetroGameCard title="SUPER ASTRO" level="LVL 01" score="4820" />

Instalación Manual

Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/RetroGameCard.tsx + RetroGameCard.css:

RetroGameCard.tsx
'use client';

import './RetroGameCard.css';

/**
 * RetroGameCard — Bold gaming card with scanlines and pixel fonts.
 * 
 * @param {string} title - The retro game title.
 * @param {string} level - Current stage or level string.
 * @param {number|string} score - The player's score.
 */
export interface RetroGameCardProps {
  title: string;
  level: string;
  score: number | string;
}

export function RetroGameCard({ title, level, score }: RetroGameCardProps) {
  return (
    <>
      <div className="retro-game" data-rk-d37617="">
        <div className="retro-game__scanlines" data-rk-d37617=""></div>
        <div className="retro-game__screen" data-rk-d37617="">{level}</div>
        <h3 className="retro-game__title" data-rk-d37617="">{title}</h3>
        <div className="retro-game__score" data-rk-d37617="">SCORE: {score}</div>
      </div>
    </>
  );
}

export default RetroGameCard;
RetroGameCard.css
/* RetroGameCard — ported from astro-component-kit (cards/RetroGameCard.astro) */

.retro-game:where([data-rk-d37617]) { 
  background: #22c55e; border: 4px solid #000; 
  padding: var(--sp-4, 1rem); position: relative; 
  box-shadow: 8px 8px 0 #000; 
  font-family: 'Courier New', Courier, monospace; 
}
.retro-game__screen:where([data-rk-d37617]) { 
  background: #000; color: #22c55e; 
  padding: var(--sp-4, 1rem); text-align: center; 
  font-weight: 900; margin-bottom: 0.5rem; text-transform: uppercase;
}
.retro-game__scanlines:where([data-rk-d37617]) { 
  position: absolute; inset: 0; pointer-events: none; 
  background: linear-gradient(rgba(0,0,0,0.1) 50%, transparent 50%); background-size: 100% 4px; 
}
.retro-game__title:where([data-rk-d37617]) { margin: 0; font-size: 1.1rem; color: #000; font-weight: 900; text-transform: uppercase; }
.retro-game__score:where([data-rk-d37617]) { font-size: 0.8rem; color: #000; margin-top: 0.5rem; font-weight: bold; }

Información Rápida

Categoría
Tarjetas
Nombre de archivo
RetroGameCard.tsx
Dependencias
Ninguna — React + CSS puro
Etiquetas
cardretro