feat: add basic avatars page
This commit is contained in:
parent
70deede914
commit
48a8055afa
29
src/app/protocol/avatars/page.tsx
Normal file
29
src/app/protocol/avatars/page.tsx
Normal 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's a simple example:
|
||||||
|
</Text>
|
||||||
|
<Code>{"\\x06!!AR!!https://meex.lol/assets/nyashka.gif"}</Code>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
@ -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 (
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user