From 5c5d9d8c26308de63721e8c5459a27f18b908171 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Fri, 1 Sep 2023 15:41:55 -0400 Subject: [PATCH] markdown and mpp page --- public/128-piano.png | Bin 0 -> 2204 bytes src/components/ContentBox.astro | 6 ++---- src/components/MainHeader.astro | 8 +++++++- src/env.d.ts | 1 + src/layouts/FrontView.astro | 5 +++-- src/layouts/Layout.astro | 6 +++++- src/layouts/MDFront.astro | 35 ++++++++++++++++++++++++++++++++ src/pages/info/mpp.md | 17 ++++++++++++++++ 8 files changed, 70 insertions(+), 8 deletions(-) create mode 100644 public/128-piano.png create mode 100644 src/layouts/MDFront.astro create mode 100644 src/pages/info/mpp.md diff --git a/public/128-piano.png b/public/128-piano.png new file mode 100644 index 0000000000000000000000000000000000000000..4c97f4bf1461b82f978d725037aaafd7c4b8991d GIT binary patch literal 2204 zcmaKuc{J2tAIHBlwwbXsjipIr%fy7zA}PW!8B3b^4WqG!WDk`rPlm}FeuS}fEI+jQ zk!_HDnQT)jicpzR57`MZA;Ub=dCqzM>HMB^&u6*s&mZ@kdtdi+ZzAy`UJ@n`0{}qM z!W>5uMA|Qdhzfj{p|b9y=&{lPrj?bMmkhntk<7ljbIdA3x$lIhr)OH< zlrnCI;gcI5d^W`#4YtpALyC^KQ^m*X7k;E)-LI;uij(N*UsITVO$&)c2 zC!o%wnw2TIgA@mcP9Dzy#VR$jNQ$=Ah!d1p*NGUJm7iR{`%m__p8fgr*zw~a*7YI` zY_G7?u_JUR;pK4xKkH>8wvDpGpf&DH1&M`veeX>cS$%yyMv@J zoTj&|A1?*uYGS)(i&UVwM?jgbUeKb=8>Dul>X=uwLEOY4SoM{=P1Zj+LLb_V8kW@3 z7A0(ff`A&U02_eP9;fl?y7UVL*BMArGuLQwTLW`xX#^1n4pmRmUY!~tCQgqsId`1A zdIB4Xhne4sM|1}izNmi!J*tS%e+abP#uovxU^vVe0~G(3h$zd@h=2(Q@(&5E0s6g@9#30 z^JwuxGe65~c5xA>k@a2ed zrfX+s=bEb)pOBDl`MAjE)ACcZ?Ba#9y)2enu9}B^JRBTn0*ZGlDk%{YlR`0>Oyl$A zmtKx&W^WvJ|v9gzx&IB+8F!Q5(r-gWTl z0QQQVryi(;PUa6KmSaOIhwTB&({~mx~H_^emE(5WBK#s?#?#F(Xnf)FGnSoqTa9MK-=AoT;JHZ zlz-A%nn97EQmIHqMVC?hkPgZqta`#pORnqbrK+Mb4KqBxEyq&V%0Llspjf51FA8S8IAy;~J?~z0L(4$GpTm}!c8BV0 zH9(uInf`BYP0h^4!N;!*VyQHxd;T+P;o4@Uw$bp;?c3J1SNA_ALAN3lO(2x);h=Jp zVxX_46*;vb{a#fDR!qeBpUr-Nc`>tAeQoTvaUJht^v_Jo$MXv~a?CO^zolZD%{jL# z@#VTkR_9B)da+OL#)YUfAUQetg~y2x4S`C7bL;WavamP-9ceE;s%vVZhe`;lC@HaD zTz;re+1d)%($aDb4wgxfQt-tHI`I9xJW~dxyVRy6^0lWi$-~~Pm}smQHM1)QO@5X~< z00vwDK6A1zyX-vKt|gJ7-gDNjTlp zKkcF_u60}kZ;D+ZOO}7#jch9WadN97omu*cYDH$v4{JMwOH-&PF^D#PiQI x4nv`qy7bSH(6` -
-

- -

+
+
diff --git a/src/components/MainHeader.astro b/src/components/MainHeader.astro index 7d08997..c5f78a5 100644 --- a/src/components/MainHeader.astro +++ b/src/components/MainHeader.astro @@ -1,6 +1,12 @@ --- import { Image } from "astro:assets"; import Nav from "./Nav.astro"; + +interface Props { + logo?: string; +} + +const { logo } = Astro.props; ---
Logo /// diff --git a/src/layouts/FrontView.astro b/src/layouts/FrontView.astro index 8cd1d17..aae9156 100644 --- a/src/layouts/FrontView.astro +++ b/src/layouts/FrontView.astro @@ -5,14 +5,15 @@ import Header from "~/components/MainHeader.astro"; interface Props { title: string; + logo?: string; } -const { title } = Astro.props; +const { title, logo } = Astro.props; ---
-
+
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 421048e..8fcd9a4 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -14,7 +14,7 @@ const { title } = Astro.props; - + {title} @@ -41,6 +41,10 @@ const { title } = Astro.props; background-size: 224px; @apply bg-stone-950; } + + code { + @apply rounded-md bg-[#ffffff05] px-1 py-1 shadow-md ring-1 ring-inset ring-[#ffffff08] text-gray-400; + } diff --git a/src/layouts/MDFront.astro b/src/layouts/MDFront.astro new file mode 100644 index 0000000..a2bbad6 --- /dev/null +++ b/src/layouts/MDFront.astro @@ -0,0 +1,35 @@ +--- +import PageBreak from "~/components/PageBreak.astro"; +import FrontView from "./FrontView.astro"; +import ContentBox from "~/components/ContentBox.astro"; + +const { frontmatter } = Astro.props; +--- + + + + + + + + diff --git a/src/pages/info/mpp.md b/src/pages/info/mpp.md new file mode 100644 index 0000000..1ee62d1 --- /dev/null +++ b/src/pages/info/mpp.md @@ -0,0 +1,17 @@ +--- +layout: ~/layouts/MDFront.astro +title: Multiplayer Piano +logo: /128-piano.png +--- + +Multiplayer Piano is like a home to me. I learned how to script and interact with the web there, and it feels like one of those corners of the internet that you just don't know why it feels satisfying to interact with. + +Back in the day, it used to be full of life. Back when the main domain was still `multiplayerpiano.com` and not one of my friend's clones of the site, there were so many people messing with bots and scripts that would interact with the chat and the piano in ways that felt truly groundbreaking. There used to be a bot that could write letters on the piano, and that was amazing then. + +Since then, MPP has taken a turn for the worse, but my scripts and bots have improved. Since then, I made countless strange and wonderful things, like a Gameboy emulator that draws to a custom drawing script where everyone in the same room can see your drawing. I also ported the drawing script. + +The site, however, hasn't had such a nice history. Multiplayer Piano was sold in October 2020 to some jackass "entrepreneur" who thinks he can just turn it into a blog. The original WebSocket server isn't even up anymore, a clone of it is being hosted by my friends and this jackass is just mirroring their site files. + +The main site now has some... issues, to say the least. This guy put ads and giant links with inline CSS on the page as if it doesn't matter. I tried to contact him, but he is insisitent on not talking to anyone. I was banned from the official Discord server for a reason I don't even understand. + +Although a lot of annoyances have happened, the good news is that the site is still *somewhat* intact. The new site is `mppclone.com`, and it's fairly updated to work with new web standards and QOL features have been added, some of which by myself.