Skip to content

Commit

Permalink
Merge pull request #248 from depromeet/feature/my-page-edit
Browse files Browse the repository at this point in the history
jungjjeong | refactor: backgroundImage ์†์„ฑ ์ˆ˜์ •
  • Loading branch information
Jungjjeong authored Feb 8, 2024
2 parents 279fbce + 1c4e183 commit 5aeed62
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/app/archive/marble-detail-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const MarbleDetailCard = forwardRef<HTMLDivElement, Props>(

{isShowDeleteBtn && (
<button
className="h-fit w-fit rounded-3 bg-white px-4 py-3 text-secondary"
className="h-fit w-fit rounded-3 border border-gray-300 bg-white px-4 py-3 text-secondary"
onClick={onClickMenu}
>
์‚ญ์ œํ•˜๊ธฐ
Expand All @@ -106,10 +106,14 @@ export const MarbleDetailCard = forwardRef<HTMLDivElement, Props>(
ref={ref}
>
<div className="relative">
<img
src={src}
alt="marble thumbnail"
<div className="z-20 h-full w-full bg-gradient-to-b from-black to-black" />
<div
className="box-border w-full rounded-xl after:block after:pb-[calc(100%)]"
style={{
backgroundSize: "cover",
backgroundRepeat: "no-repeat",
backgroundImage: `linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.00) 24.65%), url(${src})`,
}}
/>
</div>
<p
Expand Down

0 comments on commit 5aeed62

Please sign in to comment.