Skip to content

Commit c5e1bdd

Browse files
committed
Make the work-experience timeline one continuous line
Each card's date column now extends a connector through the gap to the next card, so the colored timeline runs unbroken through all jobs (colour switches at each job boundary); the last card omits the connector. Desktop only. https://claude.ai/code/session_01DUbsS9TjUPnaAbLQTnyczE
1 parent f90e8a3 commit c5e1bdd

6 files changed

Lines changed: 33 additions & 13 deletions

File tree

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<link rel="manifest" href="data:application/json;base64,ewogICJzaG9ydF9uYW1lIjogIkFzZVdoeSIsCiAgIm5hbWUiOiAiQXNlV2h5L0FzdGVjb20iLAogICJpY29ucyI6IFsKICAgIHsKICAgICAgInNyYyI6ICJmYXZpY29uLmljbyIsCiAgICAgICJzaXplcyI6ICI2NHg2NCAzMngzMiAyNHgyNCAxNngxNiIsCiAgICAgICJ0eXBlIjogImltYWdlL3gtaWNvbiIKICAgIH0sCiAgICB7CiAgICAgICJzcmMiOiAibG9nbzE5Mi5wbmciLAogICAgICAidHlwZSI6ICJpbWFnZS9wbmciLAogICAgICAic2l6ZXMiOiAiMTkyeDE5MiIKICAgIH0sCiAgICB7CiAgICAgICJzcmMiOiAibG9nbzUxMi5wbmciLAogICAgICAidHlwZSI6ICJpbWFnZS9wbmciLAogICAgICAic2l6ZXMiOiAiNTEyeDUxMiIKICAgIH0KICBdLAogICJzdGFydF91cmwiOiAiLiIsCiAgImRpc3BsYXkiOiAic3RhbmRhbG9uZSIsCiAgInRoZW1lX2NvbG9yIjogIiMwYjBkMTIiLAogICJiYWNrZ3JvdW5kX2NvbG9yIjogIiMwYjBkMTIiCn0K" />
1818

1919
<title>AseWhy/Astecom</title>
20-
<script type="module" crossorigin src="/assets/index-a92a956e.js"></script>
21-
<link rel="stylesheet" href="/assets/index-1317d9f6.css">
20+
<script type="module" crossorigin src="/assets/index-d7c8747b.js"></script>
21+
<link rel="stylesheet" href="/assets/index-575788e2.css">
2222
</head>
2323
<body>
2424
<noscript>You need to enable JavaScript to run this app.</noscript>

src/components/content/work/WorkContent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ export function WorkContent() {
2929
className={WorkContentModule.WorksList}
3030
>
3131
{
32-
Experiance.map(e => <WorkPlace
32+
Experiance.map((e, i) => <WorkPlace
3333
{...e}
3434
key={e.name}
35+
last={i === Experiance.length - 1}
3536
/>)
3637
}
3738
</div>

src/components/content/work/WorkPlace.module.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
}
6969

7070
.colDates {
71+
position: relative;
7172
width: 12%;
7273
min-width: 6.5rem;
7374
padding: var(--space-2) var(--space-5) var(--space-2) 0;
@@ -81,6 +82,17 @@
8182
font-weight: 600;
8283
font-size: var(--fs-small);
8384

85+
// connector that bridges the gap to the next card so the timeline is unbroken
86+
&::after {
87+
content: '';
88+
position: absolute;
89+
right: -3px;
90+
top: 100%;
91+
width: 3px;
92+
height: calc(var(--space-6) * 3 + var(--space-5));
93+
background: var(--job-accent);
94+
}
95+
8496
span {
8597
position: relative;
8698

@@ -99,6 +111,10 @@
99111
}
100112
}
101113

114+
&[data-last="true"] .colDates::after {
115+
display: none;
116+
}
117+
102118
.colResponsibilities {
103119
width: 58%;
104120
text-align: left;

src/components/content/work/WorkPlace.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export interface IWorkPlaceProps {
1313
sphere: string,
1414
site: string,
1515
color?: string;
16+
last?: boolean;
1617
logo: any,
1718
dateStart: Date,
1819
dateEnd: Date,
@@ -33,6 +34,7 @@ export function WorkPlace({
3334
dateEnd,
3435
site,
3536
color = 'red',
37+
last = false,
3638
sphere,
3739
location,
3840
project,
@@ -46,6 +48,7 @@ export function WorkPlace({
4648
<div
4749
className={WorkPlaceModule.WorkPlace}
4850
style={{ ['--job-accent' as any]: accent }}
51+
data-last={last}
4952
>
5053
<div
5154
className={WorkPlaceModule.colDates}

0 commit comments

Comments
 (0)