Skip to content

Commit d48d0d9

Browse files
committed
updated timeline
1 parent 300f5e2 commit d48d0d9

File tree

5 files changed

+98
-16
lines changed

5 files changed

+98
-16
lines changed

src/app/pages/home/home.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@
5151
</p>
5252
</div>
5353
<div class="tech-stack">
54-
<span class="badge">Angular</span>
54+
<div class="badge-wrapper">
55+
<span class="badge">Angular</span>
56+
<span class="badge">Ionic Framework</span>
57+
<span class="badge">Angular</span>
58+
</div>
5559
</div>
5660
<home-timeline></home-timeline>
5761
</div>

src/app/pages/home/home.component.scss

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,22 @@
172172

173173
.tech-stack {
174174
text-align: center;
175-
176-
.badge {
177-
color: var(--primary);
178-
background-color: #E1ECF4;
179-
font-size: 12px;
180-
padding: 2px 6px;
181-
border-radius: 3px;
175+
176+
.badge-wrapper {
177+
display: grid;
178+
grid-template-columns: repeat(auto-fit, minmax(50px, auto));
179+
grid-gap: 4px;
180+
justify-content: center;
181+
182+
.badge {
183+
color: var(--primary);
184+
background-color: #E1ECF4;
185+
font-size: 12px;
186+
padding: 2px 6px;
187+
border-radius: 3px;
188+
}
182189
}
183-
190+
184191
&:after {
185192
content: "";
186193
border-bottom: 2px solid var(--app-grey);

src/app/pages/home/timeline/timeline.component.html

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,34 @@
33
<div *ngFor="let item of timelineItems" class="timeline-item" [ngClass]="{'project': item.type == 'project',
44
'education': item.type == 'education'}">
55
<div class="item-head">
6-
<span [ngSwitch]="item.type">
6+
<span [ngSwitch]="item.type" class="item-type">
77
<span *ngSwitchCase="'education'">Education</span>
88
<span *ngSwitchCase="'project'">Project</span>
99
<span *ngSwitchDefault>Position</span>
1010
</span>
11+
<span class="timeperiod">
12+
<span *ngIf="item.startDate">{{ item.startDate | date:'MMM, y'}}</span>
13+
<span [ngSwitch]="item.endDate">
14+
<span *ngSwitchCase="'current'"> - Current</span>
15+
<span *ngSwitchDefault>
16+
<span *ngIf="item.endDate"> - {{ item.endDate | date:'MMM, y'}}</span>
17+
</span>
18+
</span>
19+
</span>
1120
</div>
1221
<div class="item-content">
13-
content
22+
<div class="image"></div>
23+
<div class="details">
24+
<div class="heading" *ngIf="item.company">
25+
{{ item.company.title }} <a [href]="item.company.link" target="_blank">{{ item.company.name }}</a>
26+
</div>
27+
<div class="tech-stack" *ngIf="item.techs && item.techs.length > 0">
28+
<span class="badge" *ngFor="let tech of item.techs">
29+
{{ tech }}
30+
</span>
31+
</div>
32+
<div class="description" *ngIf="item.description"></div>
33+
</div>
1434
</div>
1535
<div class="side-el">
1636
<div class="arrow"></div>

src/app/pages/home/timeline/timeline.component.scss

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
.timeline {
2-
margin: 2em auto;
1+
.timeline {
2+
margin: 4em auto;
33
position: relative;
44

55
&::before {
66
content: "";
77
position: absolute;
8-
top: -2em;
8+
top: -4em;
99
left: 50%;
1010
width: 1px;
11-
height: calc(100% - 2em);
11+
height: calc(100%);
1212
background: var(--app-grey);
1313
}
1414

@@ -47,10 +47,52 @@
4747
padding-bottom: 0.5em;
4848
font-size: 80%;
4949
color: #6a737c;
50+
51+
.item-type {
52+
font-weight: bold;
53+
}
54+
55+
.timeperiod {
56+
margin-left: 4px;
57+
}
5058
}
5159

5260
.item-content {
5361
padding-top: 0.5em;
62+
display: grid;
63+
grid-template-columns: 50px 1fr;
64+
grid-gap: 1em;
65+
66+
.details {
67+
.heading {
68+
font-weight: bold;
69+
70+
a {
71+
text-decoration: none;
72+
}
73+
}
74+
75+
.tech-stack {
76+
display: flex;
77+
flex-wrap: wrap;
78+
justify-content: flex-start;
79+
padding-top: 0.5em;
80+
81+
.badge {
82+
color: var(--primary);
83+
background-color: #E1ECF4;
84+
font-size: 12px;
85+
padding: 2px 6px;
86+
border-radius: 3px;
87+
text-align: center;
88+
margin: 0 4px 4px 0;
89+
}
90+
}
91+
92+
.description {
93+
padding-top: calc(0.5em - 4px);
94+
}
95+
}
5496
}
5597

5698
.side-el {

src/app/pages/home/timeline/timeline.component.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ import { Component, OnInit } from '@angular/core';
88
export class TimelineComponent implements OnInit {
99

1010
timelineItems = [{
11-
type: 'position'
11+
type: 'position',
12+
company: {
13+
name: '152HQ',
14+
link: 'https://www.152hq.com/wp/',
15+
title: 'Senior Front-end Developer'
16+
},
17+
techs: ['Angular', 'Ionic', 'AngularJS', 'Cordova'],
18+
startDate: '07-07-2017',
19+
endDate: 'current',
20+
itemImage: ''
1221
}, {
1322
type: 'project',
1423
subtype: 'opensource'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy