Skip to content

Commit

Permalink
feat: using vanilla-extract on NeoChip
Browse files Browse the repository at this point in the history
  • Loading branch information
ohager committed Nov 30, 2023
1 parent 9b2f0e3 commit 4a51de3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 41 deletions.
1 change: 1 addition & 0 deletions neo-page/src/components/NeoChip/NeoChip.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const neoChip = style({
})

export const frame = style({
// @ts-expect-error special arwes css
"[data-name=bg]" : { color: "hsl(180, 75%, 10%)" },
"[data-name=line]" : { color: "hsl(180, 75%, 50%)"},
})
34 changes: 0 additions & 34 deletions neo-page/src/components/NeoChipOld.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions neo-page/src/home/sections/Stats/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NeoChipOld } from "@/components/NeoChipOld.tsx";
import { NeoChip } from "@/components/NeoChip";
import { theme } from "@/utils/theme";
import { KpiCard } from "./components/KpiCard";

Expand All @@ -12,7 +12,7 @@ export const Stats = () => {
gap: "1rem",
}}
>
<NeoChipOld label="Stats" />
<NeoChip label="Stats" />
<span style={{ color: theme.colors.warning.deco(30) }}>
Since Genesis Block. 2014
</span>
Expand Down
5 changes: 2 additions & 3 deletions neo-page/src/home/sections/ThirdPartyApps/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { NeoChipOld } from "@/components/NeoChipOld.tsx";
import { NeoChip } from "@/components/NeoChip";
import { AppCard } from "./components/AppCard";
import { ThirdPartyApp } from "./types";

export const ThirdPartyApps = () => {
return (
<section className="default-container">
<div style={{ display: "flex" }}>
<NeoChipOld label="Third Party Apps" />
<NeoChip label="Third Party Apps" />
</div>

<div
Expand Down
4 changes: 2 additions & 2 deletions neo-page/src/home/sections/Wikis/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { NeoChipOld } from "@/components/NeoChipOld.tsx";
import { NeoChip } from "@/components/NeoChip";
import { WikiCard } from "./components/WikiCard";

export const Wikis = () => {
return (
<section className="default-container">
<div style={{ display: "flex" }}>
<NeoChipOld label="Wikis" />
<NeoChip label="Wikis" />
</div>

<div className="default-cards-container">
Expand Down

0 comments on commit 4a51de3

Please sign in to comment.