-
Notifications
You must be signed in to change notification settings - Fork 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
1 parent
5768735
commit 8993432
Showing
28 changed files
with
1,046 additions
and
1,011 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import React from 'react'; | ||
|
||
const TemplateFeatures = ({ featuresData, displayType }) => { | ||
const renderHorizontalFeatures = () => { | ||
return ( | ||
<div className="template-features-horizontal-wrapper"> | ||
<div className="template-features-horizontal"> | ||
{featuresData.map((data, i) => ( | ||
<div key={i} className="template-features-horizontal-card"> | ||
<div className="template-features-horizontal-card-top"> | ||
<img src={data.src} alt={data.title}></img> | ||
</div> | ||
<div className="template-features-horizontal-card-bottom"> | ||
<h5 className="template-features-horizontal-card-bottom-title">{data.title}</h5> | ||
<p className="template-features-horizontal-card-bottom-description">{data.description}</p> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const renderVerticalFeatures = () => { | ||
const firstColumnData = featuresData.slice(0, Math.ceil(featuresData.length / 2)); | ||
const secondColumnData = featuresData.slice(Math.ceil(featuresData.length / 2)); | ||
|
||
return ( | ||
<div className="template-features-vertical-wrapper"> | ||
<div className="template-features-vertical"> | ||
{Array(2) | ||
.fill(null) | ||
.map((_, i) => ( | ||
<div key={i} className="template-features-vertical-col"> | ||
{(i === 0 ? firstColumnData : secondColumnData).map((data, j) => ( | ||
<div key={j} className={`template-features-vertical-card `}> | ||
<div className="template-features-vertical-card-image"> | ||
<img src={data.src} alt={data.title} /> | ||
</div> | ||
<h2>{data.title}</h2> | ||
<p>{data.description}</p> | ||
</div> | ||
))} | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
return <div className="template-features">{displayType === 'vertical' ? renderVerticalFeatures() : renderHorizontalFeatures()}</div>; | ||
}; | ||
|
||
export default TemplateFeatures; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,42 +1,64 @@ | ||
import React, { useState } from 'react' | ||
import { Dialog } from '../lib/primereact.all' | ||
|
||
const PlayIcon = React.memo(() => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="0 0 180 180" fill="none"> | ||
<g filter="url(#filter0_d_918_49700)"> | ||
<rect x="50" y="46" width="80" height="80" rx="40" fill="white" /> | ||
<rect x="50.5" y="46.5" width="79" height="79" rx="39.5" stroke="#DFE7EF" /> | ||
<path | ||
d="M103.062 84.7896C104.085 85.5904 104.085 87.1386 103.062 87.9394L85.3123 101.834C83.9995 102.862 82.0795 101.926 82.0795 100.259L82.0795 72.47C82.0795 70.8028 83.9995 69.8674 85.3123 70.8951L103.062 84.7896Z" | ||
fill="var(--primary-400)" | ||
/> | ||
</g> | ||
<defs> | ||
<filter id="filter0_d_918_49700" x="0" y="0" width="180" height="180" filterUnits="userSpaceOnUse" colorInterpolationFilters="sRGB"> | ||
<feFlood floodOpacity="0" result="BackgroundImageFix" /> | ||
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" /> | ||
<feOffset dy="4" /> | ||
<feGaussianBlur stdDeviation="25" /> | ||
<feComposite in2="hardAlpha" operator="out" /> | ||
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0" /> | ||
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_918_49700" /> | ||
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_918_49700" result="shape" /> | ||
</filter> | ||
</defs> | ||
</svg> | ||
)); | ||
|
||
const TemplateYoutube = ({ | ||
playIcon, | ||
imgSrc, | ||
title = ["Integration with", "Existing Vite Applications"], | ||
description = "Only the folders that are related to the layout needs to move in to your project. We‘ve already created a short tutorial with details for Sakai Vue. The both templates have the same implementation.", | ||
youtubeLink = "https://www.youtube.com/embed/Y07edRJd5QM" | ||
title = ['Integration with', 'Existing Vite Applications'], | ||
description = 'Only the folders that are related to the layout needs to move in to your project. We‘ve already created a short tutorial with details for Sakai Vue. The both templates have the same implementation.', | ||
youtubeLink = 'https://www.youtube.com/embed/Y07edRJd5QM' | ||
}) => { | ||
const [youtubeVideoVisible, setYoutubeVideoVisible] = useState(false); | ||
|
||
return ( | ||
<div className='template-youtube-outer'> | ||
<div className='template-youtube'> | ||
<div className='template-youtube-title'> | ||
<div className="template-youtube-wrapper"> | ||
<div className="template-youtube"> | ||
<div className="template-youtube-title"> | ||
{title.map((data, i) => ( | ||
<h2 key={i}>{data}</h2> | ||
))} | ||
</div> | ||
<div className='template-youtube-description'> | ||
{description} | ||
</div> | ||
<div className='template-youtube-screen' onClick={() => setYoutubeVideoVisible(true)}> | ||
<div className='template-youtube-screen-blur'> | ||
<div className='template-youtube-screen-play'> | ||
{playIcon} | ||
<div className="template-youtube-description">{description}</div> | ||
<div className="template-youtube-screen" onClick={() => setYoutubeVideoVisible(true)}> | ||
<div className="template-youtube-screen-blur"> | ||
<div className="template-youtube-screen-play"> | ||
<PlayIcon /> | ||
</div> | ||
</div> | ||
<img src={imgSrc} alt="Template Youtube Screen" /> | ||
</div> | ||
<Dialog header="Video Content" visible={youtubeVideoVisible} style={{ width: '70vw' }} onHide={() => setYoutubeVideoVisible(false)}> | ||
<div className='template-youtube-video'> | ||
<div className="template-youtube-video"> | ||
<iframe src={youtubeLink} title="PrimeNG 2023 Roadmap" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> | ||
</div> | ||
</Dialog> | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default TemplateYoutube |
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
Oops, something went wrong.