Skip to content

Commit 209193a

Browse files
docs(website): add footer
1 parent ade2357 commit 209193a

File tree

7 files changed

+75
-2
lines changed

7 files changed

+75
-2
lines changed

packages/overmind-website/api/action.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ An action is where you write the logic of the application. Every action receives
88

99
This context gives Overmind the ability to understand what state you are changing and what effects you are running. Additionally this context makes your actions highly testable as it can easily be mocked.
1010

11-
State changes are restricted to these actions, even though they run asynchronously, and any components currently accessing the state will render.
11+
State changes are restricted to these actions. That means if you try to change the state outside of an action you will get an error. The state changes are also scoped to the action. That means it does not matter if you perform the state change asynchronously, either by defining the action as an **async** function or for example use a **setTimeout**. You can change the state at any time within the action.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const listWrapper = css`
1313
width: 150px;
1414
1515
padding-top: 50px;
16-
height: 100vh;
1716
right: calc(50% + 350px);
1817
overflow-y: scroll;
1918
-webkit-overflow-scrolling: touch;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Videos from '../Videos'
1010
import Api from '../Api'
1111
import MobileTopBar from '../MobileTopBar'
1212
import { useIsMobile, useScrollToTop } from '../../utils'
13+
import Footer from '../Footer'
1314

1415
const pages = {
1516
[Page.HOME]: FrontPage,
@@ -50,6 +51,7 @@ const App: SFC = () => {
5051
<div ref={mainRef} className={styles.wrapper}>
5152
{isMobile ? <MobileTopBar /> : <TopBar />}
5253
<Page />
54+
<Footer />
5355
</div>
5456
)
5557
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { createElement, SFC } from 'react'
2+
import * as styles from './styles'
3+
import Icon from '../Icon'
4+
5+
const Footer: SFC = () => {
6+
return (
7+
<div className={styles.wrapper}>
8+
<a
9+
href="https://github.com/cerebral/overmind"
10+
target="_new"
11+
className={styles.github}
12+
>
13+
<Icon>github</Icon>
14+
</a>
15+
<div className={styles.copy}>
16+
Released under the{' '}
17+
<a href="https://opensource.org/licenses/MIT" target="_new">
18+
MIT License
19+
</a>
20+
<div> Copyright © 2019 Christian Alfoni</div>
21+
</div>
22+
<a
23+
href="https://spectrum.chat/?t=ddc61ecd-56c7-4c54-8029-c42118d52975"
24+
target="_new"
25+
className={styles.chat}
26+
>
27+
<Icon>chat</Icon>
28+
</a>
29+
</div>
30+
)
31+
}
32+
33+
export default Footer
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { css } from 'emotion'
2+
3+
export const wrapper = css`
4+
display: flex;
5+
background-color: var(--color-dark-1);
6+
height: 100px;
7+
justify-content: center;
8+
align-items: center;
9+
> * {
10+
margin: 0 var(--padding-4);
11+
}
12+
`
13+
14+
export const copy = css`
15+
font-size: var(--font-size-3);
16+
color: var(--color-white-1);
17+
text-align: center;
18+
a {
19+
color: var(--color-primary);
20+
text-decoration: none;
21+
font-weight: bold;
22+
}
23+
div {
24+
font-size: var(--font-size-2);
25+
}
26+
`
27+
28+
export const github = css`
29+
font-size: var(--font-size-6);
30+
color: var(--color-white-1);
31+
text-decoration: none;
32+
`
33+
34+
export const chat = css`
35+
font-size: var(--font-size-6);
36+
color: var(--color-white-1);
37+
text-decoration: none;
38+
`

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const icons = {
88
chat: '\f086',
99
guide: '\f0f6',
1010
bars: '\f0c9',
11+
github: '\f09b',
1112
}
1213

1314
export const icon = (icon: string) => css`
320 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)