Browse Source

tweak the site text.

main
Gisle Aune 3 years ago
parent
commit
a0bd31a440
  1. 11
      src/routes/[name].svelte
  2. 32
      src/routes/index.svelte

11
src/routes/[name].svelte

@ -182,11 +182,22 @@
padding: 0.25em 1ch;
margin: 1.5em 0 0.5em 0;
font-size: 1.5em;
border-radius: 0.5em;
cursor: pointer;
box-shadow: 0.025em 0.025em 0.025em #000;
}
button:hover {
color: #fff;
}
button:active {
background: #444;
box-shadow: none;
}
@media screen and (max-width: 720px) {
button {
padding: 0.50em 2ch !important;
font-size: 1.75em;
}
}
</style>

32
src/routes/index.svelte

@ -7,19 +7,10 @@
</script>
<script>
import Page from "../components/Page.svelte";
import Page from "../components/Page.svelte";
export let collection;
</script>
<style>
ul {
margin: 0 0 1em 0;
line-height: 1.5;
}
</style>
<svelte:head>
<title>Namegen 5</title>
</svelte:head>
@ -28,19 +19,26 @@ import Page from "../components/Page.svelte";
<h1>Name Generator</h1>
<p>
This name generator uses context-free grammars and markov chains to create names faithful to the source material, and does it
very fast. The code is <a href="https://github.com/gissleh/namegen"> open source</a> and available as a Rust crate. It's
running as a webassembly module in the browser.
very fast. The code is <a href="https://github.com/gissleh/namegen/namegen"> open source</a> and available as a Rust crate. The
website runs this rust code as a webassembly module.
</p>
<p>
The samples used to build the generator has been sourced from both canon and fan-created works. I will not share the sample
material as I do not possess permissions for that. Feel free to download the processed generator data, however, which you
can find by tacking .json to any name, and <a href="/index.json">the index</a> if you want a list. The <code>data</code>
field serializes into a <code>Name</code> struct from the rust crate linked above.
material because of that.
Feel free to download the processed generator data, however, which you can find by tacking <code>.json</code> to any
generator's path.
The <code>name.data</code> field serializes into a <code>Name</code> struct from the rust library linked above.
</p>
<p>
There are no analytics or cookies, and all generating happes in your browser.
There is no analytics or cookies, and all generating happes in your browser.
</p>
<p>
<b>To get started,</b> select a generator from the menu. It's below this text on mobile devices.
<b>To get started,</b> select a generator from the menu.
</p>
</Page>
<style>
code {
color: #9ac;
}
</style>
Loading…
Cancel
Save