<script>
  import Button from 'atoms/Button.svelte';
  import nhentai from 'services/nhentai-crawler';

  let text = 'tach';

  function handleClick() {
    nhentai.setLoginCredentials('1', '2');
  }
</script>

<style>
  :root {
    --color-white: #fff;
    --color-black: #000;

    --color-background: #242424;
    --color-foreground: #3a3a3a;
    --color-accent: #454585;
    --color-accent-light: #6969ac;

    --color-text: var(--color-white);
  }

  :global(*) {
    box-sizing: border-box;
  }

  :global(body) {
    padding: 0;
    margin: 0;
    color: var(--color-text);
    background-color: var(--color-background);
  }
</style>

<main>
  <h1>Hello World</h1>
  <p>{ text }</p>
  <Button on:click={handleClick}>inhalt</Button>
</main>
