mirror of
https://github.com/artegoser/AnoPaper.git
synced 2024-10-05 14:45:58 +03:00
Compare commits
No commits in common. "29888092983d5070f81be6cf308e7e0c90f60ef0" and "1bfb7018726d749f1ed97462eb3582b2271b0709" have entirely different histories.
2988809298
...
1bfb701872
5 changed files with 10 additions and 49 deletions
|
@ -1,15 +1,12 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
</head>
|
</head>
|
||||||
|
<body data-sveltekit-preload-data="hover">
|
||||||
<body class="bg-white dark:bg-zinc-900" data-sveltekit-preload-data="hover">
|
|
||||||
<div style="display: contents">%sveltekit.body%</div>
|
<div style="display: contents">%sveltekit.body%</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
<script lang="ts">
|
|
||||||
export let href: string;
|
|
||||||
export let width = 48;
|
|
||||||
export let color = 'bg-zinc-100 hover:bg-zinc-300 dark:bg-zinc-600 dark:hover:bg-zinc-800';
|
|
||||||
export let className = '';
|
|
||||||
export let onClick: () => void;
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<a on:click={onClick} {href}>
|
|
||||||
<div
|
|
||||||
class="transition-transform ease-[cubic-bezier(.69,.58,.32,1.69)] hover:scale-105 p-2 m-2 text-lg rounded-2xl w-{width} {color} {className}"
|
|
||||||
>
|
|
||||||
<slot />
|
|
||||||
</div>
|
|
||||||
</a>
|
|
|
@ -1,9 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import '../app.css';
|
import '../app.css';
|
||||||
import Menu from '$lib/components/Menu.svelte';
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="text-black dark:text-white flex flex-col">
|
|
||||||
<Menu />
|
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
|
||||||
|
|
|
@ -1,18 +1 @@
|
||||||
<script>
|
|
||||||
import Button from '$lib/components/buttons/Button.svelte';
|
|
||||||
|
|
||||||
let count = 0;
|
|
||||||
let text = `Clicked ${count} ${count === 1 ? 'time' : 'times'}`;
|
|
||||||
function handleClick() {
|
|
||||||
count += 1;
|
|
||||||
text = `Clicked ${count} ${count === 1 ? 'time' : 'times'}`;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<svelte:head>
|
|
||||||
<title>AnoPaper main page</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<h1 class="text-3xl font-bold underline">AnoPaper!</h1>
|
<h1 class="text-3xl font-bold underline">AnoPaper!</h1>
|
||||||
|
|
||||||
<Button onClick={handleClick} href="#">{text}</Button>
|
|
||||||
|
|
Loading…
Reference in a new issue