Skip to content

Commit 3ce61b8

Browse files
committed
Tweak the home page
1 parent 256ae25 commit 3ce61b8

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

src/pages/home/Splash/index.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,29 @@ import React from 'react';
55
import SplashLeftIllustration from './SplashLeftIllustration';
66
import SplashRightIllustration from './SplashRightIllustration';
77
import styles from './styles.module.css';
8-
import Spiro from '/img/spiro_header.svg';
98

109
export default function Splash() {
1110
return (
1211
<section className={styles.wrapper}>
1312
<div className={styles.container}>
1413
<SplashLeftIllustration />
1514
<div className={styles.main}>
16-
<div className={styles.spiroContainer}>
17-
<Spiro />
18-
</div>
1915
<div className={styles.mainContent}>
2016
<h1 className={styles.mainText}>React Navigation</h1>
2117
<h3 className={styles.subText}>
22-
Routing and navigation for Expo and React Native apps.
18+
Routing and navigation for React Native and Web apps.
2319
</h3>
2420
<div className={styles.buttonContainer}>
2521
<Link
2622
to={useBaseUrl('/docs/getting-started')}
27-
className={styles.button}
23+
className={`${styles.button} ${styles.buttonPrimary}`}
2824
>
2925
Read Docs
3026
</Link>
3127
<a
28+
target="_blank"
3229
href="https://github.com/react-navigation/react-navigation/tree/main/example"
33-
className={`${styles.button} ${styles.buttonPrimary}`}
30+
className={`${styles.button}`}
3431
>
3532
Try It
3633
</a>

src/pages/home/Splash/styles.module.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@
4848
border-bottom-right-radius: 0.5rem;
4949
}
5050

51-
.spiroContainer {
52-
color: var(--ifm-home-color-background-secondary);
53-
position: absolute;
54-
z-index: 0;
55-
}
56-
5751
.mainContent {
5852
position: relative;
5953
}
@@ -62,12 +56,14 @@
6256
font-size: 4.375rem;
6357
color: var(--ifm-home-color-text);
6458
font-weight: 900;
59+
margin-bottom: 0;
6560
}
6661

6762
.subText {
6863
font-size: 1.5rem;
6964
color: var(--ifm-home-color-text);
7065
font-weight: 600;
66+
margin-top: 0;
7167
}
7268

7369
.buttonContainer {

0 commit comments

Comments
 (0)