Skip to content

Commit 92ae448

Browse files
committed
Replace redirect with a proper site
1 parent 3ecb417 commit 92ae448

File tree

18 files changed

+4900
-13
lines changed

18 files changed

+4900
-13
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
tab_width = 4
9+
indent_size = 4
10+
indent_style = space

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

docs/assets/index.css

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

docs/assets/index.js

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

docs/index.html

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
<!DOCTYPE html>
2+
<html lang="en" dir="ltr">
3+
<head>
4+
<title>Serenity, Rust wrapper for Discord</title>
5+
6+
<meta charset="UTF-8" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<meta name="color-scheme" content="light dark" />
9+
10+
<meta name="author" content="Serenity developers" />
11+
<meta name="description" content="A Rust wrapper for the Discord API" />
12+
<meta name="keywords" content="rust,discord" />
13+
14+
<meta name="og:title" content="Serenity, Rust wrapper for Discord" />
15+
<meta
16+
name="og:description"
17+
content="A Rust wrapper for the Discord API"
18+
/>
19+
<meta name="og:type" content="website" />
20+
<meta name="og:url" content="https://serenity-rs.github.io/" />
21+
<meta
22+
name="og:image"
23+
content="https://serenity-rs.github.io/logo.png"
24+
/>
25+
26+
27+
28+
<script>
29+
var elem = document.querySelector(":root");
30+
if (elem === undefined) {
31+
elem = document.querySelector("html");
32+
}
33+
34+
function setTheme(theme) {
35+
elem.dataset.theme = theme;
36+
localStorage.setItem("theme", theme);
37+
}
38+
39+
var media = window.matchMedia("(prefers-color-scheme: dark)");
40+
41+
var localTheme = localStorage.getItem("theme");
42+
if (localTheme !== null) {
43+
setTheme(localTheme === "dark" ? "dark" : "light");
44+
} else {
45+
setTheme(media.matches ? "dark" : "light");
46+
}
47+
48+
media.addEventListener("change", function (ev) {
49+
setTheme(ev.matches ? "dark" : "light");
50+
});
51+
</script>
52+
53+
<script type="module" crossorigin src="/assets/index.js"></script>
54+
<link rel="stylesheet" crossorigin href="/assets/index.css">
55+
</head>
56+
<body>
57+
<div class="container">
58+
<header class="header-content">
59+
<nav class="navigation">
60+
<ul class="nav-links">
61+
<li class="item">
62+
<a
63+
class="link -github"
64+
href="https://github.com/serenity-rs/serenity"
65+
>
66+
Github
67+
</a>
68+
</li>
69+
<li class="item">
70+
<a
71+
class="link -discord"
72+
href="https://discord.gg/serenity-rs"
73+
>
74+
Discord
75+
</a>
76+
</li>
77+
</ul>
78+
</nav>
79+
80+
<div class="toggler">
81+
<button class="button" id="toggle-button" type="button">Toggle theme</button>
82+
</div>
83+
</header>
84+
85+
<main class="main-content">
86+
<h1 class="caption">
87+
Serenity, a Rust wrapper for the Discord API
88+
</h1>
89+
90+
<div class="logo">
91+
<img src="/logo.png" alt="Serenity logo" />
92+
</div>
93+
94+
<p class="text">
95+
Serenity is a HTTP and gateway wrapper around
96+
<a href="https://discord.com">Discord</a>'s API, written in
97+
the
98+
<a href="https://rust-lang.org">Rust programming language</a
99+
>.
100+
</p>
101+
102+
<p class="text">
103+
It offers a high-level, easy to use API for creating bots
104+
using Discord's official API.
105+
</p>
106+
107+
<div class="links">
108+
<h2>Links:</h2>
109+
110+
<ul class="list" role="navigation">
111+
<li class="item">
112+
<a href="https://github.com/serenity-rs/serenity"
113+
>Github repository</a
114+
>
115+
</li>
116+
<li class="item">
117+
<a href="https://discord.gg/serenity-rs"
118+
>Discord server invite link</a
119+
>
120+
</li>
121+
122+
<li class="item">
123+
<h3>Documentation links</h3>
124+
125+
<ul class="doc-links">
126+
<li class="item">
127+
<a href="https://docs.rs/serenity"
128+
>Latest crates.io release</a
129+
>
130+
</li>
131+
132+
<li class="item">
133+
<a
134+
href="https://serenity-rs.github.io/serenity/current/serenity/index.html"
135+
>Latest changes on the
136+
<code>current</code> Git branch</a
137+
>
138+
</li>
139+
140+
<li class="item">
141+
<a
142+
href="https://serenity-rs.github.io/serenity/next/serenity/index.html"
143+
>Latest changes on the
144+
<code>next</code> Git branch</a
145+
>
146+
</li>
147+
</ul>
148+
</li>
149+
</ul>
150+
</div>
151+
152+
<div class="widget">
153+
<iframe
154+
src="https://discord.com/widget?id=381880193251409931&theme=dark"
155+
width="350"
156+
height="500"
157+
allowtransparency="true"
158+
frameborder="0"
159+
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"
160+
></iframe>
161+
</div>
162+
</main>
163+
164+
<footer class="footer-content">
165+
<p>Made by Serenity developers</p>
166+
</footer>
167+
</div>
168+
</body>
169+
</html>

docs/logo.png

31.3 KB
Loading

index.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)