Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/app/recipe/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function Page() {
<p>n개</p>
<SelectBox option={['', '댓글순', '인기순']} title="최신순" />
</div>

<section className="mt-5 ">
<CocktailList />
</section>
Expand Down
9 changes: 6 additions & 3 deletions src/domains/recipe/CocktailCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface Props {

function CocktailCard({ src, name, nameKo, keep = true, className, textSize1, textSize2 }: Props) {
return (
<li className="flex flex-col gap-4">
<div className="flex flex-col gap-4">
<div
className={tw(
`${!className && 'w-80 h-75 md:w-62.5 '} rounded-xl overflow-hidden relative`,
Expand All @@ -27,7 +27,10 @@ function CocktailCard({ src, name, nameKo, keep = true, className, textSize1, te
{/* <Image src={src} alt={name} fill /> */}
<Image src={Img} alt="" fill className="object-cover " />
{keep && (
<div className="flex justify-between absolute left-0 top-0">
<div className="flex w-full px-2 items-center justify-between absolute left-0 top-0">
<div>
<Label title="레시피" />
</div>
<Keep />
</div>
)}
Expand All @@ -36,7 +39,7 @@ function CocktailCard({ src, name, nameKo, keep = true, className, textSize1, te
<h3 className={tw(`${!textSize1 && 'text-2xl'}`, textSize1)}>Old Fassioned</h3>
<p className={tw(`${!textSize2 && 'text-base'}`, textSize2)}>올드 패션드</p>
</div>
</li>
</div>
);
}
export default CocktailCard;