Skip to content

Commit

Permalink
Using Hover on Homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
édouard wautier authored and édouard wautier committed Nov 23, 2023
1 parent bf759b5 commit d7d5f34
Show file tree
Hide file tree
Showing 21 changed files with 124 additions and 118 deletions.
34 changes: 25 additions & 9 deletions front/components/home/contentComponents.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {
CircleIcon,
Div3D,
HexagonIcon,
Hover3D,
Icon,
RectangleIcon,
SquareIcon,
Expand Down Expand Up @@ -260,19 +262,33 @@ export const ReactiveIcon = ({
{
className: classNames(
singleChild.props.className,
"h-8 w-8 md:h-12 md:w-12 drop-shadow-[0_5px_5px_rgba(0,0,0,0.4)]"
"h-8 w-8 md:h-12 md:w-12"
),
}
);
return (
<ReactiveImg
colorHEX={colorHEX}
className={classNames("w-fit", className)}
paddingCSS="p-4"
tooltipLabel={tooltipLabel}
isSmall
// <ReactiveImg
// colorHEX={colorHEX}
// className={classNames("w-fit", className)}
// paddingCSS="p-4"
// tooltipLabel={tooltipLabel}
// isSmall
// >
// {modifiedChild}
// </ReactiveImg>
<Hover3D
attack={0.1}
release={1}
className={classNames(
"rounded-2xl border p-3 shadow-xl",
"bg-gradient-to-b from-zinc-700/60 to-zinc-900/80",
"border-stone-700/40"
)}
depth={-10}
>
{modifiedChild}
</ReactiveImg>
<Div3D depth={30} className="top-0">
{modifiedChild}
</Div3D>
</Hover3D>
);
};
9 changes: 4 additions & 5 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.46",
"@dust-tt/sparkle": "^0.2.47",
"@emoji-mart/data": "^1.1.2",
"@emoji-mart/react": "^1.1.1",
"@headlessui/react": "^1.7.7",
Expand Down
Loading

0 comments on commit d7d5f34

Please sign in to comment.