From 268cc209b6306f27cc71a7b0a5026f09cf104780 Mon Sep 17 00:00:00 2001 From: adrien Date: Mon, 26 Aug 2024 02:09:32 +0200 Subject: [PATCH] keymapInput as image --- img/keyboard.png | Bin 0 -> 626 bytes index.html | 15 +++++++-------- style.css | 15 +++++++++++++-- 3 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 img/keyboard.png diff --git a/img/keyboard.png b/img/keyboard.png new file mode 100644 index 0000000000000000000000000000000000000000..60fcfaaed1c5c47e6f5b29d8ca27304adde25b27 GIT binary patch literal 626 zcmV-&0*(ENP)Q0{{R3zyf$~00004XF*Lt006O% z3;baP0004mX+uL$Nkc;*aB^>EX>4Tx04R}tkv&MmKpe$iTg4((2a6PO$WWc^q9Wo{ zt5Adrp;l;vxAeOib`7kz)Z>sE`~#_#gc4)+|g;xJjV|(EVcDAEQ9eF3_yo_V=-E zH&1}TGjOG~{nZ9A^GSNWtwoQ3fomKh8cJ}t~nO1*4*mZKx(CSV+00006P)t-s7#bY* z`Sx0rT!H`q00Cl4M??UK1szBL000SaNLh0L04^f{04^f|c%?sf00007bV*G`2j~bH z7Z?P$y@@UW000?uMObu0Z*6U5Zgc=ca%Ew3Wn>_CX>@2HM@dakSAh-}0000jNklNneLBuGZLjJ%1|KI<=|9}7g-~WLGK|UG)08i7`TwBRWc>n+a M07*qoM6N<$f;5N?vH$=8 literal 0 HcmV?d00001 diff --git a/index.html b/index.html index 1821ed2..64d1430 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@

Angry notes from outer space

-
+

Jean-Michel, les notes furieuses de l'espace attaquent ! Détruisez-les à l'aide de votre harpe laser.

Ce jeu est conçu pour un clavier MIDI. Si vous en avez un, branchez-le maintenant.

@@ -37,13 +37,12 @@

Contrôles

- + +
+ +
diff --git a/style.css b/style.css index 68eab11..e2b6b99 100644 --- a/style.css +++ b/style.css @@ -39,14 +39,25 @@ h1 { text-align: center; } -textarea { +#keyMapInput { + background-image: url(img/keyboard.png); + background-repeat: repeat-x; + background-size: 240px 50px; + margin: auto; + color: white; + text-shadow: #444 2px 2px, #444 -2px -2px, #444 2px -2px, #444 -2px 2px; + text-transform: uppercase; + padding-left: 3px; padding-right: 0; + letter-spacing: 4px; + width: calc(25em + 108px); + height: 54px; } .sliders { display: flex; justify-content: center; - margin: 20px; + overflow-x: scroll; } .sliders label {