Skip to content

Commit

Permalink
why section
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoblaise authored May 5, 2024
1 parent e42737c commit 1ea74ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions components/cardstack.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
'use client';
import { CardStack } from './ui/card-stack';
import { cn } from '@/utils/cn';
export function CardStacker({offset, scaleFactor}:{
export function CardStacker({
offset,
scaleFactor
}:{
offset?: number;
scaleFactor?: number;
scaleFactor?: number;
}) {
return (
<div className="flex items-center justify-center w-full ">
<CardStack items={CARDS} offset={offset} scaleFactor={scaleFactor}/>
<div className="flex items-center justify-center w-full">
<CardStack items={CARDS} offset={offset} scaleFactor={scaleFactor}/>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion components/ui/card-stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const CardStack = ({
return (
<motion.div
key={card.id}
className="absolute bg-black w-60 md:w-96 rounded-3xl p-2 shadow-xl borderborder-white/[0.1] shadow-black/[0.1] shadow-white/[0.05]"
className="absolute bg-black w-60 md:w-96 rounded-3xl p-4 shadow-xl borderborder-white/[0.1] shadow-black/[0.1] shadow-white/[0.05]"
style={{
transformOrigin: "top center",
}}
Expand Down

0 comments on commit 1ea74ad

Please sign in to comment.