Skip to content

Commit

Permalink
Still wip
Browse files Browse the repository at this point in the history
  • Loading branch information
édouard wautier authored and édouard wautier committed Oct 24, 2023
1 parent df3aadc commit 1f7bbb6
Show file tree
Hide file tree
Showing 10 changed files with 187 additions and 254 deletions.
21 changes: 18 additions & 3 deletions front/components/home/contentComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ interface ReactImgProps {

export const ReactiveImg = ({
children,
colorCSS = "border-slate-700/50 bg-slate-900/70",
colorCSS = "border-slate-700/40 bg-slate-900/30",
colorHEX,
containerPaddingCSS = "p-6",
innerPaddingCSS = "p-3",
Expand Down Expand Up @@ -118,8 +118,8 @@ export const ReactiveImg = ({

const style = colorHEX
? {
backgroundColor: `${colorHEX}B3`, // B3 is hexadecimal for 70% opacity
borderColor: "#FFFFFF33", // 33 is hexadecimal for 20% opacity
backgroundColor: `${colorHEX}88`, // B3 is hexadecimal for 70% opacity
borderColor: "#FFFFFF22", // 33 is hexadecimal for 20% opacity
}
: undefined;

Expand Down Expand Up @@ -173,3 +173,18 @@ export const ReactiveIcon = ({ children, colorHEX }: ReactImgProps) => {
</ReactiveImg>
);
};

interface SeparatorProps {
color?: "red" | "amber" | "emerald" | "sky";
}

const colorTable = {
red: "s-bg-red-400",
amber: "s-bg-amber-400",
sky: "s-bg-sky-400",
emerald: "s-bg-emerald-400",
};

export const Separator = ({ color = "emerald" }: SeparatorProps) => (
<div className={classNames("h-1 w-3", colorTable[color])} />
);
8 changes: 4 additions & 4 deletions front/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"initdb": "env $(cat .env.local) npx tsx admin/db.ts"
},
"dependencies": {
"@dust-tt/sparkle": "0.2.24-gamma",
"@dust-tt/sparkle": "0.2.24-epsilon",
"@emoji-mart/data": "^1.1.2",
"@emoji-mart/react": "^1.1.1",
"@headlessui/react": "^1.7.7",
Expand Down
Loading

0 comments on commit 1f7bbb6

Please sign in to comment.