Update content/formatting
This commit is contained in:
parent
064d627d4d
commit
20b43b933e
@ -2,6 +2,13 @@
|
|||||||
export let title = "Quartznet";
|
export let title = "Quartznet";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div class="overlay">
|
||||||
|
<div class="description col-md-5">
|
||||||
|
<h1 class="title">{title}</h1>
|
||||||
|
<p>Software, Games, Science, Space!</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.overlay {
|
.overlay {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -20,10 +27,3 @@
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="overlay">
|
|
||||||
<div class="description col-md-5">
|
|
||||||
<h1 class="title">{title}</h1>
|
|
||||||
<p>Software, Games, Science, Space!</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
@ -44,22 +44,22 @@
|
|||||||
const toCssString = (props) =>
|
const toCssString = (props) =>
|
||||||
Object.keys(props).reduce(
|
Object.keys(props).reduce(
|
||||||
(str, key) => `${str}; ${camelCaseToDash(key)}: ${props[key]}`,
|
(str, key) => `${str}; ${camelCaseToDash(key)}: ${props[key]}`,
|
||||||
""
|
"",
|
||||||
);
|
);
|
||||||
|
|
||||||
$: cssBg = toCssString(Object.assign({}, styleBg, customStyleBg));
|
$: cssBg = toCssString(Object.assign({}, styleBg, customStyleBg));
|
||||||
$: cssWindow = toCssString(
|
$: cssWindow = toCssString(
|
||||||
Object.assign({}, styleWindow, customStyleWindow)
|
Object.assign({}, styleWindow, customStyleWindow),
|
||||||
);
|
);
|
||||||
$: cssContent = toCssString(
|
$: cssContent = toCssString(
|
||||||
Object.assign({}, styleContent, customStyleContent)
|
Object.assign({}, styleContent, customStyleContent),
|
||||||
);
|
);
|
||||||
|
|
||||||
const open = (
|
const open = (
|
||||||
NewComponent,
|
NewComponent,
|
||||||
newProps = {},
|
newProps = {},
|
||||||
style = { bg: {}, window: {}, content: {} },
|
style = { bg: {}, window: {}, content: {} },
|
||||||
newCallback = () => {}
|
newCallback = () => {},
|
||||||
) => {
|
) => {
|
||||||
Component = NewComponent;
|
Component = NewComponent;
|
||||||
props = newProps;
|
props = newProps;
|
||||||
@ -213,7 +213,8 @@ https://github.com/flekschas/svelte-simple-moda
|
|||||||
border-radius: 1.5rem;
|
border-radius: 1.5rem;
|
||||||
background: white;
|
background: white;
|
||||||
box-shadow: 0 0 0 1px black;
|
box-shadow: 0 0 0 1px black;
|
||||||
transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
|
transition:
|
||||||
|
transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
|
||||||
background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
|
background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
@ -229,7 +230,8 @@ https://github.com/flekschas/svelte-simple-moda
|
|||||||
height: 1px;
|
height: 1px;
|
||||||
background: black;
|
background: black;
|
||||||
transform-origin: center;
|
transform-origin: center;
|
||||||
transition: height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
|
transition:
|
||||||
|
height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
|
||||||
background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
|
background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,21 @@
|
|||||||
|
<header>
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="/">Quartznet</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/about">About</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="/admin">Admin</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
a {
|
a {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
@ -33,21 +51,3 @@
|
|||||||
border-bottom: 2px solid var(--line-color);
|
border-bottom: 2px solid var(--line-color);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<header>
|
|
||||||
<nav>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a href="/">Quartznet</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="/about">About</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a href="/admin">Admin</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<svelte:head>
|
<svelte:head>
|
||||||
<script>
|
<script>
|
||||||
if (document) {
|
if (document) {
|
||||||
const defaultTheme = 'dark';
|
const defaultTheme = "dark";
|
||||||
const itemTheme = localStorage.getItem("theme") ?? defaultTheme;
|
const itemTheme = localStorage.getItem("theme") ?? defaultTheme;
|
||||||
|
|
||||||
localStorage.setItem("theme", itemTheme);
|
localStorage.setItem("theme", itemTheme);
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
export let onClick;
|
export let onClick;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<a href="/admin">Admin</a>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
img {
|
img {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@ -12,5 +14,3 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<a href="/admin">Admin</a>
|
|
||||||
|
@ -4,16 +4,8 @@
|
|||||||
|
|
||||||
let games = [
|
let games = [
|
||||||
{
|
{
|
||||||
name: "Sirius",
|
name: "Test",
|
||||||
link: "./sirius",
|
link: "/",
|
||||||
img: "img/600x300.png",
|
|
||||||
size: { width: 600, height: 300 },
|
|
||||||
description:
|
|
||||||
"A 2D game about a wannabe space captain exploring the galaxy.",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Quartz",
|
|
||||||
link: "./sirius",
|
|
||||||
img: "img/600x300.png",
|
img: "img/600x300.png",
|
||||||
size: { width: 600, height: 300 },
|
size: { width: 600, height: 300 },
|
||||||
description: "Test",
|
description: "Test",
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<script>
|
<script>
|
||||||
import Banner from '$lib/Banner.svelte'
|
import Banner from "$lib/Banner.svelte";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>Quartznet - About</title>
|
<title>Quartznet - About</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<Banner title="About"/>
|
<Banner title="About" />
|
||||||
|
|
||||||
<main class="container">
|
<main class="container">
|
||||||
<section>
|
<section>
|
||||||
@ -15,9 +15,11 @@
|
|||||||
<p>A small team developing games and software.</p>
|
<p>A small team developing games and software.</p>
|
||||||
|
|
||||||
<h3>Why the name Quartznet</h3>
|
<h3>Why the name Quartznet</h3>
|
||||||
<p>Naming things is hard. We ended up with the name quartz and added net making quartznet.
|
<p>
|
||||||
|
Naming things is hard. We ended up with the name quartz and added
|
||||||
|
net making quartznet.
|
||||||
|
</p>
|
||||||
<h3>SPAAAAACEEEE</h3>
|
<h3>SPAAAAACEEEE</h3>
|
||||||
<p>Space!</p>
|
<p>Space!</p>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
@ -1,20 +1,34 @@
|
|||||||
<script>
|
<script>
|
||||||
import Banner from '$lib/Banner.svelte'
|
import Banner from "$lib/Banner.svelte";
|
||||||
|
|
||||||
let services = [
|
let services = [
|
||||||
{
|
|
||||||
name: "Status",
|
|
||||||
link: "https://quartznet.info/status",
|
|
||||||
description: "Server monitoring and troubleshooting",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "Gitea",
|
name: "Gitea",
|
||||||
link: "https://git.quartznet.info",
|
link: "https://git.quartznet.info",
|
||||||
description: "Software development version control"
|
description: "Software development version control",
|
||||||
}
|
},
|
||||||
]
|
];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<title>Quartznet - Admin</title>
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
|
<Banner title="Admin" />
|
||||||
|
|
||||||
|
<main class="container">
|
||||||
|
<section>
|
||||||
|
<h2>Services</h2>
|
||||||
|
<ul>
|
||||||
|
{#each services as service}
|
||||||
|
<li>
|
||||||
|
<a href={service.link}>{service.name}</a>
|
||||||
|
</li>
|
||||||
|
{/each}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
section {
|
section {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -48,22 +62,3 @@
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<svelte:head>
|
|
||||||
<title>Quartznet - Admin</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<Banner title="Admin"/>
|
|
||||||
|
|
||||||
<main class="container">
|
|
||||||
<section>
|
|
||||||
<h2>Services</h2>
|
|
||||||
<ul>
|
|
||||||
{#each services as service}
|
|
||||||
<li>
|
|
||||||
<a href="{service.link}">{service.name}</a>
|
|
||||||
</li>
|
|
||||||
{/each}
|
|
||||||
</ul>
|
|
||||||
</section>
|
|
||||||
</main>
|
|
||||||
|
@ -1,37 +1,61 @@
|
|||||||
<script>
|
<script>
|
||||||
import Banner from '$lib/Banner.svelte'
|
import Banner from "$lib/Banner.svelte";
|
||||||
|
|
||||||
let username = "";
|
let username = "";
|
||||||
let password = "";
|
let password = "";
|
||||||
|
|
||||||
const submitHandler = () => {
|
const submitHandler = () => {
|
||||||
alert("TODO: implement login backend");
|
alert("TODO: implement login backend");
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>Quartznet - Login</title>
|
<title>Quartznet - Login</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<Banner title="Login"/>
|
<Banner title="Login" />
|
||||||
|
|
||||||
<main class="container">
|
<main class="container">
|
||||||
<form on:submit|preventDefault={submitHandler} class="form-signin" method="post">
|
<form
|
||||||
|
on:submit|preventDefault={submitHandler}
|
||||||
|
class="form-signin"
|
||||||
|
method="post"
|
||||||
|
>
|
||||||
<div class="form-label-group">
|
<div class="form-label-group">
|
||||||
<label for="username">Username</label>
|
<label for="username">Username</label>
|
||||||
<input type="text" id="username" class="form-control" bind:value={username}
|
<input
|
||||||
name="username" placeholder="Username" required>
|
type="text"
|
||||||
|
id="username"
|
||||||
|
class="form-control"
|
||||||
|
bind:value={username}
|
||||||
|
name="username"
|
||||||
|
placeholder="Username"
|
||||||
|
required
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-label-group">
|
<div class="form-label-group">
|
||||||
<label for="inputPassword">Password</label>
|
<label for="inputPassword">Password</label>
|
||||||
<input type="password" id="password" class="form-control" bind:value={password}
|
<input
|
||||||
name="password" placeholder="Password" required>
|
type="password"
|
||||||
|
id="password"
|
||||||
|
class="form-control"
|
||||||
|
bind:value={password}
|
||||||
|
name="password"
|
||||||
|
placeholder="Password"
|
||||||
|
required
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="custom-control custom-checkbox mb-3">
|
<div class="custom-control custom-checkbox mb-3">
|
||||||
<input type="checkbox" class="custom-control-input" id="customCheck1">
|
<input
|
||||||
<label class="custom-control-label" for="customCheck1">Remember password</label>
|
type="checkbox"
|
||||||
|
class="custom-control-input"
|
||||||
|
id="customCheck1"
|
||||||
|
/>
|
||||||
|
<label class="custom-control-label" for="customCheck1"
|
||||||
|
>Remember password</label
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-primary" type="submit">Sign in</button>
|
<button class="btn btn-primary" type="submit">Sign in</button>
|
||||||
</form>
|
</form>
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
<script>
|
|
||||||
import Banner from '$lib/Banner.svelte'
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<svelte:head>
|
|
||||||
<title>Quartznet - Sirius</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<Banner title="Sirius"/>
|
|
||||||
|
|
||||||
<main class="container">
|
|
||||||
<section class="content">
|
|
||||||
<h1>Sirius game</h1>
|
|
||||||
<p>Sirius game. Work in progress</p>
|
|
||||||
<a href="https://quartznet.info/presskit">Presskit</a>
|
|
||||||
</section>
|
|
||||||
</main>
|
|
Loading…
x
Reference in New Issue
Block a user