|
@ -2,14 +2,31 @@ import React from 'react'; |
|
|
import {HookRouter, navigate, usePath, useRoutes} from "hookrouter"; |
|
|
import {HookRouter, navigate, usePath, useRoutes} from "hookrouter"; |
|
|
import {Tabs} from "./primitives/Layout"; |
|
|
import {Tabs} from "./primitives/Layout"; |
|
|
import {HSColorPicker} from "./primitives/Forms"; |
|
|
import {HSColorPicker} from "./primitives/Forms"; |
|
|
|
|
|
import {ColorElement} from "./primitives/Elements"; |
|
|
|
|
|
|
|
|
const routeObj: HookRouter.RouteObject = { |
|
|
const routeObj: HookRouter.RouteObject = { |
|
|
"/": () => ( |
|
|
"/": () => ( |
|
|
<div> |
|
|
<div> |
|
|
<HSColorPicker h={60} s={1} onChange={() => void(0)}/> |
|
|
|
|
|
|
|
|
<HSColorPicker h={30} s={1} onChange={() => void (0)}/> |
|
|
|
|
|
</div> |
|
|
|
|
|
), |
|
|
|
|
|
"/devices": () => ( |
|
|
|
|
|
<div> |
|
|
|
|
|
<ColorElement name="Grønn" value={{h: 125, s: 0.5}}/> |
|
|
|
|
|
<ColorElement name="Kelvin 1k" value={{kelvin: 1000}}/> |
|
|
|
|
|
<ColorElement name="Kelvin 2k" value={{kelvin: 2000}}/> |
|
|
|
|
|
<ColorElement name="Kelvin 3k" value={{kelvin: 3000}}/> |
|
|
|
|
|
<ColorElement name="Kelvin 4k" value={{kelvin: 4000}}/> |
|
|
|
|
|
<ColorElement name="Kelvin 5k" value={{kelvin: 5000}}/> |
|
|
|
|
|
<ColorElement name="Kelvin 6k" value={{kelvin: 6000}}/> |
|
|
|
|
|
<ColorElement name="Kelvin 7k" value={{kelvin: 7000}}/> |
|
|
|
|
|
<ColorElement name="Kelvin 8k" value={{kelvin: 8000}}/> |
|
|
|
|
|
<ColorElement name="Kelvin 9k" value={{kelvin: 9000}}/> |
|
|
|
|
|
<ColorElement name="Kelvin 10k" value={{kelvin: 10000}}/> |
|
|
|
|
|
<ColorElement name="Mer... (HS)" value="hs-gradient"/> |
|
|
|
|
|
<ColorElement name="Mer... (K)" value="k-gradient"/> |
|
|
</div> |
|
|
</div> |
|
|
), |
|
|
), |
|
|
"/devices": () => <div>2</div>, |
|
|
|
|
|
"/settings": () => <div>3</div>, |
|
|
"/settings": () => <div>3</div>, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|