diff --git a/src/app/protocol/page.tsx b/src/app/protocol/page.tsx index 257d5bd..3ad94fc 100644 --- a/src/app/protocol/page.tsx +++ b/src/app/protocol/page.tsx @@ -3,7 +3,35 @@ import Text from "@/components/blocks/Text"; import PageTitle from "@/components/blocks/PageTitle"; import Title from "@/components/blocks/Title"; +type Article = { + name: string; + desc: string; + curator: string; + href: string; +}; + export default function Protocol() { + const articles: Article[] = [ + { + name: "Real Address Chat Protocol", + desc: "This article explains the Real Address Chat protocol and how the client and server interact with each other using it.", + curator: "@kostya-zero", + href: "/protocol/rac", + }, + { + name: "WebSocket Real Address Chat Protocol", + desc: "A WebSocket-based implementation of the RAC protocol, made by the community. It works the same as RAC but includes some additions.", + curator: "@kostya-zero", + href: "/protocol/wrac", + }, + { + name: "User Agents", + desc: "A community-made solution to identify clients by a unique symbol in front of their username.", + curator: "@kostya-zero", + href: "/protocol/user-agents", + }, + ]; + return (
Protocol @@ -21,52 +49,23 @@ export default function Protocol() { Articles Click on article down below that you want to read.
- -

- Real Address Chat Protocol -

-

- This article explains the Real Address Chat protocol and how the - client and server interact with each other using it. -

- Curated by @kostya-zero - - -

- WebSocket Real Address Chat Protocol -

-

- WRAC is a WebSocket-based implementation of the RAC protocol, made - by the community. It works the same as RAC but includes some - additions. -

- Curated by @kostya-zero - - -

- User Agents -

-

- A community-made solution to identify clients by a unique symbol in - front of their username. -

- Curated by @kostya-zero - + {articles.map((article, index) => ( + +

+ {article.name} +

+

{article.desc}

+ + Curated by {article.curator} + + + ))}
);