[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="flex-start">
<slot></slot>
</div>
<slot></slot>
</div>
<style>
.flex-start{
display: flex;
justify-items: start;
padding: 0;
}
.centralize{
display: grid;

View File

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

View File

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