feat: add basic avatars page

This commit is contained in:
MeexReay 2025-08-30 12:11:11 +03:00
parent 70deede914
commit 48a8055afa
3 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,29 @@
import { ArrowLeft } from "lucide-react";
import Link from "next/link";
import Text from "@/components/blocks/Text";
import PageTitle from "@/components/blocks/PageTitle";
import InlineCode from "@/components/blocks/InlineCode";
import Code from "@/components/blocks/Code";
export default function Avatars() {
return (
<main className={"flex flex-col gap-4 w-full"}>
<Link
href={"/protocol"}
className={
"text-stone-500 flex flex-row items-center transition duration-200 hover:text-stone-50 gap-2"
}
>
<ArrowLeft size={16} /> Go Back
</Link>
<PageTitle id={"avatars"}>Avatars</PageTitle>
<Text>
To add an avatar to your message,
the client only needs to add <InlineCode>0x06</InlineCode> byte and the specific suffix
<InlineCode>!!AR!!</InlineCode>, then the image url.
Here&apos;s a simple example:
</Text>
<Code>{"\\x06!!AR!!https://meex.lol/assets/nyashka.gif"}</Code>
</main>
);
}

View File

@ -30,6 +30,12 @@ export default function Protocol() {
curator: "@kostya-zero", curator: "@kostya-zero",
href: "/protocol/user-agents", href: "/protocol/user-agents",
}, },
{
name: "Avatars",
desc: "An explanation of the basic user-made implementation of avatars in RAC clients.",
curator: "@MeexReay",
href: "/protocol/avatars",
},
]; ];
return ( return (

View File

@ -19,7 +19,7 @@ type UserAgent = {
color: string; color: string;
}; };
export default function Wrac() { export default function UserAgents() {
const userAgents: UserAgent[] = [ const userAgents: UserAgent[] = [
{ {
client: "Tower", client: "Tower",