Skip to content

Commit

Permalink
💄 Improve component preview and block bg
Browse files Browse the repository at this point in the history
  • Loading branch information
yashsehgal committed Mar 17, 2024
1 parent 28579d3 commit 1f4a2a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/website/component-block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const ComponentBlock = forwardRef<HTMLDivElement, ComponentBlockProps>(
}}
onClick={() => posthog.capture(componentName)}>
<Link href={componentPath}>
<div className="h-[180px] w-full rounded-xl flex flex-row items-center justify-center bg-white/10">
<div className="h-[180px] w-full rounded-xl flex flex-row items-center justify-center bg-neutral-900 shadow-inner border-neutral-800 select-none">
{componentRender}
</div>
<div className={cn('component-details-wrapper mt-4')}>
Expand Down
2 changes: 1 addition & 1 deletion components/website/component-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const ComponentPreview = forwardRef<
<div
ref={ref}
className={cn(
'component-preview mt-6 py-4 min-h-[400px] justify-center border border-neutral-700 bg-white/10 rounded-2xl flex flex-row items-center relative w-full',
'component-preview mt-6 py-4 min-h-[400px] justify-center border border-neutral-700 bg-white/10 rounded-2xl flex flex-row items-center relative w-full backdrop-blur-sm',
className,
)}
{...args}>
Expand Down

0 comments on commit 1f4a2a9

Please sign in to comment.