Add components

This commit is contained in:
2025-09-29 11:24:36 +02:00
parent 6d1050c6cb
commit 620d4144b5
3748 changed files with 902194 additions and 0 deletions

24
timeline/index.html Normal file
View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Timeline</title>
<link rel="stylesheet" href="/timeline.css">
</head>
<body>
<div class="timeline">
<div class="timeline-line"></div>
<div class="timeline-el" id="timeline-dot-1">
<div class="timeline-year">Year</div>
<div class="timeline-dot"></div>
<div class="timeline-desc">Description</div>
</div>
<div class="timeline-el" id="timeline-dot-2">
<div class="timeline-year">Year 2</div> <!-- TODO: Check date is accurate-->
<div class="timeline-dot"></div>
<div class="timeline-desc">Description 2</div>
</div>
</div>
</body>
</html>

49
timeline/timeline.css Normal file
View File

@@ -0,0 +1,49 @@
.timeline {
position: relative;
display: block;
flex-direction: column;
height: 100%;
}
.timeline-el {
z-index: 3;
position: relative;
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
margin-top: 30px;
background: none;
}
.timeline-dot {
width: 20px;
height: 20px;
background-color: rgb(21, 43, 92);
border-radius: 20px;
}
.timeline-year {
margin-right: 20px;
color: rgb(63, 63, 63);
font-style: italic;
width: 5rem;
}
.timeline-desc {
font-style: italic;
font-weight: lighter;
margin-left: 20px;
max-width: calc( 100% - 5rem - 60px );
}
.timeline-line {
position: absolute;
z-index: 1;
height: calc(100% - 10px);
top: 5px;
width: 4px;
background-color: rgb(110, 110, 110);
display: flex;
left: calc( 5rem + 28px );
}