Skip to content

Commit be6c804

Browse files
authored
Remove announcement bar and refactor homepage to redirect to getting started docs (#10)
1 parent 22206cc commit be6c804

File tree

2 files changed

+2
-46
lines changed

2 files changed

+2
-46
lines changed

docs/docusaurus.config.js

-5
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ const config = {
6262
},
6363
],
6464
},
65-
announcementBar: {
66-
content: ' ',
67-
backgroundColor: '#03c',
68-
textColor: '#fff',
69-
},
7065
footer: {
7166
style: 'light',
7267
links: [],

docs/src/pages/index.tsx

+2-41
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,9 @@
11
import React from 'react';
2-
import styles from './styles.module.css';
3-
import Layout from '@theme/Layout';
4-
import HomepageStartScreen from '@site/src/components/Hero/StartScreen';
5-
import { HireUsSection } from '@swmansion/t-rex-ui';
6-
import LogoHero from '@site/static/img/logo-hero.svg';
7-
import HomepageButton from '@site/src/components/HomepageButton';
2+
import { Redirect } from '@docusaurus/router';
83

94
function Home() {
105
return (
11-
<Layout
12-
title={`React Native ExecuTorch`}
13-
description="Declarative way to run AI models in React Native on device, powered by ExecuTorch."
14-
>
15-
<div className={styles.container}>
16-
<HomepageStartScreen />
17-
</div>
18-
<div
19-
style={{
20-
marginTop: '300px',
21-
marginBottom: '350px',
22-
gap: '30px',
23-
display: 'flex',
24-
flexDirection: 'column',
25-
justifyContent: 'center',
26-
alignItems: 'center',
27-
}}
28-
>
29-
<LogoHero />
30-
<h2>This site is under development</h2>
31-
<a href="/react-native-executorch/docs/fundamentals/getting-started">
32-
<HomepageButton
33-
href="/react-native-executorch/docs/fundamentals/getting-started"
34-
title="Checkout the docs"
35-
/>
36-
</a>
37-
</div>
38-
<div className={styles.container}>
39-
<HireUsSection
40-
href={
41-
'https://swmansion.com/contact/projects?utm_source=react-native-executorch&utm_medium=docs'
42-
}
43-
/>
44-
</div>
45-
</Layout>
6+
<Redirect to="/react-native-executorch/docs/fundamentals/getting-started" />
467
);
478
}
489

0 commit comments

Comments
 (0)