source-code/
snakey
Public
codeCodeinfoIssues 0call_splitPull Requestsplay_circleActions
snakey/src/components/Header.tsx
typescript32 lines1.3 KB
import { motion } from 'framer-motion';

export default function Header() {
  return (
    <motion.div
      layout
      className="w-full max-w-4xl flex flex-col items-center z-10 mb-12 shrink-0 text-center relative"
    >
      <h1 className="text-5xl md:text-6xl font-extrabold tracking-tight mb-4 drop-shadow-sm">
        <span className="gradient-text font-sans">Snakey</span>
      </h1>
      <p className="text-lg md:text-xl text-on-surface-variant font-medium leading-relaxed max-w-xl mb-8">
        A minimalist modern snake game.
        <br />
        <span className="text-sm text-slate-400 font-normal">Try not to let it out of the box...</span>
      </p>
      
      <div className="flex flex-wrap justify-center gap-3">
        <span className="bg-white/60 backdrop-blur-md text-primary px-4 py-2 rounded-full font-mono text-xs border border-white/80 shadow-sm">
          Clean UI
        </span>
        <span className="bg-white/60 backdrop-blur-md text-primary px-4 py-2 rounded-full font-mono text-xs border border-white/80 shadow-sm">
          React 19
        </span>
        <span className="bg-white/60 backdrop-blur-md text-primary px-4 py-2 rounded-full font-mono text-xs border border-white/80 shadow-sm">
          Phaser 3
        </span>
      </div>
    </motion.div>
  );
}

About

Snakey Web Game is the official hub and sandbox playground for the Snakey project. Built with React 19, Phaser 3, and Tailwind CSS, it offers a central playable zone alongside a Sandbox Playground that lets visitors test eating custom HTML elements. It also hosts and serves self-compiled browser extension packages (ZIP) for Chrome and Firefox, as well as a dynamically-generated bookmarklet installer that enables users to drag-and-drop a shortcut to run the game on any external website.

Web GamePhaserReactTypeScriptTailwind CSSViteBookmarklet

Contributors

1