});
}
+@route.{.GET, "/playground"}
+(req: &Req, res: &Res) {
+ res->body("text/html", "This has been moved to <a href=\"https://try.onyxlang.io\">try.onyxlang.io</a>.");
+ res->status(200);
+ res->end();
+}
+
+@route.{.GET, "/community"}
+(req: &Req, res: &Res) => res->render("pages/community", null);
+
@route.{.GET, "/robots.txt"}
(req: &Req, res: &Res) {
position: relative;
}
+/*
@media screen and (min-width: 800px) {
.scrollport {
mask-image: linear-gradient(to right, #0000 0, #000 10%, #000 90%, #0000 100%);
min-width: 1000px;
}
}
+*/
table {
border-radius: 8px;
--- /dev/null
+{{ block "title" }}
+Onyx Community
+{{ endblock }}
+
+{{ let navbar_page = "community" }}
+
+{{ block "page_content" }}
+
+<div class="container header">
+ <h1>Onyx Community</h1>
+</div>
+
+<div class="container">
+ <div class="title">
+ <h2>Discord</h2>
+ </div>
+
+ <p>
+ The Onyx programming language has an official Discord for questions, problem solving,
+ feature requests, and showing off your projects.
+ </p>
+ <div style="margin-top: 12px">
+ <a href="https://discord.gg/GVFamnQq" class="link-button">Join Discord</a>
+ </div>
+</div>
+
+<div class="container">
+ <div class="title">
+ <h2>GitHub</h2>
+ </div>
+
+ <p>
+ Onyx is an open source project you can find on GitHub.
+ Pull requests and contributions from the community are more than welcome!
+ Onyx may have started as a personal project for one person, but that
+ does not mean its future cannot be shaped by everyone.
+ </p>
+ <div style="margin-top: 12px">
+ <a href="https://github.com/onyx-lang/onyx" class="link-button">Go to GitHub</a>
+ </div>
+</div>
+
+{{ endblock }}
+
+{{ extends "pages/normal_page" }}
+
Package author: Brendan Hansen
Package version (0.0.1):
-$ onyx package add
+$ onyx package add raylib
Added 'raylib' version 0.0.3
$ onyx package sync
</div>
</div>
+<div class="container">
+ <div class="title">
+ <h2 style="margin-bottom: 8px">Onyx Community</h2>
+ </div>
+
+ <p>
+ The Onyx programming language is on Discord! It is the place to chat about language
+ features, discuss problems you are having, and showcase your projects.
+ </p>
+ <p>
+ Onyx is an open source project so contributions from the community are welcome and encouraged!
+ The <code>onyx-lang/onyx</code> GitHub repository is the official source of Onyx.
+ </p>
+
+ <div style="margin-top: 12px">
+ <a href="https://discord.gg/GVFamnQq" class="link-button">Join Discord</a>
+ <a href="https://github.com/onyx-lang/onyx" class="link-button">Go to GitHub</a>
+ </div>
+</div>
+
<div class="container">
<div class="title">
<h2 style="margin-bottom: 8px">Recent News</h2>
});
})
+/*
let rotator = document.querySelector(".scrollport");
let rotatorIndex = 0;
let ignoreNextScroll = false;
if (ignoreNextScroll) ignoreNextScroll = false;
else clearInterval(rotatorInterval);
});
+*/
</script>
{{endblock}}
{{block "page_content"}}
<div class="container header">
- <h1>News</h1>
+ <h1>Onyx News</h1>
</div>
{% partial "partials/news_listing" %}
<a target="_blank" href="https://try.onyxlang.io"><span>Try Onyx</span></a>
<a href="/docs"><span {{ if navbar_page == "docs" }} class="active" {{ endif }}>Docs</span></a>
<a href="/news"><span {{ if navbar_page == "news" }} class="active" {{ endif }}>News</span></a>
+ <a href="/community"><span {{ if navbar_page == "community" }} class="active" {{ endif }}>Community</span></a>
<a href="https://github.com/onyx-lang/onyx" target="_blank"><span>GitHub</span></a>
</div>
</navbar>