[Sync] Continue on timeline

This commit is contained in:
BOT Alex 2024-04-03 17:56:31 +02:00
parent 172c49f72e
commit e19bc385a1
3 changed files with 36 additions and 28 deletions

View File

@ -1,16 +1,8 @@
<div class="centralize"> <div class="centralize">
<div class="flex-start"> <slot></slot>
<slot></slot>
</div>
</div> </div>
<style> <style>
.flex-start{
display: flex;
justify-items: start;
padding: 0;
}
.centralize{ .centralize{
display: grid; display: grid;

View File

@ -4,13 +4,5 @@
</script> </script>
<HorizonalStack> <HorizonalStack>
<ul> <slot/>
<!-- {#each {length: 3} as _, i}
<li>
<TimelineItem title="Item {i}"/>
</li>
{/each} -->
<slot/>
</ul>
</HorizonalStack> </HorizonalStack>

View File

@ -10,20 +10,44 @@
export let desc: string = "null"; export let desc: string = "null";
</script> </script>
<li> <div class="relativeGrow flexStart">
<div class="ItemStrip centralize"/>
<span class="title">{title}</span> <span class="title">{title}</span>
<HorizonalStack> {#if imagePath !== "null"}
{#if imagePath !== "null"} <Img src={imagePath}/>
<Img src={imagePath}/> {/if}
{/if} </div>
<VerticalStack>
</VerticalStack>
</HorizonalStack>
</li>
<style> <style>
.relativeGrow{
position: relative;
width: 100%;
height: 100%;
}
.flexStart{
display: flex;
justify-content: start;
}
.title { .title {
font-size: 2.5rem; font-size: 2.5rem;
margin: 0;
}
.ItemStrip{
width: 0.5vw;
height: 90%;
position: relative;
background-color: white;
}
.centralize{
display: grid;
justify-content: center;
} }
</style> </style>