Skip to content

Commit 674f800

Browse files
Merge pull request #65 from binarapps/feat/pics-mainpage-baca
Feat/home screen
2 parents 86c93a7 + 67444b1 commit 674f800

File tree

23 files changed

+170
-76
lines changed

23 files changed

+170
-76
lines changed

docs/README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ This command generates static content into the `build` directory and can be serv
2626

2727
### Deployment
2828

29-
Using SSH:
29+
We are hosting docs on vercel, co you could just use this command:
3030

31-
```
32-
$ USE_SSH=true yarn deploy
33-
```
34-
35-
Not using SSH:
36-
37-
```
38-
$ GIT_USER=<Your GitHub username> yarn deploy
39-
```
40-
41-
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
31+
- vercel --prod

docs/docs/data-management/MOCKING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ description: Mocking - check how to mock data from backend and display it for us
1818

1919
This template uses [MSW](https://mswjs.io/docs) to mock data.
2020

21-
Mocks are automatically generated with orval script - you can check [docs here](/api-connection)
21+
Mocks are automatically generated with orval script - you can check [docs here](/docs/api-connection)
2222

2323
## Enabling mocks
2424

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import styles from './styles.module.css'
2+
import Link from '@docusaurus/Link'
3+
import clsx from 'clsx'
4+
5+
export default function HeaderButtons() {
6+
return (
7+
<div className={styles.buttonsContainer}>
8+
<Link
9+
className={clsx(
10+
'button button--secondary button--lg',
11+
styles.button,
12+
styles.buttonReadDocs
13+
)}
14+
to="/docs/overview"
15+
>
16+
Read docs
17+
</Link>
18+
<Link
19+
className={clsx('button button--secondary button--lg', styles.button, styles.buttonTryIt)}
20+
to="https://binarapps.online/sign-in"
21+
>
22+
Try it
23+
</Link>
24+
</div>
25+
)
26+
}

docs/src/pages/components/ImageSlider.tsx renamed to docs/src/components/HomePageHeader/ImageSlider.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import styles from '../index.module.css'
1+
import styles from './styles.module.css'
22
import Slider from 'react-slick'
33

44
const sliderSettings = {
@@ -48,14 +48,16 @@ const sliderImages = [
4848
},
4949
]
5050

51-
export const ImageSlider = () => (
52-
<div className={styles.sliderContainer}>
53-
<Slider {...sliderSettings}>
54-
{sliderImages.map((image, index) => (
55-
<div key={index} className={styles.imageWrapper}>
56-
<img src={image.src} alt={image.alt} className={styles.image} />
57-
</div>
58-
))}
59-
</Slider>
60-
</div>
61-
)
51+
export default function ImageSlider() {
52+
return (
53+
<div className={styles.sliderContainer}>
54+
<Slider {...sliderSettings}>
55+
{sliderImages.map((image, index) => (
56+
<div key={index} className={styles.imageWrapper}>
57+
<img src={image.src} alt={image.alt} className={styles.image} />
58+
</div>
59+
))}
60+
</Slider>
61+
</div>
62+
)
63+
}

docs/src/pages/HomepageHeader.tsx renamed to docs/src/components/HomePageHeader/index.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
2-
import { HeaderButtons } from './components/HeaderButtons'
3-
import { ImageSlider } from './components/ImageSlider'
4-
import styles from './index.module.css'
2+
3+
import styles from './styles.module.css'
54
import Heading from '@theme/Heading'
65
import clsx from 'clsx'
6+
import HeaderButtons from './HeaderButtons'
7+
import ImageSlider from './ImageSlider'
78

8-
export function HomepageHeader() {
9+
export default function HomepageHeader() {
910
const { siteConfig } = useDocusaurusContext()
1011

1112
return (
File renamed without changes.

docs/src/pages/components/HeaderButtons.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import HomepageFeatures from '@site/src/components/HomepageFeatures'
22
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
3-
import { HomepageHeader } from './HomepageHeader'
3+
import HomepageHeader from '@site/src/components/HomePageHeader'
44
import Layout from '@theme/Layout'
55

66
export default function Home(): JSX.Element {

src/constants/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export * from './images'
66
export * from './navigation'
77
export * from './regex'
88
export * from './time'
9+
export * from './links'

src/constants/links.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
export const APP_STORE_URL = `https://apps.apple.com/app/id`
22
export const PLAY_STORE_URL = `https://play.google.com/store/apps/details?id=`
3+
export const BACA_APP_URL = `https://binarapps.online/sign-in`
4+
export const BACA_DOCS_URL = `https://baca-docs.vercel.app/docs/overview`

0 commit comments

Comments
 (0)