Hooks up konami-code-js to trigger emoji-blast in Astro. 🚀
⬆ ⬆ ⬇ ⬇ ⬅ ➡ ⬅ ➡ 🅱 🅰
First install the @konami-emoji-blast/astro
and konami-emoji-blast
packages as dependencies:
npm i @konami-emoji-blast/astro konami-emoji-blast
Then, apply this integration to your astro.config.*
file using the integrations
property:
import { konamiEmojiBlast } from "@konami-emoji-blast/astro";
import { defineConfig } from "astro/config";
export default defineConfig({
// ...
integrations: [konamiEmojiBlast()],
});
Then, pressing the Konami Code on your Astro site should trigger fireworks blasts of emoji on the page. Yay! 🎆
@konami-emoji-blast/astro
is managed as part of the emoji-blast monorepo.
See the monorepo's development docs first, then ./.github/DEVELOPMENT.md
.
💙 This package was templated with
create-typescript-app
.