1
1
import React from 'react'
2
2
3
- export default ( { version } ) =>
4
- < article className = 'bt b--black-10 bg-washed-blue black-70 ph3 ph5-ns pv4 pv5-ns' id = 'getting-started' >
5
- < div className = 'mw9 center' >
6
- < h1 className = 'mt0 f5 f3-ns' > Getting Started</ h1 >
7
- < p className = 'f5 measure lh-copy' >
8
- Copy the line of code below and paste it in the head of the html file(s) you want to include tachyons in.
3
+ export default ( { version } ) => (
4
+ < article
5
+ className = "bt b--black-10 bg-washed-blue black-70 ph3 ph5-ns pv4 pv5-ns"
6
+ id = "getting-started"
7
+ >
8
+ < div className = "mw9 center" >
9
+ < h1 className = "mt0 f5 f3-ns" > Getting Started</ h1 >
10
+ < p className = "f5 measure lh-copy" >
11
+ Copy the line of code below and paste it in the head of the html file(s)
12
+ you want to include tachyons in.
9
13
</ p >
10
- < pre className = 'pre black-70 overflow-auto' > < code className = 'code f6 dib pa2 bg-black-70 washed-green' style = { { fontSize : '14px' } } > <link rel='stylesheet' href='https://unpkg.com/tachyons@{ version } /css/tachyons.min.css'/></ code > </ pre >
11
- < p className = 'mt4' > < b > or</ b > install via npm</ p >
12
- < pre className = 'pre black-70 overflow-auto' > < code className = 'code f6 dib pa2 bg-black-70 washed-green' style = { { fontSize : '14px' } } > npm install --save-dev tachyons@{ version } </ code > </ pre >
13
- < p className = 'mt4' > < b > or</ b > grab all the source files and build+develop locally</ p >
14
- < pre className = 'pre overflow-auto' > < code className = 'code f6 dib pa2 bg-black-70 washed-green' style = { { fontSize : '14px' } } > git clone git@github.com:tachyons-css/tachyons.git
15
- cd tachyons
16
- npm install && npm start
17
- </ code > </ pre >
18
- < h3 className = 'f5 f3-ns mt4 fw6' > Prototyping template</ h3 >
19
- < p className = 'lh-copy measure f6' >
20
- This template is always linked to the most up to date version of Tachyons.
21
- Save this file to your computer to start prototyping right away without worrying
22
- about setting up a dev environment. You can open the file in a web browser and view
23
- your changes.
14
+ < pre className = "pre black-70 overflow-auto" >
15
+ < code
16
+ className = "code f6 dib pa2 bg-black-70 washed-green"
17
+ style = { { fontSize : '14px' } }
18
+ >
19
+ <link rel='stylesheet' href='https://unpkg.com/tachyons@{ version } /css/tachyons.min.css'/>
20
+ </ code >
21
+ </ pre >
22
+ < p className = "mt4" >
23
+ < b > or</ b > install via npm
24
+ </ p >
25
+ < pre className = "pre black-70 overflow-auto" >
26
+ < code
27
+ className = "code f6 dib pa2 bg-black-70 washed-green"
28
+ style = { { fontSize : '14px' } }
29
+ >
30
+ npm install --save-dev tachyons@{ version }
31
+ </ code >
32
+ </ pre >
33
+ < p className = "mt4" >
34
+ < b > or</ b > grab all the source files and build+develop locally
35
+ </ p >
36
+ < pre className = "pre overflow-auto" >
37
+ < code
38
+ className = "code f6 dib pa2 bg-black-70 washed-green"
39
+ style = { { fontSize : '14px' } }
40
+ >
41
+ git clone git@github.com:tachyons-css/tachyons.git cd tachyons npm
42
+ install && npm start
43
+ </ code >
44
+ </ pre >
45
+ < h3 className = "f5 f3-ns mt4 fw6" > Prototyping template</ h3 >
46
+ < p className = "lh-copy measure f6" >
47
+ This template is always linked to the most up to date version of
48
+ Tachyons. Save this file to your computer to start prototyping right
49
+ away without worrying about setting up a dev environment. You can open
50
+ the file in a web browser and view your changes.
24
51
</ p >
25
- < div className = ' overflow-auto' >
52
+ < div className = " overflow-auto" >
26
53
< code
27
- className = ' pre f6'
54
+ className = " pre f6"
28
55
children = { `
29
56
<!DOCTYPE html>
30
57
<html lang="en">
@@ -38,20 +65,28 @@ npm install && npm start
38
65
/>
39
66
</ div >
40
67
41
- < section className = ' bt b--black-10 pv5 mt5 cf' >
42
- < div className = ' fl-l w-100 w-50-l pr4-ns' >
43
- < h3 className = ' f5 f3-ns mt0' > Start a New Project</ h3 >
44
- < p className = ' f6 f5-ns measure lh-copy mb4 mt0' >
45
- Get setup and running with this ~7 minute screencast. Download the
46
- project and learn how to customize the tachyons source files and
47
- recompile the css using the postcss build system.
68
+ < section className = " bt b--black-10 pv5 mt5 cf" >
69
+ < div className = " fl-l w-100 w-50-l pr4-ns" >
70
+ < h3 className = " f5 f3-ns mt0" > Start a New Project</ h3 >
71
+ < p className = " f6 f5-ns measure lh-copy mb4 mt0" >
72
+ Get setup and running with this ~7 minute screencast. Download the
73
+ project and learn how to customize the tachyons source files and
74
+ recompile the css using the postcss build system.
48
75
</ p >
49
76
</ div >
50
- < div className = 'fl-l w-100 w-50-l' >
51
- < div className = 'aspect-ratio aspect-ratio--8x5' >
52
- < iframe className = 'aspect-ratio--object' src = 'https://player.vimeo.com/video/174698456' frameborder = '0' webkitallowfullscreen = '' mozallowfullscreen = '' allowfullscreen = '' > </ iframe >
77
+ < div className = "fl-l w-100 w-50-l" >
78
+ < div className = "aspect-ratio aspect-ratio--8x5" >
79
+ < iframe
80
+ className = "aspect-ratio--object"
81
+ src = "https://player.vimeo.com/video/174698456"
82
+ frameborder = "0"
83
+ webkitallowfullscreen = ""
84
+ mozallowfullscreen = ""
85
+ allowfullscreen = ""
86
+ />
53
87
</ div >
54
88
</ div >
55
89
</ section >
56
90
</ div >
57
91
</ article >
92
+ )
0 commit comments