Skip to content

Commit

Permalink
🖌️ UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
shivekkhurana committed Dec 26, 2023
1 parent 6305abb commit 4382fdf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
Binary file modified krimlabs.com.sketch
Binary file not shown.
2 changes: 1 addition & 1 deletion public/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 3 additions & 14 deletions public/img/timelineIcons/writing-bolt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/components/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ function BaseTimelineLog(props: PropsWithChildren<{ t: TimelineItem }>) {
<div className={clsx('flex items-center', 'group')}>
<div
className={clsx(
'w-3/12',
'w-2/12',
'text-xs opacity-60',
'group-hover:opacity-90'
)}
>
{convertDateString(t.createdAt || t.publishedOn)}
{convertDateString(t.createdAt || t.publishedOn).split(',')[0]}
</div>
<div className='w-1/12'>
<img src={getSrc(t.type)} alt={`${t.type} icon`} className={clsx('w-6 h-6', 'opacity-50 group-hover:opacity-90')} />
Expand All @@ -85,7 +85,7 @@ function ComputedComp(props: PropsWithChildren<{ t: TimelineItem }>) {
}
}

function TimelineLog(
function TimelineLogs(
props: PropsWithChildren<{ timelineItems: TimelineItem[]; year: string }>
) {
const { timelineItems, year } = props;
Expand Down Expand Up @@ -115,7 +115,7 @@ function Timeline({ }) {
return (
<div key={year} className="pl-0 md:pl-8">
<div className="font-bold text-xs opacity-60 mt-8">{year}</div>
<TimelineLog year={year} timelineItems={timelineItems} />
<TimelineLogs year={year} timelineItems={timelineItems} />
</div>
);
})}
Expand Down

0 comments on commit 4382fdf

Please sign in to comment.