Skip to content

Commit a4a8063

Browse files
authored
Rework landing page (#54)
* Tweak tagline and disable search * Fix mobile styles * Add icons * Add sales pitch section and copyrights
1 parent ef6e98b commit a4a8063

File tree

8 files changed

+111
-9
lines changed

8 files changed

+111
-9
lines changed

website/core/Footer.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,32 @@ class Footer extends React.Component {
7575
style={{color : "white"}}
7676
>
7777
Font Awesome
78-
</a>
78+
</a> and <a
79+
href="https://thenounproject.com"
80+
style={{color : "white"}}
81+
>
82+
Noun Project
83+
</a> (<a
84+
href="https://thenounproject.com/term/snap/1984955/"
85+
style={{color : "white"}}
86+
>
87+
Nate Gallagher
88+
</a>, <a
89+
href="https://thenounproject.com/term/brain/1551075/"
90+
style={{color : "white"}}
91+
>
92+
BomSymbols
93+
</a>, <a
94+
href="https://thenounproject.com/term/bicep/1338504/"
95+
style={{color : "white"}}
96+
>
97+
zidney
98+
</a>, <a
99+
href="https://thenounproject.com/term/checklist/437165//"
100+
style={{color : "white"}}
101+
>
102+
David
103+
</a>)
79104
</section>
80105
</footer>
81106
)

website/pages/en/index.js

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ const SplashContainer = props => (
4444
</div>
4545
)
4646

47-
const Logo = props => (
48-
<div className="projectLogo">
49-
<img src={props.img_src} alt="Project Logo" />
50-
</div>
51-
)
5247

5348
const ProjectTitle = () => (
5449
<React.Fragment>
@@ -58,7 +53,7 @@ const ProjectTitle = () => (
5853
</div>
5954

6055
<h2 style={{marginTop : "0.5em"}}>
61-
A simple set of tools to make using Redux easier
56+
{siteConfig.tagline}
6257
</h2>
6358
</React.Fragment>
6459
)
@@ -99,6 +94,45 @@ const Installation = () => (
9994
</div>
10095
)
10196

97+
const Block = props => (
98+
<Container
99+
id={props.id}
100+
background={props.background}
101+
className={props.className}
102+
>
103+
<GridBlock align="center" contents={props.children} layout={props.layout}/>
104+
</Container>
105+
);
106+
const FeaturesTop = props => (
107+
<Block layout="fourColumn" className="featureBlock">
108+
{[
109+
{
110+
content: `Includes utilities to simplify common use cases like **store setup, creating reducers, immutable update logic**, and more.`,
111+
image : imgUrl("noun_snap_1984955.svg"),
112+
imageAlign: 'top',
113+
title: "Simple"
114+
},
115+
{
116+
content: "Provides **good defaults for store setup out of the box**, and includes **the most commonly used Redux addons built-in**.",
117+
image: imgUrl('noun_Brain_1551075.svg'),
118+
imageAlign: 'top',
119+
title: "Opinionated"
120+
},
121+
{ // .
122+
content: `Takes inspiration from libraries like Immer and Autodux to let you **write "mutative" immutable update logic**, and even **create entire "slices" of state automatically**.`,
123+
image: imgUrl('noun_Bicep_1338504.svg'),
124+
imageAlign: 'top',
125+
title: "Powerful"
126+
},
127+
{
128+
content: "Lets you focus on the core logic your app needs, so you can **do more work with less code**.",
129+
image: imgUrl('noun_Checklist_437165.svg'),
130+
imageAlign: 'top',
131+
title: "Effective"
132+
},
133+
]}
134+
</Block>
135+
);
102136
class Index extends React.Component {
103137
render() {
104138
const language = this.props.language || ''
@@ -107,7 +141,11 @@ class Index extends React.Component {
107141
<div>
108142
<HomeSplash language={language} />
109143
<div className="mainContainer">
110-
<Installation />
144+
<div className="productShowcaseSection">
145+
<Container background="light">
146+
<FeaturesTop />
147+
</Container>
148+
</div>
111149
</div>
112150
</div>
113151
)

website/siteConfig.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@
1010

1111
const siteConfig = {
1212
title: 'Redux Starter Kit', // Title for your website.
13-
tagline: 'A simple set of tools to make using Redux easier',
13+
tagline: 'A simple batteries-included toolset to make using Redux easier',
1414
url: 'https://redux-starter-kit.js.org', // Your website URL
1515
baseUrl: '/',
1616
docsUrl: '',
17+
// Disable search until we get a new key from Algolia
18+
/*
1719
algolia: {
1820
apiKey: '2d058d216b7fd5d68d481fd48ee72c06',
1921
indexName: 'redux-starter-kit',
2022
algoliaOptions: {}
2123
},
24+
*/
2225

2326
// Used for publishing and more
2427
projectName: 'redux-starter-kit',

website/static/css/custom.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ a:visited {
2424

2525
.fixedHeaderContainer header .headerTitleWithLogo {
2626
color : white;
27+
display: block !important;
2728
}
2829

2930
.navigationSlider .slidingNav ul a {
@@ -78,6 +79,37 @@ a:visited {
7879
margin-bottom: 5px;
7980
}
8081

82+
83+
@media only screen and (max-device-width: 480px) {
84+
.productShowcaseSection .featureBlock {
85+
padding-top: 0;
86+
padding-bottom: 0;
87+
}
88+
89+
.featureBlock .imageAlignTop .blockImage {
90+
margin-bottom: 0;
91+
}
92+
93+
.featureBlock .blockContent h2 {
94+
margin-top: 0;
95+
margin-bottom: 5px;
96+
}
97+
98+
.featureBlock .blockContent {
99+
margin-bottom: 25px;
100+
}
101+
102+
.homeSplashFade img {
103+
width : 60px;
104+
height : 60px;
105+
}
106+
107+
.homeSplashFade h1 {
108+
margin-top: 0;
109+
margin-bottom: 0;
110+
}
111+
}
112+
81113
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
82114
}
83115

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)