|
84 | 84 | {#each designRoles as role, ix} |
85 | 85 | <button |
86 | 86 | class="experience-list-item left" |
87 | | - onclick={() => (role.active = !role.active)} |
| 87 | + onclick={() => null} |
88 | 88 | class:active={role.active} |
89 | 89 | aria-label="Open my design experience card with my career path" |
90 | 90 | > |
91 | | - <h4 class="arc-h5">{role.company}</h4> |
| 91 | + <span> |
| 92 | + <a |
| 93 | + href={role.url} |
| 94 | + class="role-url arc-h5" |
| 95 | + target="_blank" |
| 96 | + rel="noopener noreferrer" |
| 97 | + aria-label={`Visit ${role.company}'s website (opens in new tab)`} |
| 98 | + >{role.company}</a |
| 99 | + > |
| 100 | + </span> |
92 | 101 | <p class="arc-txt-li">{role.date}</p> |
93 | 102 | <div class="col-wrapper"> |
94 | 103 | <WallsThickCol /> |
95 | 104 | </div> |
96 | 105 | </button> |
97 | | - {#if role.active} |
| 106 | + <!-- {#if role.active} |
98 | 107 | <button |
99 | 108 | class="arc-txt-li role-overview" |
100 | 109 | onclick={() => (role.active = !role.active)} |
|
138 | 147 | {/if} |
139 | 148 | </div> |
140 | 149 | </button> |
141 | | - {/if} |
| 150 | + {/if} --> |
142 | 151 | {/each} |
143 | 152 | {:else} |
144 | 153 | {#each frontendRoles as role, ix} |
145 | 154 | <button |
146 | 155 | class="experience-list-item" |
147 | | - onclick={() => (role.active = !role.active)} |
| 156 | + onclick={() => null} |
148 | 157 | class:active={role.active} |
149 | 158 | aria-label="Open my frontend developer experience card with my career path" |
150 | 159 | > |
151 | 160 | <span> |
152 | | - <h4 class="arc-h5">{role.company}</h4> |
| 161 | + <a |
| 162 | + href={role.url} |
| 163 | + class="role-url arc-h5" |
| 164 | + target="_blank" |
| 165 | + rel="noopener noreferrer" |
| 166 | + aria-label={`Visit ${role.company}'s website (opens in new tab)`} |
| 167 | + >{role.company}</a |
| 168 | + > |
153 | 169 | </span> |
154 | 170 | <p class="arc-txt-li">{role.date}</p> |
155 | 171 | <div class="col-wrapper"> |
156 | 172 | <WallsThickCol /> |
157 | 173 | </div> |
158 | 174 | </button> |
159 | | - {#if role.active} |
| 175 | + <!-- {#if role.active} |
160 | 176 | <button |
161 | 177 | class="arc-txt-li role-overview" |
162 | 178 | onclick={() => (role.active = !role.active)} |
|
200 | 216 | {/if} |
201 | 217 | </div> |
202 | 218 | </button> |
203 | | - {/if} |
| 219 | + {/if} --> |
204 | 220 | {/each} |
205 | 221 | {/if} |
206 | 222 | </div> |
|
250 | 266 | gap: 0.2rem; |
251 | 267 | padding: 0.5rem; |
252 | 268 | padding-top: 1rem; |
253 | | - background-image: radial-gradient(var(--icon-tertiary) 1px, transparent 0); |
| 269 | + background-image: radial-gradient(var(--gray-alpha-10) 1px, transparent 0); |
254 | 270 | background-size: 10px 10px; |
255 | 271 | background-position: -5px -5px; |
256 | 272 | p { |
|
262 | 278 | align-items: flex-start !important; |
263 | 279 | width: 100%; |
264 | 280 | } |
265 | | - .link-wrapper { |
266 | | - padding-top: 0.5rem; |
267 | | - display: flex; |
268 | | - flex-direction: row; |
269 | | - gap: 0.5rem; |
270 | | - align-items: center; |
271 | | - justify-content: flex-end; |
272 | | - a:hover { |
273 | | - background-color: var(--bg-tertiary); |
274 | | - } |
275 | | - } |
276 | 281 | .close-button { |
277 | 282 | all: unset; |
278 | 283 | cursor: pointer; |
|
357 | 362 | padding: 0.25rem 0.5rem; |
358 | 363 | span { |
359 | 364 | width: 100%; |
| 365 | + height: 100%; |
360 | 366 | display: flex; |
361 | 367 | align-items: center; |
362 | 368 | justify-content: space-between; |
363 | 369 | } |
364 | | - h4 { |
365 | | - justify-self: flex-start; |
| 370 | + span:hover { |
| 371 | + background-color: var(--bg-light-hover); |
| 372 | + } |
| 373 | + a { |
| 374 | + display: block; |
366 | 375 | font-weight: 600; |
367 | 376 | padding-left: 0.5rem; |
368 | | - width: fit-content; |
369 | 377 | color: var(--text-primary); |
| 378 | + width: 100%; |
370 | 379 | } |
371 | 380 | &.active { |
372 | 381 | background-color: var(--bg-light-hover); |
|
383 | 392 | } |
384 | 393 | } |
385 | 394 | .experience-list-item:hover { |
386 | | - background-color: var(--bg-light-hover); |
387 | | - cursor: pointer; |
| 395 | + /* background-color: var(--bg-light-hover); */ |
| 396 | + /* cursor: pointer; */ |
388 | 397 | p { |
389 | 398 | color: var(--text-primary); |
390 | 399 | } |
|
428 | 437 | } |
429 | 438 | .experience-list-item { |
430 | 439 | grid-template-columns: 1rem 1fr 1.2fr; |
431 | | - h4 { |
432 | | - order: -2; |
433 | | - padding-left: auto; |
| 440 | + span { |
434 | 441 | width: 100%; |
| 442 | + display: flex; |
| 443 | + align-items: flex-end; |
| 444 | + justify-content: space-between; |
| 445 | + height: 100%; |
| 446 | + } |
| 447 | + a { |
| 448 | + order: -2; |
| 449 | + justify-self: end; |
| 450 | + margin-left: auto; |
| 451 | + text-align: right; |
| 452 | + padding-right: 0.5rem; |
435 | 453 | } |
436 | 454 | p { |
437 | 455 | order: -3; |
|
440 | 458 | order: -4; |
441 | 459 | } |
442 | 460 | } |
| 461 | + /* .link-wrapper { |
| 462 | + justify-content: flex-end; |
| 463 | + .experience-card-icon { |
| 464 | + justify-content: flex-end; |
| 465 | + text-align: right; |
| 466 | + } |
| 467 | + } */ |
443 | 468 | .icons { |
444 | 469 | flex-direction: row-reverse; |
445 | 470 | } |
|
0 commit comments