Skip to content

Commit 586933e

Browse files
committed
feat(insights): update overview images
1 parent f7b8a9c commit 586933e

File tree

8 files changed

+774
-388
lines changed

8 files changed

+774
-388
lines changed

apps/insights/src/components/Overview/index.module.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,11 @@
6464
}
6565
}
6666
}
67+
68+
html[data-theme="dark"] .lightImage {
69+
display: none;
70+
}
71+
72+
html[data-theme="light"] .darkImage {
73+
display: none;
74+
}

apps/insights/src/components/Overview/index.tsx

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import { CrossfadeTabPanels } from "@pythnetwork/component-library/CrossfadeTabP
44
import { Tabs } from "@pythnetwork/component-library/unstyled/Tabs";
55

66
import styles from "./index.module.scss";
7-
import PriceFeeds from "./price-feeds.svg";
8-
import Publishers from "./publishers.svg";
7+
import PriceFeedsDark from "./price-feeds-dark.svg";
8+
import PriceFeedsLight from "./price-feeds-light.svg";
9+
import PublishersDark from "./publishers-dark.svg";
10+
import PublishersLight from "./publishers-light.svg";
911
import { TabList } from "./tab-list";
1012
import {
1113
totalVolumeTraded,
@@ -138,8 +140,24 @@ export const Overview = () => (
138140
</section>
139141
<CrossfadeTabPanels
140142
items={[
141-
{ id: "publishers", children: <Publishers /> },
142-
{ id: "price feeds", children: <PriceFeeds /> },
143+
{
144+
id: "publishers",
145+
children: (
146+
<>
147+
<PublishersDark className={styles.darkImage} />
148+
<PublishersLight className={styles.lightImage} />
149+
</>
150+
),
151+
},
152+
{
153+
id: "price feeds",
154+
children: (
155+
<>
156+
<PriceFeedsDark className={styles.darkImage} />
157+
<PriceFeedsLight className={styles.lightImage} />
158+
</>
159+
),
160+
},
143161
]}
144162
/>
145163
</Tabs>

apps/insights/src/components/Overview/price-feeds-dark.svg

Lines changed: 201 additions & 0 deletions
Loading

apps/insights/src/components/Overview/price-feeds-light.svg

Lines changed: 201 additions & 0 deletions
Loading

apps/insights/src/components/Overview/price-feeds.svg

Lines changed: 0 additions & 196 deletions
This file was deleted.

apps/insights/src/components/Overview/publishers-dark.svg

Lines changed: 171 additions & 0 deletions
Loading

apps/insights/src/components/Overview/publishers-light.svg

Lines changed: 171 additions & 0 deletions
Loading

apps/insights/src/components/Overview/publishers.svg

Lines changed: 0 additions & 188 deletions
This file was deleted.

0 commit comments

Comments
 (0)