You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
829 B
Svelte
33 lines
829 B
Svelte
<script>
|
|
import { templates } from '$lib/templates/templates';
|
|
console.log(templates);
|
|
/** @type number */ export let templateIndex;
|
|
console.log(templateIndex);
|
|
import { heading } from '$lib/stores/store';
|
|
</script>
|
|
|
|
{#if $heading && templates[templateIndex].heading}
|
|
<div
|
|
class="heading"
|
|
style="
|
|
top: {templates[templateIndex].heading.top}px;
|
|
height: {templates[templateIndex].heading.height}rem;
|
|
left: {templates[templateIndex].heading.left}rem;
|
|
right: {templates[templateIndex].heading.right}rem;
|
|
color: {templates[templateIndex].heading.color};
|
|
font-size: {templates[templateIndex].heading.fontSize}rem;
|
|
font-family: {templates[templateIndex].heading.fontFamily};
|
|
"
|
|
>
|
|
{$heading}
|
|
</div>
|
|
{/if}
|
|
|
|
<style>
|
|
.heading {
|
|
position: absolute;
|
|
font-variant: small-caps;
|
|
overflow: hidden;
|
|
}
|
|
</style>
|