modify experience look
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
---
|
||||
import { experience } from '../data/experience';
|
||||
|
||||
const last = experience.length - 1;
|
||||
---
|
||||
|
||||
<ol class="flex flex-col">
|
||||
<ol class="border-y border-line">
|
||||
{
|
||||
experience.map((e, i) => (
|
||||
<li class:list={['flex items-stretch gap-4', i !== last && 'mb-5']}>
|
||||
<div class="flex w-32 flex-none items-center justify-center border-2 border-amber bg-ink font-taxiway text-[56px] leading-none text-amber shadow-[inset_0_0_0_4px_var(--color-ink),inset_0_0_0_6px_var(--color-amber)] max-sm:w-20 max-sm:text-[38px]" aria-hidden="true"><span class="translate-y-[0.23em]">{String(i + 1).padStart(2, '0')}</span></div>
|
||||
<div class:list={['flex-auto border bg-panel px-5 py-4', e.current ? 'border-line-2' : 'border-line']}>
|
||||
<div class:list={['font-mono text-[12px]', e.current ? 'text-accent' : 'text-muted']}>{e.dates}</div>
|
||||
<div class="mt-1.5 text-[20px] font-semibold">{e.title}</div>
|
||||
experience.map((e) => (
|
||||
<li class:list={['grid gap-x-8 gap-y-1 border-l-2 px-5 py-5 not-first:border-t not-first:border-t-line hover:bg-hover md:grid-cols-[220px_1fr]', e.current ? 'border-l-accent' : 'border-l-transparent']}>
|
||||
<div class:list={['pt-1 font-mono text-[12px]', e.current ? 'text-accent' : 'text-muted']}>{e.dates}</div>
|
||||
<div>
|
||||
<div class="text-[20px] font-semibold">{e.title}</div>
|
||||
<div class="mt-1.5 text-body">{e.text}</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user