diff --git a/src/labels.ts b/src/labels.ts new file mode 100644 index 0000000..5f0639e --- /dev/null +++ b/src/labels.ts @@ -0,0 +1,12 @@ +import { Element } from './types' + +export const heatmap_labels: Record = { + 'Atomic Mass (u)': `atomic_mass`, + 'Atomic Radius (Å)': `atomic_radius`, + 'Covalent Radius (Å)': `covalent_radius`, + Electronegativity: `electronegativity`, + 'Density (solid: g/cm³, gas: g/liter)': `density`, + 'Boiling Point (K)': `boiling_point`, + 'Melting Point (K)': `melting_point`, + 'First Ionization Energy (eV)': `first_ionization`, +} diff --git a/src/routes/__error.svelte b/src/routes/__error.svelte new file mode 100644 index 0000000..e2ab107 --- /dev/null +++ b/src/routes/__error.svelte @@ -0,0 +1,61 @@ + + + + + + {status} + + +
+ {#if status === 404} +

⛔  {status}: Page '{slug}' not found

+

+ Back to + landing page. +

+ {:else} +

⛔  {status}

+ {/if} + + {#if dev && error?.stack} +

Stack Trace

+
{error.stack}
+ {/if} +
+ + diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte new file mode 100644 index 0000000..b96ae7c --- /dev/null +++ b/src/routes/__layout.svelte @@ -0,0 +1,36 @@ + + + + + + + + + diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 1b9e426..4ae98e6 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -1,75 +1,34 @@ - - -
-

Periodic Table of Elements

- - - + 1000} />