-
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.
- Loading branch information
Showing
9 changed files
with
172 additions
and
36 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 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,29 @@ | ||
import { motion } from 'framer-motion'; | ||
|
||
interface PaginationProps { | ||
pageNumbers: number[]; | ||
currentPage: number; | ||
paginate: (pageNumber: number) => void; | ||
} | ||
|
||
const SeminarPagination: React.FC<PaginationProps> = ({ pageNumbers, currentPage, paginate }) => { | ||
return ( | ||
<div className="pt-10 mt-5 desktop:flex tablet:hidden hidden justify-center gap-3"> | ||
{/* desktop에서만 보이기 */} | ||
{pageNumbers.map(number => ( | ||
<motion.button | ||
key={number} | ||
onClick={() => paginate(number)} | ||
className={`text-[0.75rem] font-medium w-5 h-5 justify-center items-center text-center border rounded ${currentPage === number ? 'text-mono_white border-mono_white' : 'text-mono_500 border-mono_500'}`} | ||
whileHover={{ scale: 1.2 }} | ||
whileTap={{ scale: 0.8 }} | ||
transition={{ duration: 0.2 }} | ||
> | ||
{number} | ||
</motion.button> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default SeminarPagination; |
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
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,16 @@ | ||
import { Variants } from 'framer-motion'; | ||
|
||
export const seminarCardVariants: Variants = { | ||
offscreen: { | ||
y: 300, | ||
}, | ||
onscreen: { | ||
y: 50, | ||
rotate: -10, | ||
transition: { | ||
type: 'spring', | ||
bounce: 0.4, | ||
duration: 0.8, | ||
}, | ||
}, | ||
}; |
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,32 @@ | ||
export const toggleVariants = { | ||
opened: { | ||
maxHeight: '500px', | ||
opacity: 1, | ||
transition: { | ||
maxHeight: { | ||
duration: 0.5, | ||
ease: 'easeInOut' | ||
}, | ||
opacity: { | ||
delay: 0.1, | ||
duration: 0.4, | ||
ease: 'easeInOut' | ||
} | ||
} | ||
}, | ||
closed: { | ||
maxHeight: 0, | ||
opacity: 0, | ||
transition: { | ||
maxHeight: { | ||
duration: 0.5, | ||
ease: 'easeInOut' | ||
}, | ||
opacity: { | ||
delay: 0.1, | ||
duration: 0.4, | ||
ease: 'easeInOut' | ||
} | ||
} | ||
} | ||
}; |