-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
8 changed files
with
44 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const TemplateSeparator = ({ separatorLogo }) => { | ||
return ( | ||
<div className="template-seperator"> | ||
<span className="template-seperator-icon">{separatorLogo}</span> | ||
</div> | ||
); | ||
} | ||
}; | ||
|
||
export default TemplateSeparator | ||
export default TemplateSeparator; |
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
30 changes: 16 additions & 14 deletions
30
components/templates/templateFeaturesAnimation/TemplateFeaturesAnimationInline.js
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,27 +1,29 @@ | ||
import React, { useRef } from 'react' | ||
import React, { useRef } from 'react'; | ||
import useAnimatedFeatures from './useAnimatedFeatures'; | ||
|
||
const TemplateFeaturesAnimationInline = ({ inlineFeaturesData, parentHandleClick, parentID , inlineSeconds =1000 }) => { | ||
const animationInlineRef = useRef(null) | ||
const TemplateFeaturesAnimationInline = ({ inlineFeaturesData, parentHandleClick, parentID, inlineSeconds = 1000 }) => { | ||
const animationInlineRef = useRef(null); | ||
const { selectedID, handleClick } = useAnimatedFeatures(animationInlineRef, inlineFeaturesData.length, inlineSeconds); | ||
|
||
const handleBtnClick = (id) => { | ||
handleClick(id) | ||
parentHandleClick(parentID) | ||
} | ||
handleClick(id); | ||
parentHandleClick(parentID); | ||
}; | ||
|
||
return ( | ||
<div className='template-features-animation-right-inline' ref={animationInlineRef}> | ||
<div className='template-features-animation-right-inline-tabs'> | ||
<div className="template-features-animation-right-inline" ref={animationInlineRef}> | ||
<div className="template-features-animation-right-inline-tabs"> | ||
{inlineFeaturesData.map((data, i) => ( | ||
<button className={`${!!(data.id === selectedID) && "template-features-animation-right-inline-tabs-btnActive"}`} onClick={() => handleBtnClick(data.id)} key={i}>{data.title}</button> | ||
<button className={`${!!(data.id === selectedID) && 'template-features-animation-right-inline-tabs-btnActive'}`} onClick={() => handleBtnClick(data.id)} key={i}> | ||
{data.title} | ||
</button> | ||
))} | ||
</div> | ||
<div className='template-features-animation-right-inline-image'> | ||
<img src={inlineFeaturesData[selectedID - 1].src} alt='Animation Inline Feature Image' /> | ||
<div className="template-features-animation-right-inline-image"> | ||
<img src={inlineFeaturesData[selectedID - 1].src} alt="Animation Inline Feature Image" /> | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default TemplateFeaturesAnimationInline | ||
export default TemplateFeaturesAnimationInline; |
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