Skip to content

Commit e8d60ad

Browse files
committed
Timeline functionality working. Checkboxes not yet included
1 parent 3b1ad98 commit e8d60ad

3 files changed

Lines changed: 45 additions & 5 deletions

File tree

src/components/timeline/timeline.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33

44
<ion-list>
55
<ng-template #recursiveList let-list>
6+
<!-- <div class="cd-timeline__img cd-timeline__img--5"></div> -->
67
<ion-list *ngFor="let item of list">
78
<h2 (click)="toggleItem(item)">{{item.title}} </h2>
89
<ion-item *ngIf="item.itemExpand && item.children.length > 0">
910
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container>
11+
1012
</ion-item>
1113
</ion-list>
1214
</ng-template>

src/components/timeline/timeline.scss

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,32 @@ timeline {
1111

1212
}
1313

14+
.cd-timeline__img {
15+
position: absolute;
16+
top: 0;
17+
left: 0;
18+
width: 40px;
19+
height: 40px;
20+
border-radius: 50%;
21+
-webkit-box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
22+
box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
23+
}
24+
25+
.cd-timeline__img img {
26+
display: block;
27+
width: 24px;
28+
height: 24px;
29+
position: relative;
30+
left: 50%;
31+
top: 50%;
32+
margin-left: -12px;
33+
margin-top: -12px;
34+
}
35+
36+
.cd-timeline__img.cd-timeline__img--5 {
37+
background: #64c5b1;
38+
}
39+
1440
.timeline {
1541
margin: 30px 0 0 0;
1642
padding: 0;
@@ -87,14 +113,18 @@ timeline {
87113
}
88114
}
89115
}
90-
@media screen and (max-width: 1024px) {
116+
.label-md{
117+
margin: 13px 8px -15px 0;
118+
}
119+
91120
&:before {
92-
left: 3%;
121+
left: 3% !important;
93122
}
94-
.list-ios{
95-
margin-left:3%;
123+
.list, .list-md{
124+
margin-left:3% !important;
96125
}
97-
}
126+
127+
98128
@media screen and (max-width: map-get($grid-breakpoints,'lg')){
99129
.list-ios{
100130
margin-top: -1px;

src/components/timeline/timeline.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ export class TimelineComponent {
2323
children: [
2424
{
2525
title: 'Meet with separation counselor',
26+
checkmark: true,
2627
children: []
2728
},
2829
{
2930
title: 'Take career test',
31+
checkmark: true,
3032
children: []
3133
}
3234
]
@@ -36,6 +38,7 @@ export class TimelineComponent {
3638
children: [
3739
{
3840
title: 'Fill out specific paperwork',
41+
checkmark: true,
3942
children: []
4043
}
4144
]
@@ -45,6 +48,7 @@ export class TimelineComponent {
4548
children: [
4649
{
4750
title: 'Find out what benefits I will have after separation',
51+
checkmark: true,
4852
children: []
4953
}
5054
]
@@ -60,10 +64,12 @@ export class TimelineComponent {
6064
children: [
6165
{
6266
title: 'Go to Career Center',
67+
checkmark: true,
6368
children: []
6469
},
6570
{
6671
title: 'Vocational Rehab & Employment',
72+
checkmark: true,
6773
children: []
6874
}
6975
]
@@ -73,6 +79,7 @@ export class TimelineComponent {
7379
children: [
7480
{
7581
title: 'Check out vet center',
82+
checkmark: true,
7683
children: []
7784
}
7885
]
@@ -82,6 +89,7 @@ export class TimelineComponent {
8289
children: [
8390
{
8491
title: 'Open a savings account',
92+
checkmark: true,
8593
children: []
8694
}
8795
]

0 commit comments

Comments
 (0)