Skip to content

Commit 7ee38b1

Browse files
committed
mistake on achieve word corrected
1 parent 7735661 commit 7ee38b1

3 files changed

Lines changed: 23 additions & 128 deletions

File tree

docs/src/components/HomepageFeatures/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const FeatureList: FeatureItem[] = [
3333
title: 'Powered by React Native and Expo',
3434
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
3535
description: (
36-
<>We are using the newest tools to acheive the best performance and developer experience.</>
36+
<>We are using the newest tools to achieve the best performance and developer experience.</>
3737
),
3838
},
3939
]

docs/src/pages/index.module.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
* and scoped locally.
44
*/
55

6+
/**
7+
* CSS files with the .module.css suffix will be treated as CSS modules
8+
* and scoped locally.
9+
*/
10+
611
.heroBanner {
712
padding: 4rem 0;
813
text-align: center;
@@ -27,11 +32,12 @@
2732
}
2833

2934
.imageWrapper {
30-
padding: 0 0px;
35+
padding: 0 16px;
3136
}
3237

3338
.image {
34-
width: 30%;
39+
width: 100%;
40+
max-width: 400px;
3541
height: auto;
3642
border-radius: 12px;
3743
}

docs/src/pages/index.tsx

Lines changed: 14 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,25 @@
1-
import React from 'react'
2-
import Link from '@docusaurus/Link'
3-
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
41
import HomepageFeatures from '@site/src/components/HomepageFeatures'
2+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
3+
import styles from './index.module.css'
54
import Heading from '@theme/Heading'
5+
import Link from '@docusaurus/Link'
66
import Layout from '@theme/Layout'
7-
import clsx from 'clsx'
87
import Slider from 'react-slick'
9-
import styles from './index.module.css'
8+
import React from 'react'
9+
import clsx from 'clsx'
1010

1111
function HomepageHeader() {
1212
const { siteConfig } = useDocusaurusContext()
1313

1414
const settings = {
15-
dots: true,
16-
infinite: true,
17-
speed: 500,
18-
slidesToShow: 1,
19-
slidesToScroll: 1,
15+
adaptiveHeight: true,
16+
arrows: true,
2017
autoplay: true,
2118
autoplaySpeed: 3000,
22-
// centerPadding: '100px',
23-
arrows: true,
24-
centerMode: true,
25-
adaptiveHeight: true,
19+
dots: true,
20+
infinite: true,
21+
pauseOnHover: false,
2622
responsive: [
27-
{
28-
breakpoint: 1200,
29-
settings: {
30-
slidesToShow: 2,
31-
slidesToScroll: 1,
32-
},
33-
},
3423
{
3524
breakpoint: 1000,
3625
settings: {
@@ -39,20 +28,16 @@ function HomepageHeader() {
3928
},
4029
},
4130
{
42-
breakpoint: 500,
43-
settings: {
44-
slidesToShow: 2,
45-
slidesToScroll: 1,
46-
},
47-
},
48-
{
49-
breakpoint: 300,
31+
breakpoint: 550,
5032
settings: {
5133
slidesToShow: 1,
5234
slidesToScroll: 1,
5335
},
5436
},
5537
],
38+
slidesToScroll: 1,
39+
slidesToShow: 3,
40+
speed: 500,
5641
}
5742

5843
return (
@@ -115,99 +100,3 @@ export default function Home(): JSX.Element {
115100
</Layout>
116101
)
117102
}
118-
119-
// import React from 'react'
120-
// import Link from '@docusaurus/Link'
121-
// import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
122-
// import HomepageFeatures from '@site/src/components/HomepageFeatures'
123-
// import Heading from '@theme/Heading'
124-
// import Layout from '@theme/Layout'
125-
// import clsx from 'clsx'
126-
// import Slider from 'react-slick'
127-
// import styles from './index.module.css'
128-
129-
// function HomepageHeader() {
130-
// const { siteConfig } = useDocusaurusContext()
131-
132-
// const settings = {
133-
// dots: true,
134-
// infinite: true,
135-
// speed: 500,
136-
// slidesToShow: 1,
137-
// centerMode: true,
138-
// slidesToScroll: 1,
139-
// centerPadding: '400px',
140-
// autoplay: true,
141-
// draggable: true,
142-
// autoplaySpeed: 2500,
143-
// responsive: [
144-
// {
145-
// breakpoint: 996, //996
146-
// settings: {
147-
// slidesToShow: 1,
148-
// slidesToScroll: 1,
149-
// },
150-
// },
151-
// ],
152-
// }
153-
154-
// return (
155-
// <header className={clsx('hero hero--primary padding-vert--xl', styles.heroBanner)}>
156-
// <div className="container padding-vert--xl">
157-
// <Heading as="h1" className="hero__title">
158-
// {siteConfig.title}
159-
// </Heading>
160-
// <p className="hero__subtitle">{siteConfig.tagline}</p>
161-
// <div className={styles.buttons}>
162-
// <Link className="button button--secondary button--lg" to="/docs/overview">
163-
// See docs
164-
// </Link>
165-
// </div>
166-
// <div className={styles.sliderContainer}>
167-
// <Slider {...settings}>
168-
// <div>
169-
// <img
170-
// src="/img/iphone_signup_draft_light.png"
171-
// alt="First iPhone draft"
172-
// className={styles.image}
173-
// />
174-
// </div>
175-
// <div>
176-
// <img
177-
// src="/img/iphone_signup_draft_dark.png"
178-
// alt="Second iPhone draft"
179-
// className={styles.image}
180-
// />
181-
// </div>
182-
// <div>
183-
// <img
184-
// src="/img/iphone_settings_draft_light.png"
185-
// alt="Third iPhone draft"
186-
// className={styles.image}
187-
// />
188-
// </div>
189-
// <div>
190-
// <img
191-
// src="/img/iphone_settings_draft_dark.png"
192-
// alt="Fourth iPhone draft"
193-
// className={styles.image}
194-
// />
195-
// </div>
196-
// </Slider>
197-
// </div>
198-
// </div>
199-
// </header>
200-
// )
201-
// }
202-
203-
// export default function Home(): JSX.Element {
204-
// const { siteConfig } = useDocusaurusContext()
205-
// return (
206-
// <Layout title={siteConfig.title} description="Description will go into a meta tag in <head />">
207-
// <HomepageHeader />
208-
// <main>
209-
// <HomepageFeatures />
210-
// </main>
211-
// </Layout>
212-
// )
213-
// }

0 commit comments

Comments
 (0)