-
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
1 parent
e78b451
commit 6dd9294
Showing
4 changed files
with
65 additions
and
56 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
90 changes: 50 additions & 40 deletions
90
src/Version/version3/components/Animations/SkillsContent/SkillsSubContentSection.jsx
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,48 +1,58 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
|
||
const SkillsSubContentSection = ({ | ||
handleMouseEnter, | ||
handleMouseLeave, | ||
hoverStylesForContentDiv, | ||
makeTriangleStyle, | ||
view, | ||
title, | ||
description, | ||
handleMouseEnter, | ||
handleMouseLeave, | ||
hoverStylesForContentDiv, | ||
makeTriangleStyle, | ||
view, | ||
title, | ||
description, | ||
}) => { | ||
return ( | ||
<div | ||
onMouseEnter={handleMouseEnter} | ||
onMouseLeave={handleMouseLeave} | ||
className={hoverStylesForContentDiv}> | ||
<div className="flex flex-col items-center w-full"> | ||
{/* title */} | ||
<div className="flex items-center"> | ||
<div className="flex items-center justify-center"> | ||
<div className="w-[200px] h-[2px] bg-black "></div> | ||
<div className={makeTriangleStyle}></div> | ||
</div> | ||
<h1 className="text-[32px] mx-3 ">{title}</h1> | ||
<div className=" flex items-center justify-center rotate-180"> | ||
<div className="w-[200px] h-[2px] bg-black "></div> | ||
<div className={makeTriangleStyle}></div> | ||
</div> | ||
</div> | ||
{/* description */} | ||
<div> | ||
<p className="text-[16px] "> | ||
{description} | ||
</p> | ||
</div> | ||
{/* border div */} | ||
<div | ||
className={`transition-all duration-300 mt-4 ${ | ||
view | ||
? "w-full h-[4px] mt-5 bg-green-800 " | ||
: "w-[100px] h-[2px] bg-slate-600 " | ||
}`}></div> | ||
return ( | ||
<div | ||
onMouseEnter={handleMouseEnter} | ||
onMouseLeave={handleMouseLeave} | ||
className={hoverStylesForContentDiv}> | ||
<div className="flex flex-col items-center text-center w-full"> | ||
{/* title */} | ||
<div className="flex items-center"> | ||
<div className="flex items-center justify-center"> | ||
<div className="sm:w-[120px] md:[160px] lg:[200px] h-[2px] bg-black "></div> | ||
<div className={makeTriangleStyle}></div> | ||
</div> | ||
<h1 className="text-[32px] mx-3 ">{title}</h1> | ||
<div className=" flex items-center justify-center rotate-180"> | ||
<div className="sm:w-[120px] md:[160px] lg:[200px] h-[2px] bg-black "></div> | ||
<div className={makeTriangleStyle}></div> | ||
</div> | ||
</div> | ||
); | ||
{/* description */} | ||
<div> | ||
<p className="text-[16px] p-3">{description}</p> | ||
</div> | ||
{/* border div */} | ||
<div | ||
className={`transition-all duration-300 mt-4 ${ | ||
view | ||
? "w-full h-[4px] mt-5 bg-green-800 " | ||
: "w-[100px] h-[2px] bg-slate-600 " | ||
}`}></div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SkillsSubContentSection; | ||
SkillsSubContentSection.propTypes = { | ||
handleMouseEnter: PropTypes.func.isRequired, | ||
handleMouseLeave: PropTypes.func.isRequired, | ||
hoverStylesForContentDiv: PropTypes.string.isRequired, | ||
makeTriangleStyle: PropTypes.string.isRequired, | ||
view: PropTypes.bool.isRequired, | ||
title: PropTypes.string.isRequired, | ||
description: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default SkillsSubContentSection; | ||
|