-
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.
Merge pull request #11 from syncosaurus/additional-home-section
Additional home section
- Loading branch information
Showing
14 changed files
with
178 additions
and
16 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
import { useRef } from 'react'; | ||
import useIsVisible from '@site/src/hooks/useIsVisible' | ||
|
||
const FadeInSection = ({ children }) => { | ||
const sectionRef = useRef(); | ||
const isVisible = useIsVisible(sectionRef); | ||
|
||
return ( | ||
<div | ||
ref={sectionRef} | ||
className={`transition-opacity ease-in duration-700 ${ | ||
isVisible ? 'opacity-100' : 'opacity-0' | ||
}`} | ||
> | ||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
export default FadeInSection; |
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,48 @@ | ||
import clsx from 'clsx' | ||
import Heading from '@theme/Heading' | ||
import styles from './styles.module.css' | ||
import FadeInSection from './FadeInSection' | ||
|
||
export default function HomepageBenefits() { | ||
return ( | ||
<FadeInSection> | ||
<section className="font-sans rounded-3xl lg:rounded-tl-2xl lg:rounded-bl-2xl overflow-hidden m-1 pb-14 pl-6 pr-6 flex flex-col text-center items-center bg-gray-200"> | ||
<article className="flex flex-col justify-center gap-8"> | ||
<div className="flex flex-col justify-center gap-40 md:flex-row pt-10"> | ||
<div className="flex flex-col items-center md:items-center"> | ||
<p className="tracking-tight text-3xl font-bold text-syncoBlue p-override"> | ||
Ready to Scale | ||
</p> | ||
<object data="/img/icons/cloudflare.svg" className="size-28" /> | ||
<p className="text-2xl text-pretty p-override pt-6"> | ||
Scalable infrastructure <br /> built with Cloudflare | ||
</p> | ||
</div> | ||
|
||
<div className="flex flex-col items-center md:items-center"> | ||
<p className="tracking-tight text-3xl font-bold text-syncoBlue p-override"> | ||
Quick to Integrate | ||
</p> | ||
<object data="/img/icons/React_Logo.svg" className="size-24" /> | ||
<p className="text-2xl text-pretty p-override pt-10"> | ||
React SDK to quickly add <br /> | ||
new features to your app | ||
</p> | ||
</div> | ||
|
||
<div className="flex flex-col items-center md:items-center"> | ||
<p className="tracking-tight text-3xl font-bold text-syncoBlue p-override"> | ||
Easy to Configure | ||
</p> | ||
<object data="/img/icons/file_icon.svg" className="size-24" /> | ||
<p className="text-2xl text-pretty p-override pt-10"> | ||
Config file to customize <br /> | ||
default syncing behavior | ||
</p> | ||
</div> | ||
</div> | ||
</article> | ||
</section> | ||
</FadeInSection> | ||
) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 @@ | ||
.features { | ||
display: flex; | ||
align-items: center; | ||
vertical-align: middle; | ||
padding: 2rem 2rem; | ||
width: 100%; | ||
} | ||
|
||
.featureSvg { | ||
height: 200px; | ||
width: 200px; | ||
} |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.