mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2025-02-17 10:20:47 +01:00
Eye candy
- Transition between pages
This commit is contained in:
parent
c37481b63a
commit
0498832d10
@ -1,17 +1,26 @@
|
|||||||
<script>
|
<script>
|
||||||
import Upload from './main/Upload.svelte';
|
import Upload from './main/Upload.svelte';
|
||||||
|
import { blur } from 'svelte/transition';
|
||||||
|
|
||||||
import { parseResult, debug } from './store';
|
import { parseResult, debug } from './store';
|
||||||
import DebugView from './debug/DebugView.svelte';
|
import DebugView from './debug/DebugView.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="text-2xl font-semibold font-serif text-center bg-gray-400">PDF to Markdown Converter</div>
|
<div in:blur={{ duration: 450 }} class="text-2xl font-semibold font-serif text-center bg-gray-400">
|
||||||
|
PDF to Markdown Converter
|
||||||
|
</div>
|
||||||
<main class="mt-2 h-full">
|
<main class="mt-2 h-full">
|
||||||
{#if $debug}
|
<div class="transition-container">
|
||||||
<DebugView debug={$debug} />
|
{#if $debug}
|
||||||
{:else}
|
<span in:blur={{ duration: 1200 }} out:blur={{ duration: 900 }}>
|
||||||
<Upload />
|
<DebugView debug={$debug} />
|
||||||
{/if}
|
</span>
|
||||||
|
{:else}
|
||||||
|
<span in:blur={{ duration: 900 }} out:blur={{ duration: 900 }}>
|
||||||
|
<Upload />
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@ -21,4 +30,15 @@
|
|||||||
@apply text-gray-800;
|
@apply text-gray-800;
|
||||||
@apply bg-gray-50;
|
@apply bg-gray-50;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.transition-container {
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: 1;
|
||||||
|
grid-template-columns: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.transition-container > * {
|
||||||
|
grid-row: 1;
|
||||||
|
grid-column: 1;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
.selected {
|
.selected {
|
||||||
@apply cursor-default;
|
@apply cursor-default;
|
||||||
@apply bg-gray-300;
|
@apply bg-gray-300;
|
||||||
|
@apply rounded;
|
||||||
/* @apply underline; */
|
/* @apply underline; */
|
||||||
}
|
}
|
||||||
.selectable {
|
.selectable {
|
||||||
@ -41,5 +42,6 @@
|
|||||||
.selectable:hover {
|
.selectable:hover {
|
||||||
@apply bg-gray-400;
|
@apply bg-gray-400;
|
||||||
@apply text-green-700;
|
@apply text-green-700;
|
||||||
|
@apply rounded;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -3,6 +3,7 @@ import './Tailwind.css';
|
|||||||
|
|
||||||
var app = new App({
|
var app = new App({
|
||||||
target: document.body,
|
target: document.body,
|
||||||
|
intro: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
export default app;
|
export default app;
|
||||||
|
Loading…
Reference in New Issue
Block a user