-
Notifications
You must be signed in to change notification settings - Fork 3
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
29 changed files
with
3,919 additions
and
3,224 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext' | ||
import { HeaderButtons } from './components/HeaderButtons' | ||
import { ImageSlider } from './components/ImageSlider' | ||
import styles from './index.module.css' | ||
import Heading from '@theme/Heading' | ||
import clsx from 'clsx' | ||
|
||
export function HomepageHeader() { | ||
const { siteConfig } = useDocusaurusContext() | ||
|
||
return ( | ||
<header className={clsx('hero hero--primary padding-vert--xl', styles.heroBanner)}> | ||
<div className="container padding-vert--xl"> | ||
<Heading as="h1" className="hero__title"> | ||
{siteConfig.title} | ||
</Heading> | ||
<p className="hero__subtitle">{siteConfig.tagline}</p> | ||
<HeaderButtons /> | ||
<ImageSlider /> | ||
</div> | ||
</header> | ||
) | ||
} |
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 styles from '../index.module.css' | ||
import Link from '@docusaurus/Link' | ||
import clsx from 'clsx' | ||
|
||
export const HeaderButtons = () => ( | ||
<div className={styles.buttonsContainer}> | ||
<Link | ||
className={clsx('button button--secondary button--lg', styles.button, styles.buttonReadDocs)} | ||
to="/docs/overview" | ||
> | ||
Read docs | ||
</Link> | ||
<Link | ||
className={clsx('button button--secondary button--lg', styles.button, styles.buttonTryIt)} | ||
to="https://binarapps.online/sign-in" | ||
> | ||
Try it | ||
</Link> | ||
</div> | ||
) |
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,61 @@ | ||
import styles from '../index.module.css' | ||
import Slider from 'react-slick' | ||
|
||
const sliderSettings = { | ||
adaptiveHeight: true, | ||
arrows: true, | ||
autoplay: true, | ||
autoplaySpeed: 3000, | ||
dots: true, | ||
infinite: true, | ||
responsive: [ | ||
{ | ||
breakpoint: 1000, | ||
settings: { | ||
slidesToShow: 2, | ||
slidesToScroll: 1, | ||
}, | ||
}, | ||
{ | ||
breakpoint: 550, | ||
settings: { | ||
slidesToShow: 1, | ||
slidesToScroll: 1, | ||
}, | ||
}, | ||
], | ||
slidesToScroll: 1, | ||
slidesToShow: 3, | ||
speed: 500, | ||
} | ||
|
||
const sliderImages = [ | ||
{ | ||
src: '/img/iphone_signup_draft_light.png', | ||
alt: 'First iPhone draft', | ||
}, | ||
{ | ||
src: '/img/iphone_signup_draft_dark.png', | ||
alt: 'Second iPhone draft', | ||
}, | ||
{ | ||
src: '/img/iphone_settings_draft_light.png', | ||
alt: 'Third iPhone draft', | ||
}, | ||
{ | ||
src: '/img/iphone_settings_draft_dark.png', | ||
alt: 'Fourth iPhone draft', | ||
}, | ||
] | ||
|
||
export const ImageSlider = () => ( | ||
<div className={styles.sliderContainer}> | ||
<Slider {...sliderSettings}> | ||
{sliderImages.map((image, index) => ( | ||
<div key={index} className={styles.imageWrapper}> | ||
<img src={image.src} alt={image.alt} className={styles.image} /> | ||
</div> | ||
))} | ||
</Slider> | ||
</div> | ||
) |
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.
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.