Browse Source

tweak the site text.

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

11
src/routes/[name].svelte

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

30
src/routes/index.svelte

@ -8,18 +8,9 @@
<script> <script>
import Page from "../components/Page.svelte"; import Page from "../components/Page.svelte";
export let collection; export let collection;
</script> </script>
<style>
ul {
margin: 0 0 1em 0;
line-height: 1.5;
}
</style>
<svelte:head> <svelte:head>
<title>Namegen 5</title> <title>Namegen 5</title>
</svelte:head> </svelte:head>
@ -28,19 +19,26 @@ import Page from "../components/Page.svelte";
<h1>Name Generator</h1> <h1>Name Generator</h1>
<p> <p>
This name generator uses context-free grammars and markov chains to create names faithful to the source material, and does it 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>
<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 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>
<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>
<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> </p>
</Page> </Page>
<style>
code {
color: #9ac;
}
</style>
Loading…
Cancel
Save