|
| 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> |
0 commit comments