Skip to content

Commit 3d80899

Browse files
committed
Site Update
1 parent 6337d61 commit 3d80899

File tree

9 files changed

+236
-35
lines changed

9 files changed

+236
-35
lines changed

gatsby-config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ const config: GatsbyConfig = {
1414
{
1515
resolve: `gatsby-plugin-manifest`,
1616
options: {
17-
name: `GatsbyJS`,
18-
short_name: `GatsbyJS`,
19-
start_url: `/`,
20-
background_color: `#f7f0eb`,
21-
theme_color: `#a2466c`,
22-
display: `standalone`,
2317
icon: `src/assets/icon.png`
2418
},
2519
},

src/html.tsx

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import React from "react"
2+
import PropTypes from "prop-types"
3+
import Preload from "./lib/preload";
4+
5+
export default function HTML(props: {
6+
htmlAttributes: React.JSX.IntrinsicAttributes & React.ClassAttributes<HTMLHtmlElement> & React.HtmlHTMLAttributes<HTMLHtmlElement>;
7+
headComponents: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | null | undefined;
8+
bodyAttributes: React.JSX.IntrinsicAttributes & React.ClassAttributes<HTMLBodyElement> & React.HTMLAttributes<HTMLBodyElement>;
9+
preBodyComponents: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | null | undefined;
10+
body: any;
11+
postBodyComponents: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal | null | undefined
12+
}) {
13+
return (
14+
<html {...props.htmlAttributes}>
15+
<head>
16+
<meta charSet="utf-8" />
17+
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
18+
<meta
19+
name="viewport"
20+
content="width=device-width, initial-scale=1, shrink-to-fit=no"
21+
/>
22+
<Preload />
23+
{props.headComponents}
24+
</head>
25+
<body {...props.bodyAttributes}>
26+
{props.preBodyComponents}
27+
<div
28+
key={`body`}
29+
id="___gatsby"
30+
dangerouslySetInnerHTML={{ __html: props.body }}
31+
/>
32+
{props.postBodyComponents}
33+
</body>
34+
</html>
35+
);
36+
}
37+
38+
HTML.propTypes = {
39+
htmlAttributes: PropTypes.object,
40+
headComponents: PropTypes.array,
41+
bodyAttributes: PropTypes.object,
42+
preBodyComponents: PropTypes.array,
43+
body: PropTypes.string,
44+
postBodyComponents: PropTypes.array,
45+
}

src/lib/preload.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from "react"
2+
3+
export default function Preload() {
4+
return (
5+
<link rel="prefetch" href="https://playnite.link/applogo.png" />
6+
)
7+
}

src/pages/about.tsx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import React from "react";
2+
import { Link, HeadFC } from "gatsby"
3+
4+
export default function About() {
5+
return (
6+
<main className="page">
7+
<h1>About 1D6</h1>
8+
<div className="flex-column">
9+
<Link to="/">Back to Home</Link>
10+
<Link to="/legal">Legal</Link>
11+
<Link to="/contrib">Contributing</Link>
12+
</div>
13+
<div>
14+
<p>
15+
1D6 is a framework around <Link to="https://libgdx.com/">LibGDX</Link> that
16+
adds <Link to="/wiki">modding</Link>, <Link to="/wiki">networking</Link>, <Link to="/wiki">rendering</Link>, <Link to="/wiki">asset creation</Link>,
17+
and <Link to="/wiki">data handling</Link> all in a free, open-source, community oriented, and fairly small package.<br />
18+
<br />
19+
Active development of 1D6 was started by TheColorBlurple in January 2024, with plans coming from similar projects spanning all the way back to 2016.<br />
20+
The original plan for 1D6 was very different; a 2.5d turn based rpg, taking a lot of inspiration from Pokemon Gen 5, DnD, and an old Roblox game called <Link to="https://www.roblox.com/games/1600503/Apocalypse-Rising">Apocalypse Rising</Link>.
21+
The name is meant to be a reference to tabletop RPGs like DnD that use dice notation like "1D6" or "2D4", but after plans changed the name stuck.
22+
The modding focus was from the first iteration of the plan, so i guess its still in the game in a sense.<br />
23+
Fast forward to now, plans have changed drastically, and instead of being a single game, 1D6 is a massive framework for collective modding and community projects.<br />
24+
<br />
25+
The target audience of 1D6 is pretty narrow, as this project's modding focus is intended to be familiar to Minecraft players and modders,
26+
using a few of the same libraries, and a few custom ones built by the 1D6 team, alongside a modding API reminiscent of Fabric and (Neo)Forge modding.<br />
27+
This time without all the bureaucracy, source-closing, microtransaction shilling, and corporate mismanagement that came upon Minecraft and its players.
28+
We choose not to point fingers for this situation, there are way too many actors at play, most of which deserve at least some blame;
29+
and instead take the modding community under our wings and fix the mess that Minecraft has become as of late.
30+
We do not blame the Mojang employees, if anything we love them for what they do and how difficult developing Minecraft, is with all its conflicting ideas and styles coming from the community.
31+
If they want to join us, we will welcome them with open arms.<br />
32+
<br />
33+
There is no specific end goal for 1D6, we intend to continue development until we can't anymore.
34+
Specific members of the team may have their own goals, like TheColorBlurple want to use 1D6 to complete the game idea mentioned earlier, but beyond that this project is pretty open-ended.<br />
35+
<br />
36+
If you would like to join development, join the <Link to="https://discord.gg/sQvmWdpQhR">Discord</Link> and read up on the <Link to="/contrib">contributing guidelines</Link>.
37+
</p>
38+
</div>
39+
</main>
40+
);
41+
}
42+
43+
export const Head: HeadFC = () => <title>1D6 | About</title>

src/pages/contrib.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from "react";
2+
import { Link, HeadFC } from "gatsby";
3+
4+
export default function About() {
5+
return (
6+
<main className="page">
7+
<h1>1D6 Contribution Guidelines</h1>
8+
<div className="flex-column">
9+
<Link to="/">Back to Home</Link>
10+
<Link to="/legal">Legal</Link>
11+
</div>
12+
<div>
13+
<p>
14+
<h2>Contributing Guidelines</h2>
15+
<h2>Security Guidelines</h2>
16+
</p>
17+
</div>
18+
</main>
19+
);
20+
}
21+
22+
export const Head: HeadFC = () => <title>1D6 | Contributing</title>;

src/pages/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ export default function Home() {
3434
</div>
3535
</div>
3636
<div>
37+
<p>
38+
1D6 is a framework around <Link to="https://libgdx.com/">LibGDX</Link> that adds support
39+
for <Link to="/wiki/docs/mods/jvm/intro">modding</Link>, <Link to="/wiki/docs/mods/jvm/intro/networking">networking</Link>, <Link to="/wiki/docs/mods/jvm/intro/rendering">rendering</Link>, <Link to="/wiki/docs/mods/jvm/intro/assets">easy asset creation</Link>,
40+
and <Link to="/wiki/docs/mods/jvm/advanced/data">data handling</Link> all in a free, open-source, community oriented, and fairly small
41+
(around 45mb, 60mb with <Link to="http://localhost:3000/wiki/docs/mods/jvm/basemod">Basemod</Link> and <Link to="http://localhost:3000/wiki/docs/mods/jvm/script">2DScript</Link>) package.<br />
42+
<br />
43+
If you want to read more, check out our <Link to="/about">About / FAQ</Link> and <Link to="/contrib">Contributing</Link> pages.<br />
44+
We also have a <Link to="https://discord.gg/sQvmWdpQhR">Discord</Link>, and check out our <Link to="https://github.com/OneDSix">GitHub</Link>.
45+
</p>
3746
<h2>Newest News</h2>
3847
<div className="content adjustable-flex">
3948
{

src/pages/legal.tsx

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import React from "react";
2+
import { Link, HeadFC } from "gatsby";
3+
4+
export default function Legal() {
5+
return (
6+
<main className="page">
7+
<h1>1D6's Legalese</h1>
8+
<div className="flex-column">
9+
<Link to="/">Back to Home</Link>
10+
</div>
11+
<div>
12+
<p>
13+
Last Updated: 04/08/2024
14+
<h3>TL;DR</h3>
15+
All of the data we gather is anonymized and deleted immediately.<br />
16+
We don't really care what you do with the project, just don't blame us if you get in trouble with someone, and don't use the name like you own it.<br />
17+
We may ask you to change, remove, or modify content if we find it unsafe for you or 1D6.<br />
18+
If you have any questions, feel free to contact us and ask.
19+
20+
<h3>Usage of 1D6 (TOS)</h3>
21+
We don't care what you do with the 1D6 platform, as long as you follow a few simple rules:
22+
<ul>
23+
<li>Be careful with copyrighted materials, avoid it at all costs.</li>
24+
<li>If you get in trouble or incur damages using the platform, and we do not oversee the cause, we are not involved and will/do not have the capacity to repay you.</li>
25+
<li>Don't use the 1D6 name like you own it. Say "Adventure: a 1D6 game" instead of "1D6: The Adventure".</li>
26+
</ul>
27+
Here are a few extra clarifications:
28+
<ul>
29+
<li>We are not liable if you download malware or stealers from our service. We are too small to afford any malware protection.</li>
30+
<li>All content you make is owned by you, and you can license it how you like. An exclusion for this rule comes when violating copyright law; the original creator, be that a company or individual, owns the work. We may ask to use your work for ads or other purposes, but you own full rights to the content and may decline if you like.</li>
31+
<li>We may ask you to remove or change your content if we find it violates copyright law, or is generally cruel or disturbing.</li>
32+
<li>We maintain the right to ban, block, or remove your account and/or IP address at any time. This is rarely used.</li>
33+
<li>If you use a library or some other technology that has it's own Privacy Policy and/or TOS, we ask you link it somewhere in your project.</li>
34+
</ul>
35+
We may notify you via Discord and/or Email of any changes to this document. This may include spelling corrections or clarifications.<br />
36+
The backend service's uptime may fluctuate over time, so be aware that the backend services may be unstable at high usage, and possibly crash.
37+
38+
<h3>Data from 1D6 (Privacy Policy)</h3>
39+
We will never collect data without your consent, and we will never sell it, period.<br />
40+
All data collection is purely optional and is disabled by default.<br />
41+
We only collect usage stats and basic info like preferred language(s), how long you play, how well the game is running, etc.<br />
42+
We will never store this data either; it is shown via the admin panel and some API endpoints, then immediately deleted.<br />
43+
The source code for the telemetry backend is located <a href="https://github.com/OneDSix/1d6-api/blob/main/api/src/routes/v1/telemetry.rs">here</a>.<br />
44+
As a legal precaution, if you try to access the telemetry endpoint from inside the EU or Canada, the request will fail with a "Unavailable due to legal reasons" error.
45+
46+
<h3>Words of Caution</h3>
47+
<ul>
48+
<li>The language, playtime, and currently online statistics are public via the API.</li>
49+
<li>Login tokens are stored using browser cookies and can be tracked.</li>
50+
<li>If you are using GitHub to host your mods, they may track you; we have no say in this. This site is also hosted on GitHub Pages, and as such follows the <a href="https://docs.github.com/en/github/site-policy/github-privacy-statement">GitHub Privacy Statement</a></li>
51+
</ul>
52+
53+
<h3>Closing Statement and Contact</h3>
54+
You can contact the 1D6 team via a Discord ticket if you have a legal inquiry or GDPR deletion request.<br />
55+
We currently have no mailing address.<br />
56+
This EULA applies on top of the legal documentation of United States of America and Eastern Massachusetts law, specifically Central Boston/Cambridge.
57+
</p>
58+
</div>
59+
</main>
60+
);
61+
}
62+
63+
export const Head: HeadFC = () => <title>1D6 | Legal</title>;

src/robots.txt

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

src/style.scss

Lines changed: 47 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,42 @@
1+
$preferred-dark-grad:
2+
linear-gradient(
3+
180deg,
4+
rgba(64, 64, 64, 0.2) 20%,
5+
black
6+
),
7+
linear-gradient(
8+
to left,
9+
rgba(113, 151, 255, 0.2) 20%,
10+
rgba(255, 204, 63, 0.2)
11+
);
12+
$preferred-light-grad:
13+
linear-gradient(
14+
180deg,
15+
rgba(255, 255, 255, 0.1) 20%,
16+
bisque
17+
),
18+
linear-gradient(
19+
to left,
20+
rgba(113, 151, 255, 0.5) 20%,
21+
rgba(255, 204, 63, 0.2)
22+
);
23+
$preferred-dark-backg: black;
24+
$preferred-light-backg: bisque;
25+
126
html {
227
height: 100%;
328
}
429

530
body {
631
margin: 0%;
732
padding: 0%;
8-
933
font-family: "Optimistic Text", "-apple-system", ui-sans-serif, system-ui,
1034
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
1135
"Noto Color Emoji", "BlinkMacSystemFont", "Segoe UI",
1236
"Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
1337
"Helvetica Neue";
1438
-webkit-font-smoothing: antialiased;
1539
-moz-osx-font-smoothing: grayscale;
16-
17-
background: linear-gradient(
18-
200deg,
19-
rgba(0, 0, 0, 0.6) 20%,
20-
rgba(61, 61, 61, 0.6) 100%
21-
);
22-
background-repeat: no-repeat;
2340
}
2441

2542
.root {
@@ -110,8 +127,6 @@ main {
110127
}
111128

112129
dialog {
113-
background-color: rgb(61, 61, 61);
114-
border-color: rgb(61, 61, 61);
115130
border-radius: 10px;
116131

117132
position: absolute;
@@ -125,11 +140,11 @@ dialog {
125140
display: flex;
126141

127142
.description-box {
128-
width: 400px;
143+
max-width: 400px;
129144
align-items: center;
130145

131-
span {
132-
margin-right: 10px;
146+
.flex-row * {
147+
margin: 0px 5px;
133148
}
134149
}
135150
}
@@ -208,8 +223,8 @@ dialog {
208223
top: 0;
209224
left: 0;
210225
background-color: #000000AA;
211-
width: 100vw;
212-
height: 100vh;
226+
width: 100%;
227+
height: 100%;
213228
}
214229

215230
// Flex Box that automatically shrinks with the screen
@@ -241,29 +256,26 @@ dialog {
241256

242257
@media (prefers-color-scheme: dark) {
243258
body {
244-
background: linear-gradient(
245-
200deg,
246-
rgba(43, 22, 6, 0.6) 20%,
247-
rgba(22, 14, 8, 0.6) 100%
248-
);
249-
background-color: black;
259+
background: $preferred-dark-grad;
250260
background-repeat: no-repeat;
261+
background-color: $preferred-dark-backg;
251262
}
252263

253264
* {
254265
color: white;
255266
}
267+
268+
dialog {
269+
background-color: rgb(61, 61, 61);
270+
border-color: rgb(61, 61, 61);
271+
}
256272
}
257273

258274
@media (prefers-color-scheme: light) {
259275
body {
260-
background: linear-gradient(
261-
200deg,
262-
rgba(255, 216, 164, 0.6) 20%,
263-
rgba(255, 220, 220, 0.6) 100%
264-
);
265-
background-color: bisque;
276+
background: $preferred-light-grad;
266277
background-repeat: no-repeat;
278+
background-color: $preferred-light-backg;
267279
}
268280

269281
* {
@@ -275,6 +287,14 @@ dialog {
275287
.adjustable-flex {
276288
flex-direction: column;
277289
}
290+
291+
dialog {
292+
width: 100%;
293+
border-radius: 0%;
294+
border-width: 0px;
295+
padding: 0%;
296+
padding-top: 19px;
297+
}
278298
}
279299

280300
@media (min-width: 601px) {

0 commit comments

Comments
 (0)