Skip to content

Commit 1e27af4

Browse files
authored
YNU-560: Add Whitepaper link to the docs (#91)
[YNU-560](https://www.notion.so/yellow-net/Add-Whitepaper-link-to-the-docs-2b875b8feb0480c3b358f7280589e114?source=copy_link): Added /whitepaper, download button and mention in navbar+footer Light mode: <img width="1506" height="859" alt="image" src="https://github.com/user-attachments/assets/0ab301ff-2091-4fb7-9c2f-65639087f7db" /> Dark mode: <img width="1506" height="859" alt="image" src="https://github.com/user-attachments/assets/d234349c-a94f-4989-880f-ae33f6f5179d" /> Footer+Navbar link: <img width="1506" height="859" alt="image" src="https://github.com/user-attachments/assets/ad0582c8-164d-4eea-b47f-3fa32afa6309" />
1 parent 2a1a793 commit 1e27af4

2 files changed

Lines changed: 61 additions & 13 deletions

File tree

docusaurus.config.ts

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {themes as prismThemes} from 'prism-react-renderer';
2-
import type {Config} from '@docusaurus/types';
1+
import { themes as prismThemes } from 'prism-react-renderer';
2+
import type { Config } from '@docusaurus/types';
33
import type * as Preset from '@docusaurus/preset-classic';
44

55
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
@@ -128,6 +128,11 @@ const config: Config = {
128128
label: 'Guides',
129129
position: 'left',
130130
},
131+
{
132+
to: '/whitepaper',
133+
label: 'Whitepaper',
134+
position: 'left',
135+
},
131136
{
132137
href: 'https://github.com/layer-3',
133138
position: 'right',
@@ -170,8 +175,8 @@ const config: Config = {
170175
to: '/docs/guides',
171176
},
172177
{
173-
label: 'API Reference',
174-
to: '/docs/api-reference',
178+
label: 'Whitepaper',
179+
to: '/whitepaper',
175180
},
176181
],
177182
},
@@ -207,19 +212,19 @@ const config: Config = {
207212
defaultLanguage: 'javascript',
208213
magicComments: [
209214
{
210-
className: 'git-diff-remove',
211-
line: 'remove-next-line',
212-
block: { start: 'remove-start', end: 'remove-end' },
215+
className: 'git-diff-remove',
216+
line: 'remove-next-line',
217+
block: { start: 'remove-start', end: 'remove-end' },
213218
},
214219
{
215-
className: 'git-diff-add',
216-
line: 'add-next-line',
217-
block: { start: 'add-start', end: 'add-end' },
220+
className: 'git-diff-add',
221+
line: 'add-next-line',
222+
block: { start: 'add-start', end: 'add-end' },
218223
},
219224
{
220-
className: 'theme-code-block-highlighted-line',
221-
line: 'highlight-next-line',
222-
block: { start: 'highlight-start', end: 'highlight-end' },
225+
className: 'theme-code-block-highlighted-line',
226+
line: 'highlight-next-line',
227+
block: { start: 'highlight-start', end: 'highlight-end' },
223228
},
224229
],
225230
},

src/pages/whitepaper.tsx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import React from 'react';
2+
import Layout from '@theme/Layout';
3+
import Link from '@docusaurus/Link';
4+
5+
export default function Whitepaper(): JSX.Element {
6+
return (
7+
<Layout
8+
title="Whitepaper"
9+
description="Download the Yellow Network Whitepaper">
10+
<main className="container margin-vert--xl">
11+
<div className="row">
12+
<div className="col col--8 col--offset-2 text--center">
13+
<h1 className="hero__title margin-bottom--lg">Yellow Network Whitepaper</h1>
14+
<p className="hero__subtitle margin-bottom--xl">
15+
Understand the risks, utilities, and compliance framework of the Yellow token.
16+
</p>
17+
18+
<div className="card shadow--md padding--lg">
19+
<div className="card__header">
20+
<h3>Yellow MiCA Whitepaper</h3>
21+
</div>
22+
<div className="card__body">
23+
<p>
24+
Our whitepaper provides a comprehensive overview of the Yellow Network protocol,
25+
tokenomics, and regulatory compliance under MiCA.
26+
</p>
27+
</div>
28+
<div className="card__footer">
29+
<Link
30+
className="button button--primary button--lg"
31+
to="/assets/YELLOW_MiCA_White_Paper_v.1.2.pdf"
32+
target="_blank"
33+
download>
34+
Download PDF
35+
</Link>
36+
</div>
37+
</div>
38+
</div>
39+
</div>
40+
</main>
41+
</Layout>
42+
);
43+
}

0 commit comments

Comments
 (0)