Skip to content

Commit

Permalink
New alpha Sparkle
Browse files Browse the repository at this point in the history
  • Loading branch information
édouard wautier authored and édouard wautier committed Oct 25, 2023
1 parent 95b94e5 commit ef6b910
Show file tree
Hide file tree
Showing 8 changed files with 152 additions and 114 deletions.
26 changes: 5 additions & 21 deletions front/components/home/contentComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ const hClasses = {
h4: "font-objektiv text-lg font-bold tracking-tight md:text-xl drop-shadow-md",
};

const pClasses = {
normal: "font-regular text-sm text-slate-400 md:text-lg drop-shadow",
big: "font-regular text-lg text-slate-400 md:text-xl drop-shadow",
};

interface ContentProps {
children: ReactNode;
className?: string;
Expand Down Expand Up @@ -68,6 +63,11 @@ const borderColorTable = {
red: "border-red-400",
};

const pClasses = {
normal: "font-regular text-lg text-slate-400 md:text-xl drop-shadow",
big: "font-regular text-xl text-slate-400 md:text-2xl drop-shadow",
};

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

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

const colorTable = {
red: "bg-red-400",
pink: "bg-pink-300",
amber: "bg-amber-400",
sky: "bg-sky-400",
emerald: "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-eta",
"@dust-tt/sparkle": "0.2.24-theta",
"@emoji-mart/data": "^1.1.2",
"@emoji-mart/react": "^1.1.1",
"@headlessui/react": "^1.7.7",
Expand Down
Loading

0 comments on commit ef6b910

Please sign in to comment.