-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReferences.js
89 lines (74 loc) · 1.95 KB
/
References.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import React from 'react'
import styled from 'styled-components'
import {vsDark as theme} from '@code-surfer/themes'
const Styled = styled.ul`
text-align: left;
font-size: 32px;
`
const Link = styled.a.attrs(_ => ({ target: '_blank' }))`
color: ${theme.colors.primary};
text-decoration: none;
cursor: pointer;
&:hover,
&:visited,
&:focus {
color: ${theme.colors.primary};
text-decoration: none;
}
`
const StyledEntry = styled.li`
margin-bottom: 25px;
vertical-align: middle;
`
const Small = styled.div`
font-size: 20px;
font-style: italic;
line-height: 1.5;
`
const Entry = ({ link, title, twitter, user }) => (
<StyledEntry>
<div>
<Link href={link}>{title}</Link>
</div>
{Boolean(twitter) && (
<Small>
{' by '}<Link href={twitter}>{user}</Link>
</Small>
)}
</StyledEntry>
)
const Referenes = () => (
<Styled>
<Entry
link="https://www.typescriptlang.org/docs/handbook/advanced-types.html#discriminated-unions"
title="TypeScript Discriminated Unions"
/>
<Entry
link="https://dev.to/housinganywhere/matching-your-way-to-consistent-states-1oag"
title="Matching your way to consistent states"
/>
<Entry
link="https://github.com/gillchristian/remote-data-ts/"
title="remote-data-ts"
/>
<Entry
link="https://dev.to/davidkpiano/no-disabling-a-button-is-not-app-logic-598i"
title="No, disabling a button is not app logic"
twitter="https://twitter.com/DavidKPiano"
user="David K."
/>
<Entry
link="https://www.youtube.com/watch?v=IcgmSRJHu_8"
title="Making Impossible States Impossible"
twitter="https://twitter.com/rtfeldman"
user="Richard Feldman"
/>
<Entry
link="https://fsharpforfunandprofit.com/ddd/"
title="Domain Modeling Made Functional"
twitter="https://twitter.com/ScottWlaschin"
user="Scott Wlaschin"
/>
</Styled>
)
export default Referenes