Skip to content

Commit 3886e31

Browse files
committed
Add template files and update gitignore
1 parent 19c07a6 commit 3886e31

File tree

4 files changed

+132
-1
lines changed

4 files changed

+132
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.DS_Store
22
/.idea
33
_site/
4-
templates/

site/templates/base.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>{% block title %}{{ title }}{% endblock %}</title>
7+
<link rel="stylesheet" href="{{ base_url }}/assets/style.css">
8+
</head>
9+
<body>
10+
<header>
11+
<div class="container">
12+
<h1><a href="{{ base_url }}/">XRP Ledger Standards</a></h1>
13+
<nav>
14+
<a href="{{ base_url }}/">All Standards</a>
15+
<a href="https://github.com/XRPLF/XRPL-Standards">GitHub</a>
16+
</nav>
17+
</div>
18+
</header>
19+
20+
<main class="container">
21+
{% block content %}{% endblock %}
22+
</main>
23+
24+
<footer>
25+
<div class="container">
26+
<p>&copy; 2024 XRP Ledger Foundation. Licensed under <a href="https://github.com/XRPLF/XRPL-Standards/blob/master/LICENSE">Apache License 2.0</a>.</p>
27+
</div>
28+
</footer>
29+
</body>
30+
</html>

site/templates/index.html

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{% extends "base.html" %}
2+
3+
{% block content %}
4+
<div class="intro">
5+
<h2>XRP Ledger Standards (XLS)</h2>
6+
<p>XRP Ledger Standards (XLSs) describe standards and specifications relating to the XRP Ledger ecosystem that help achieve interoperability, compatibility, and excellent user experience.</p>
7+
<p>Total standards: <strong>{{ total_count }}</strong></p>
8+
</div>
9+
10+
<div class="standards-table-container">
11+
<table class="standards-table">
12+
<thead>
13+
<tr>
14+
<th>Number</th>
15+
<th>Title</th>
16+
<th>Author</th>
17+
<th>Status</th>
18+
</tr>
19+
</thead>
20+
<tbody>
21+
{% for doc in released %}
22+
<tr class="status-released">
23+
<td class="number-col" data-label="Number">
24+
<a href="{{ base_url }}/xls/{{ doc.folder }}.html" class="xls-link">XLS-{{ doc.number }}</a>
25+
</td>
26+
<td class="title-col" data-label="Title">
27+
<a href="{{ base_url }}/xls/{{ doc.folder }}.html">{{ doc.title }}</a>
28+
</td>
29+
<td class="author-col" data-label="Author">{{ doc.author }}</td>
30+
<td class="status-col" data-label="Status">
31+
<span class="status-badge released">Released</span>
32+
</td>
33+
</tr>
34+
{% endfor %}
35+
36+
{% for doc in candidates %}
37+
<tr class="status-candidate">
38+
<td class="number-col" data-label="Number">
39+
<a href="{{ base_url }}/xls/{{ doc.folder }}.html" class="xls-link">XLS-{{ doc.number }}</a>
40+
</td>
41+
<td class="title-col" data-label="Title">
42+
<a href="{{ base_url }}/xls/{{ doc.folder }}.html">{{ doc.title }}</a>
43+
</td>
44+
<td class="author-col" data-label="Author">{{ doc.author }}</td>
45+
<td class="status-col" data-label="Status">
46+
<span class="status-badge candidate">Candidate</span>
47+
</td>
48+
</tr>
49+
{% endfor %}
50+
51+
{% for doc in drafts %}
52+
<tr class="status-draft">
53+
<td class="number-col" data-label="Number">
54+
<a href="{{ base_url }}/xls/{{ doc.folder }}.html" class="xls-link">XLS-{{ doc.number }}</a>
55+
</td>
56+
<td class="title-col" data-label="Title">
57+
<a href="{{ base_url }}/xls/{{ doc.folder }}.html">{{ doc.title }}</a>
58+
</td>
59+
<td class="author-col" data-label="Author">{{ doc.author }}</td>
60+
<td class="status-col" data-label="Status">
61+
<span class="status-badge draft">Draft</span>
62+
</td>
63+
</tr>
64+
{% endfor %}
65+
66+
{% for doc in others %}
67+
<tr class="status-other">
68+
<td class="number-col" data-label="Number">
69+
<a href="{{ base_url }}/xls/{{ doc.folder }}.html" class="xls-link">XLS-{{ doc.number }}</a>
70+
</td>
71+
<td class="title-col" data-label="Title">
72+
<a href="{{ base_url }}/xls/{{ doc.folder }}.html">{{ doc.title }}</a>
73+
</td>
74+
<td class="author-col" data-label="Author">{{ doc.author }}</td>
75+
<td class="status-col" data-label="Status">
76+
<span class="status-badge other">{{ doc.status.title() }}</span>
77+
</td>
78+
</tr>
79+
{% endfor %}
80+
</tbody>
81+
</table>
82+
</div>
83+
{% endblock %}

site/templates/xls.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{% extends "base.html" %}
2+
3+
{% block content %}
4+
<div class="xls-document">
5+
<div class="xls-meta">
6+
<div class="xls-number-large">XLS-{{ doc.number }}</div>
7+
<div class="xls-status-badge {{ doc.status }}">{{ doc.status.title() }}</div>
8+
</div>
9+
10+
<div class="document-content">
11+
{{ content|safe }}
12+
</div>
13+
14+
<div class="document-nav">
15+
<a href="{{ base_url }}/">&larr; Back to All Standards</a>
16+
<a href="https://github.com/XRPLF/XRPL-Standards/tree/master/{{ doc.folder }}">View on GitHub</a>
17+
</div>
18+
</div>
19+
{% endblock %}

0 commit comments

Comments
 (0)