-
Notifications
You must be signed in to change notification settings - Fork 0
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
3 changed files
with
49 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import React from 'react'; | ||
import Image from 'next/image'; | ||
import useIntersectionObserver from './ui/useIntersectionObserver'; | ||
import React from 'react'; | ||
import Image from 'next/image'; | ||
import useIntersectionObserver from './ui/useIntersectionObserver'; | ||
|
||
const ResumeCard = ({ icon, title, children }) => { | ||
const h1Ref = useIntersectionObserver({ threshold: 0.2 }); | ||
return ( | ||
<div ref={h1Ref} className={`scroll-element py-2 max-xl:py-0 px-4 max-sm:px-4 max-sm:py-2 flex flex-col justify-start text-start rounded-md bg-paradiso-800 text-white shadow-xl mb-6 max-sm:mb-8 card-shadow`}> | ||
<div className='flex items-center gap-2 p-2'> | ||
<Image src={icon} alt={title} width={30} height={30} style={{ filter: 'invert(1)' }} /> | ||
<h2 className='text-2xl max-sm:text-2xl font-semibold'>{title}</h2> | ||
const ResumeCard = ({ icon, title, children }) => { | ||
const h1Ref = useIntersectionObserver({ threshold: 0.2 }); | ||
return ( | ||
<div ref={h1Ref} className={`scroll-element py-2 max-xl:py-0 px-4 max-sm:px-4 max-sm:py-2 flex flex-col justify-start text-start rounded-md bg-paradiso-800 text-white shadow-xl mb-6 max-sm:mb-8 card-shadow`}> | ||
<div className='flex items-center gap-2 p-2'> | ||
<Image src={icon} alt={title} width={30} height={30} style={{ filter: 'invert(1)' }} /> | ||
<h2 className='text-2xl max-sm:text-2xl font-semibold'>{title}</h2> | ||
</div> | ||
<div className='flex flex-col space-y-2 text-wrap'> | ||
{children} | ||
</div> | ||
</div> | ||
<div className='flex flex-col space-y-2 text-wrap'> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
); | ||
}; | ||
|
||
export default ResumeCard; | ||
export default ResumeCard; |
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