Skip to content

Commit c25897f

Browse files
docs(website): improve layout and add introduction summary
1 parent dcebf73 commit c25897f

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class Overmind<Config extends Configuration> implements Configuration {
289289
})
290290
setTimeout(() => {
291291
const flushData = this.proxyStateTree.flush(true)
292-
if (flushData.mutations.length) {
292+
if (this.devtools && flushData.mutations.length) {
293293
this.devtools.send({
294294
type: 'flush',
295295
data: {

packages/overmind-website/src/components/Doc/styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const content = css`
1919
2020
@media (max-width: 700px) {
2121
width: 100%;
22-
padding: var(--padding-5) var(--padding-4);
22+
padding: var(--padding-5);
2323
}
2424
2525
ol {

packages/overmind-website/src/components/FrontPage/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ const FrontPage: SFC = () => {
3838
>
3939
<Logo />
4040
<h1>frictionless webapp development</h1>
41+
<div className={styles.summary}>
42+
Web application development is about <strong>defining</strong>,{' '}
43+
<strong>changing</strong> and <strong>consuming state</strong> to
44+
produce a user experience. Overmind aims for a developer experience
45+
where that is all you focus on, reducing the orchestration of state
46+
management to a minimum. Making you a <strong>happier</strong> and
47+
more <strong>productive</strong> developer!
48+
</div>
4149
</div>
4250
<div
4351
className={css(

packages/overmind-website/src/components/FrontPage/styles.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@ export const wrapper = css`
88
height: 100vh;
99
justify-content: center;
1010
11+
@media (max-width: 700px) {
12+
padding: var(--padding-5);
13+
}
14+
1115
h1,
1216
h2 {
1317
color: var(--color-dark-1);
1418
}
1519
`
1620

21+
export const summary = css`
22+
margin-top: 50px;
23+
font-size: var(--font-size-4);
24+
text-align: center;
25+
`
26+
1727
export const container = css`
1828
margin-left: auto;
1929
margin-right: auto;
@@ -72,7 +82,7 @@ export const banner = css`
7282
display: flex;
7383
flex-direction: column;
7484
align-items: center;
75-
margin-bottom: 150px;
85+
margin-bottom: 100px;
7686
> h1 {
7787
font-weight: normal;
7888
letter-spacing: 0.2rem;

0 commit comments

Comments
 (0)