Skip to content

Instantly share code, notes, and snippets.

View mornir's full-sized avatar
🎮
Gaming

Jérôme Pott mornir

🎮
Gaming
View GitHub Profile
const blocks = `blocks[] {
...,
photos[] {
...,
"metadata": asset->metadata,
},
markDefs[] {
...,
_type == "internalLink" => {
"slug": @->slug.current,
@mornir
mornir / Gate.astro
Created June 17, 2025 13:10
Very Basic Gated Content with AlpineJS
<div
x-cloak
x-data="{ showGate: $persist(true), password: '', showError: false }"
x-show="showGate"
class="absolute inset-0 z-20 bg-white"
x-trap.noscroll="showGate"
>
<div class="mx-auto prose px-4 pt-12">
<h1>Projekt Digitale BSV 2026</h1>
<form