Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jan 9, 2024
1 parent b78d4db commit 9ec4c2b
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 46 deletions.
11 changes: 4 additions & 7 deletions components/templates/TemplateConfiguration.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react'
import React from 'react';

const TemplateConfiguration = ({
title = "",
description = "",
}) => {
const TemplateConfiguration = ({ title = '', description = '' }) => {
return (
<div className="template-configuration-wrapper">
<div className="template-configuration">
Expand All @@ -30,6 +27,6 @@ const TemplateConfiguration = ({
</div>
</div>
);
}
};

export default TemplateConfiguration
export default TemplateConfiguration;
6 changes: 3 additions & 3 deletions components/templates/TemplateRelated.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import React from 'react';

const TemplateRelated = ({ relatedData }) => {
return (
Expand All @@ -15,6 +15,6 @@ const TemplateRelated = ({ relatedData }) => {
</div>
</div>
);
}
};

export default TemplateRelated
export default TemplateRelated;
6 changes: 3 additions & 3 deletions components/templates/TemplateSeparator.js
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;
6 changes: 3 additions & 3 deletions components/templates/TemplateYoutube.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import { Dialog } from '../lib/primereact.all'
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">
Expand Down Expand Up @@ -61,4 +61,4 @@ const TemplateYoutube = ({
);
};

export default TemplateYoutube
export default TemplateYoutube;
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;
8 changes: 4 additions & 4 deletions components/templates/templateHero/TemplateHero.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import TemplateHeroRectangle from './TemplateHeroRectangle'
import TemplateHeroLight from './TemplateHeroLight'
import React from 'react';
import TemplateHeroRectangle from './TemplateHeroRectangle';
import TemplateHeroLight from './TemplateHeroLight';

const TemplateHero = ({ logo, pattern, rectangle, light, dashboard1, dashboard2, description, liveHref, docHref }) => {
return (
Expand Down Expand Up @@ -36,4 +36,4 @@ const TemplateHero = ({ logo, pattern, rectangle, light, dashboard1, dashboard2,
);
};

export default TemplateHero
export default TemplateHero;
10 changes: 5 additions & 5 deletions components/templates/templateHero/TemplateHeroLight.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import React from 'react';

const TemplateHeroLight = () => {
return (
<svg width="490" height="143" viewBox="0 0 490 143" fill="none" xmlns="http://www.w3.org/2000/svg" className='template-hero-light'>
<svg width="490" height="143" viewBox="0 0 490 143" fill="none" xmlns="http://www.w3.org/2000/svg" className="template-hero-light">
<g filter="url(#filter0_f_1970_42395)">
<g filter="url(#filter1_f_1970_42395)">
<rect x="43" y="43" width="404" height="10" rx="5" fill="var(--primary-100)" />
Expand Down Expand Up @@ -58,7 +58,7 @@ const TemplateHeroLight = () => {
</filter>
</defs>
</svg>
)
}
);
};

export default TemplateHeroLight
export default TemplateHeroLight;
13 changes: 6 additions & 7 deletions components/templates/templateHero/TemplateHeroRectangle.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react'
import React from 'react';

const TemplateHeroRectangle = () => {
return (
<>
<svg width="1152" height="457" viewBox="0 0 1152 457" fill="none" xmlns="http://www.w3.org/2000/svg" className='template-hero-rectangle'>
<g style={{mixBlendMode:"overlay"}} filter="url(#filter0_f_956_37561)">
<svg width="1152" height="457" viewBox="0 0 1152 457" fill="none" xmlns="http://www.w3.org/2000/svg" className="template-hero-rectangle">
<g style={{ mixBlendMode: 'overlay' }} filter="url(#filter0_f_956_37561)">
<path d="M264.08 -96H547.881L952 470H-163L264.08 -96Z" fill="url(#paint0_linear_956_37561)" />
</g>
<defs>
Expand All @@ -19,9 +19,8 @@ const TemplateHeroRectangle = () => {
</linearGradient>
</defs>
</svg>

</>
)
}
);
};

export default TemplateHeroRectangle
export default TemplateHeroRectangle;

0 comments on commit 9ec4c2b

Please sign in to comment.