Skip to content

Commit dace049

Browse files
committed
Rewrite links section to projects section
1 parent 2949b3a commit dace049

File tree

4 files changed

+105
-41
lines changed

4 files changed

+105
-41
lines changed

docs/assets/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,24 @@ <h1 class="caption">
106106
using Discord's official API.
107107
</p>
108108

109-
<div class="links">
110-
<h2 class="caption">Links:</h2>
109+
<div class="projects">
110+
<h2 class="caption">Projects:</h2>
111111

112112
<ul class="list" role="navigation">
113-
<li class="item">
113+
<li class="serenity-project item">
114+
<h3 id="project-serenity">Serenity</h3>
115+
116+
<p>
117+
The main project, providing support for
118+
Discord's Gateway and REST APIs.
119+
</p>
120+
114121
<a href="https://github.com/serenity-rs/serenity">
115-
Serenity repository
122+
Github repository
116123
</a>
117124

118125
<div class="doc-links">
119-
<h3 class="caption">Documentation links</h3>
126+
<h4 class="caption">Documentation links:</h4>
120127

121128
<ul class="links" role="navigation">
122129
<li class="item">
@@ -146,14 +153,20 @@ <h3 class="caption">Documentation links</h3>
146153
</div>
147154
</li>
148155

149-
<li class="item">
156+
<li class="serenity-project item">
157+
<h3 id="project-songbird">Songbird</h3>
158+
159+
<p class="text">
160+
Songbird provides support for the voice portion
161+
of Discord's API.
162+
</p>
163+
150164
<a href="https://github.com/serenity-rs/songbird">
151-
Repository to Songbird, a wrapper for the voice
152-
portion of Discord's API
165+
Github repository
153166
</a>
154167

155168
<div class="doc-links">
156-
<h3 class="caption">Documentation links</h3>
169+
<h4 class="caption">Documentation links:</h4>
157170

158171
<ul class="links" role="navigation">
159172
<li class="item">
@@ -183,14 +196,26 @@ <h3 class="caption">Documentation links</h3>
183196
</div>
184197
</li>
185198

186-
<li class="item">
199+
<li class="serenity-project item">
200+
<h3 id="project-poise">Poise</h3>
201+
202+
<p class="text">
203+
Poise is a command framework for Serenity.
204+
</p>
205+
206+
<p class="text">
207+
It has support for prefix-based commands (e.g.
208+
<code>!ping</code>), as well as Discord's
209+
application commands, which natively integrate
210+
with Discord's client.
211+
</p>
212+
187213
<a href="https://github.com/serenity-rs/poise">
188-
Repository to Poise, a command framework for
189-
Serenity
214+
Github repository
190215
</a>
191216

192217
<div class="doc-links">
193-
<h3 class="caption">Documentation links</h3>
218+
<h4 class="caption">Documentation links:</h4>
194219

195220
<ul class="links" role="navigation">
196221
<li class="item">
@@ -219,15 +244,17 @@ <h3 class="caption">Documentation links</h3>
219244
</ul>
220245
</div>
221246
</li>
222-
223-
<li class="item">
224-
<a href="https://discord.gg/serenity-rs">
225-
Discord server invite link
226-
</a>
227-
</li>
228247
</ul>
229248
</div>
230249

250+
<p class="text">
251+
If you need help, wish to consult or discuss with us, join
252+
the
253+
<a href="https://discord.gg/serenity-rs">
254+
Serenity Discord server</a
255+
>!
256+
</p>
257+
231258
<div class="widget">
232259
<iframe
233260
src="https://discord.com/widget?id=381880193251409931&theme=dark"

src/index.html

Lines changed: 46 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,24 @@ <h1 class="caption">
107107
using Discord's official API.
108108
</p>
109109

110-
<div class="links">
111-
<h2 class="caption">Links:</h2>
110+
<div class="projects">
111+
<h2 class="caption">Projects:</h2>
112112

113113
<ul class="list" role="navigation">
114-
<li class="item">
114+
<li class="serenity-project item">
115+
<h3 id="project-serenity">Serenity</h3>
116+
117+
<p>
118+
The main project, providing support for
119+
Discord's Gateway and REST APIs.
120+
</p>
121+
115122
<a href="https://github.com/serenity-rs/serenity">
116-
Serenity repository
123+
Github repository
117124
</a>
118125

119126
<div class="doc-links">
120-
<h3 class="caption">Documentation links</h3>
127+
<h4 class="caption">Documentation links:</h4>
121128

122129
<ul class="links" role="navigation">
123130
<li class="item">
@@ -147,14 +154,20 @@ <h3 class="caption">Documentation links</h3>
147154
</div>
148155
</li>
149156

150-
<li class="item">
157+
<li class="serenity-project item">
158+
<h3 id="project-songbird">Songbird</h3>
159+
160+
<p class="text">
161+
Songbird provides support for the voice portion
162+
of Discord's API.
163+
</p>
164+
151165
<a href="https://github.com/serenity-rs/songbird">
152-
Repository to Songbird, a wrapper for the voice
153-
portion of Discord's API
166+
Github repository
154167
</a>
155168

156169
<div class="doc-links">
157-
<h3 class="caption">Documentation links</h3>
170+
<h4 class="caption">Documentation links:</h4>
158171

159172
<ul class="links" role="navigation">
160173
<li class="item">
@@ -184,14 +197,26 @@ <h3 class="caption">Documentation links</h3>
184197
</div>
185198
</li>
186199

187-
<li class="item">
200+
<li class="serenity-project item">
201+
<h3 id="project-poise">Poise</h3>
202+
203+
<p class="text">
204+
Poise is a command framework for Serenity.
205+
</p>
206+
207+
<p class="text">
208+
It has support for prefix-based commands (e.g.
209+
<code>!ping</code>), as well as Discord's
210+
application commands, which natively integrate
211+
with Discord's client.
212+
</p>
213+
188214
<a href="https://github.com/serenity-rs/poise">
189-
Repository to Poise, a command framework for
190-
Serenity
215+
Github repository
191216
</a>
192217

193218
<div class="doc-links">
194-
<h3 class="caption">Documentation links</h3>
219+
<h4 class="caption">Documentation links:</h4>
195220

196221
<ul class="links" role="navigation">
197222
<li class="item">
@@ -220,15 +245,17 @@ <h3 class="caption">Documentation links</h3>
220245
</ul>
221246
</div>
222247
</li>
223-
224-
<li class="item">
225-
<a href="https://discord.gg/serenity-rs">
226-
Discord server invite link
227-
</a>
228-
</li>
229248
</ul>
230249
</div>
231250

251+
<p class="text">
252+
If you need help, wish to consult or discuss with us, join
253+
the
254+
<a href="https://discord.gg/serenity-rs">
255+
Serenity Discord server</a
256+
>!
257+
</p>
258+
232259
<div class="widget">
233260
<iframe
234261
src="https://discord.com/widget?id=381880193251409931&theme=dark"

src/index/style.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,17 @@ footer {
5757
text-align: center;
5858
}
5959

60-
> .links {
60+
> .projects {
6161
display: grid;
6262
justify-content: center;
6363
}
6464

65+
> .projects > .list {
66+
margin-block-start: 0;
67+
}
68+
6569
> .widget {
66-
margin-block: 2em;
70+
margin-block: 1em;
6771

6872
display: grid;
6973
justify-content: center;
@@ -74,6 +78,12 @@ footer {
7478
}
7579
}
7680

81+
.serenity-project {
82+
> .text {
83+
max-inline-size: 70ch;
84+
}
85+
}
86+
7787
:root,
7888
:root[data-theme="light"] {
7989
--footer-border-colour: hsl(0, 0%, 0%);

0 commit comments

Comments
 (0)