Skip to content

Commit 6c91f0d

Browse files
committed
Minor spacing adjustments
Added deploy script
1 parent fb4ba9e commit 6c91f0d

File tree

6 files changed

+29
-20
lines changed

6 files changed

+29
-20
lines changed

assets/layout/landing.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</a>
1818
</nav>
1919
<div id="title"><span class="title-bold">Type</span>ScriptTo<span class="title-bold">Lua</span></div>
20-
<div id="headline">Write Lua in TypeScript</div>
20+
<div id="headline">Write Lua with TypeScript</div>
2121
</header>
2222
<main>
2323
<div id="example">
@@ -63,11 +63,13 @@
6363
</div>
6464
<div class="feature-item">
6565
<div class="feature-header">Type Safety</div>
66-
Large projects written in lua can become hard to maintain and make it easy to make mistakes.
66+
Static types can ease the mental burden of writing programs, by automatically tracking information the programmer would otherwise have to track mentally in some fashion.
67+
Types serve as documentation for yourself and other programmers and provide a ‘gradient’ that tells you what terms make sense to write.
6768
</div>
6869
<div class="feature-item">
6970
<div class="feature-header">IDE Support</div>
7071
Types enable JavaScript developers to use highly-productive development tools and practices like static checking and code refactoring when developing JavaScript applications.
72+
TypeScript extensions are available for many text editors.
7173
</div>
7274
</div>
7375
</main>

assets/layout/play.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div id="header">
22
<div id="logo">
3-
<span class="logo-bold">Type</span>ScriptTo<span class="logo-bold">Lua</span> Playground
3+
<a href="/"><span class="logo-bold">Type</span>ScriptTo<span class="logo-bold">Lua</span></a> Playground
44
</div>
55
</div>
66
<div id="content">

assets/styles/_base.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ html, body {
1212

1313
div {
1414
box-sizing: border-box;
15+
}
16+
17+
a {
18+
color: inherit;
19+
text-decoration: none;
1520
}

assets/styles/landing.scss

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ main, header {
99

1010
header {
1111
#title {
12-
margin-top: 10px;
12+
margin-top: 30px;
1313
font-size: 72px;
1414
width: 100%;
1515
text-align: center;
@@ -26,38 +26,38 @@ header {
2626
}
2727

2828
nav {
29-
margin-top: 10px;
29+
margin-top: 20px;
3030
text-align: center;
3131
color: #5690fc;
3232
width: auto;
3333
font-size: 28px;
3434
font-weight: 400;
3535

36-
a {
37-
color: inherit;
38-
text-decoration: none;
39-
}
40-
4136
a:hover {
4237
color: $grey-accent;
4338
}
4439

4540
.nav-item {
4641
display: inline-block;
47-
margin-left: 20px;
42+
margin-right: 20px;
43+
}
44+
45+
a:last-child .nav-item {
46+
margin-right: 0px;
4847
}
4948
}
5049
}
5150

5251
#features {
53-
margin-top: 10px;
52+
margin-top: 30px;
5453
margin-bottom: 20px;
5554
display: flex;
5655
}
5756

5857
.feature-item {
59-
flex: 33%;
60-
padding: 10px;
58+
flex: 33.33%;
59+
padding: 20px;
60+
line-height: 1.5;
6161
}
6262

6363
.feature-header {
@@ -67,7 +67,7 @@ header {
6767
}
6868

6969
.example-item {
70-
padding: (10px !important);
70+
padding: (15px !important);
7171
white-space: pre;
7272
font-size: 12px;
7373
font-family: $console-fonts;
@@ -79,7 +79,7 @@ header {
7979
}
8080

8181
#example {
82-
margin-top: 40px;
82+
margin-top: 70px;
8383
width: 100%;
8484

8585
#ts-declarations, #ts-source {
@@ -88,11 +88,11 @@ header {
8888
}
8989

9090
#ts-declarations {
91-
flex: 39%;
91+
flex: 40%;
9292
}
9393

9494
#ts-source {
95-
flex: 61%;
95+
flex: 60%;
9696
border-left: solid 2px #5690fc;
9797
}
9898
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"dev-playground": "webpack-dev-server --content-base dist/ --config src/playground/webpack.config.js --mode development",
99
"build-landing": "webpack --config ./src/landing/webpack.config.js --mode production",
1010
"dev-landing": "webpack-dev-server --content-base dist/ --config src/landing/webpack.config.js --mode development",
11-
"build": "npm run build-playground && npm run build-landing"
11+
"build": "npx rimraf dist && npm run build-playground && npm run build-landing",
12+
"deploy": "npm run build && npx gh-pages -d dist -b master"
1213
},
1314
"keywords": [],
1415
"author": "",
@@ -24,6 +25,7 @@
2425
"monaco-editor-webpack-plugin": "^1.5.4",
2526
"node-sass": "^4.9.3",
2627
"raw-loader": "^0.5.1",
28+
"rimraf": "^2.6.2",
2729
"sass-loader": "^7.1.0",
2830
"style-loader": "^0.23.1",
2931
"ts-loader": "^5.2.1",

src/landing/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'highlight.js/styles/vs2015.css';
33

44
import {configure, highlightBlock} from 'highlight.js';
55

6-
configure({languages: ["typescript", "lua"]})
6+
configure({languages: ["typescript", "lua"]});
77

88
document.addEventListener('DOMContentLoaded', () => {
99
let codeBlocks = document.getElementsByClassName('example-item');

0 commit comments

Comments
 (0)