Add option to Timeline component
This commit is contained in:
parent
35d0699212
commit
545ee651af
1 changed files with 11 additions and 3 deletions
|
@ -1,12 +1,20 @@
|
|||
---
|
||||
const {
|
||||
Date,
|
||||
Time
|
||||
Time,
|
||||
Upcoming
|
||||
} = Astro.props
|
||||
|
||||
if (Upcoming === true) {
|
||||
var BorderColor = '#3a66b9'
|
||||
} else {
|
||||
var BorderColor = 'white'
|
||||
}
|
||||
|
||||
---
|
||||
|
||||
<div class="timeline">
|
||||
<p class="timeline-date">{Date} - {Time}</p>
|
||||
<div style={"border-color: " + BorderColor} class="timeline">
|
||||
<p style={"border-color: " + BorderColor} class="timeline-date">{Date} - {Time}</p>
|
||||
<slot/>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue