Skip to content

Commit 1ae969e

Browse files
committed
Init 🚀
0 parents  commit 1ae969e

16 files changed

+2168
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
node_modules
3+
4+
blog/

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# tic-tac-toe-svelte
2+
3+
> Tic Tac Toe game made in Svelte
4+
5+
Check out the [demo](https://tic-tac-toe-svelte.netlify.com).

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "svelte-app",
3+
"version": "1.0.0",
4+
"devDependencies": {
5+
"npm-run-all": "^4.1.5",
6+
"rollup": "^1.12.0",
7+
"rollup-plugin-commonjs": "^10.0.0",
8+
"rollup-plugin-livereload": "^1.0.0",
9+
"rollup-plugin-node-resolve": "^5.2.0",
10+
"rollup-plugin-svelte": "^5.0.3",
11+
"rollup-plugin-terser": "^4.0.4",
12+
"svelte": "^3.0.0"
13+
},
14+
"dependencies": {
15+
"sirv-cli": "^0.4.4"
16+
},
17+
"scripts": {
18+
"build": "rollup -c",
19+
"autobuild": "rollup -c -w",
20+
"dev": "run-p start:dev autobuild",
21+
"start": "sirv public --single",
22+
"start:dev": "sirv public --single --dev"
23+
}
24+
}

public/bundle.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/bundle.css.map

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/favicon.png

3.05 KB
Loading

public/global.css

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
html, body {
2+
position: relative;
3+
width: 100%;
4+
height: 100%;
5+
}
6+
7+
body {
8+
color: #333;
9+
margin: 0;
10+
padding: 8px;
11+
box-sizing: border-box;
12+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
13+
}
14+
15+
a {
16+
color: rgb(0,100,200);
17+
text-decoration: none;
18+
}
19+
20+
a:hover {
21+
text-decoration: underline;
22+
}
23+
24+
a:visited {
25+
color: rgb(0,80,160);
26+
}
27+
28+
label {
29+
display: block;
30+
}
31+
32+
input, button, select, textarea {
33+
font-family: inherit;
34+
font-size: inherit;
35+
padding: 0.4em;
36+
margin: 0 0 0.5em 0;
37+
box-sizing: border-box;
38+
border: 1px solid #ccc;
39+
border-radius: 2px;
40+
}
41+
42+
input:disabled {
43+
color: #ccc;
44+
}
45+
46+
input[type="range"] {
47+
height: 0;
48+
}
49+
50+
button {
51+
color: #333;
52+
background-color: #f4f4f4;
53+
outline: none;
54+
}
55+
56+
button:active {
57+
background-color: #ddd;
58+
}
59+
60+
button:focus {
61+
border-color: #666;
62+
}

public/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset='utf8'>
5+
<meta name='viewport' content='width=device-width'>
6+
7+
<title>Svelte app</title>
8+
9+
<link rel='icon' type='image/png' href='/favicon.png'>
10+
<link rel='stylesheet' href='/global.css'>
11+
<link rel='stylesheet' href='/bundle.css'>
12+
13+
<script defer src='/bundle.js'></script>
14+
</head>
15+
16+
<body>
17+
</body>
18+
</html>

0 commit comments

Comments
 (0)