Skip to content

Commit ffc9391

Browse files
author
Adam Plesnik
committed
Tune the demo
1 parent b201515 commit ffc9391

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

src/demos/TimelineOverrideDemo.tsx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
11
import Code from '../components/Code'
2+
import Skeleton from '../components/Skeleton'
23
import DemoWrapper from './DemoWrapper'
34

5+
const skeletonCollection = ['46%', '100%', '92%', '100%', '93%', '87%', '93%', '87%', '55%']
6+
47
const TimelineOverrideDemo = () => {
58
return (
6-
<DemoWrapper className="max-h-60 sm:max-h-48" actionButton>
7-
<div className="sticky top-0 flex flex-col gap-4 p-8">
8-
<div className="flex flex-1 items-center">
9+
<DemoWrapper className="" actionButton>
10+
<div className="sticky top-0 flex flex-col gap-4 p-8 sm:flex-row">
11+
<div className="flex items-center">
912
<span className="animate-opacity rounded-lg bg-sky-500/40 p-4 dark:bg-fuchsia-300/60">
1013
<Code>timeline</Code> <span className="text-sm font-medium">before</span>{' '}
1114
<Code>animate-opacity</Code>
1215
</span>
1316
</div>
14-
<div className="flex flex-1 items-center">
17+
<div className="flex items-center">
1518
<span className="animate-opacity rounded-lg bg-sky-500/40 p-4 timeline dark:bg-fuchsia-300/60">
1619
<Code>animate-opacity</Code> <span className="text-sm font-medium">before</span>{' '}
1720
<Code>timeline</Code>
1821
</span>
1922
</div>
2023
</div>
21-
<div className="h-96"></div>
24+
<div className="p-8">
25+
{skeletonCollection.map((width, key) => (
26+
<Skeleton width={width} key={key} />
27+
))}
28+
</div>
29+
<div className="px-8 pb-8">
30+
{skeletonCollection.map((width, key) => (
31+
<Skeleton width={width} key={key} />
32+
))}
33+
</div>
2234
</DemoWrapper>
2335
)
2436
}

0 commit comments

Comments
 (0)