-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Home Page 애니메이션 추가 및 코드 정리
- Loading branch information
1 parent
d5e9108
commit 9d3eded
Showing
7 changed files
with
166 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
|
||
import Image, { StaticImageData } from 'next/image'; | ||
|
||
interface ActivityCardProps { | ||
image: StaticImageData; | ||
title: string; | ||
description1: string; | ||
description2: string; | ||
isImageRight: boolean; | ||
} | ||
|
||
export const ActivityCard: React.FC<ActivityCardProps> = ({ | ||
image, | ||
title, | ||
description1, | ||
description2, | ||
isImageRight, | ||
}) => { | ||
return ( | ||
<div className={`flex ${isImageRight ? 'flex-row-reverse' : 'flex-row'} items-center my-8`}> | ||
<div className="w-1/2"> | ||
<Image | ||
src={image} | ||
alt={title} | ||
width={500} | ||
height={300} | ||
className="object-cover rounded-3xl" | ||
/> | ||
</div> | ||
<div className="w-1/2 px-6"> | ||
<h3 className="text-lg font-medium text-blue-500 mb-4">{title}</h3> | ||
<p className="font-medium text-xl mb-4">{description1}</p> | ||
<p className="font-medium text-[#6B7684]">{description2}</p> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters