ahora lo vuelvo a añadir con su nombre correcto y tiro
parent
4ebb5014d9
commit
f3d820a78e
@ -0,0 +1,34 @@
|
|||||||
|
<script>
|
||||||
|
import { templates } from '$lib/templates/templates';
|
||||||
|
|
||||||
|
/** @type number */ export let 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};
|
||||||
|
text-align: {templates[templateIndex].heading.textAlign};
|
||||||
|
font-weight: {templates[templateIndex].heading.fontWeight};
|
||||||
|
line-height: {templates[templateIndex].heading.lineHeight}rem;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
{$heading}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.heading {
|
||||||
|
position: absolute;
|
||||||
|
font-variant: small-caps;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue