diff --git a/app/App.html b/app/App.html
new file mode 100644
index 0000000..862341d
--- /dev/null
+++ b/app/App.html
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/client.js b/app/client.js
index 05d30aa..0d3fa40 100644
--- a/app/client.js
+++ b/app/client.js
@@ -1,7 +1,9 @@
import { init } from 'sapper/runtime.js';
import { routes } from './manifest/client.js';
+import App from './App.html';
-// `routes` is an array of route objects injected by Sapper
-init(document.querySelector('#sapper'), routes);
-
-if (module.hot) module.hot.accept();
\ No newline at end of file
+init({
+ target: document.querySelector('#sapper'),
+ routes,
+ App
+});
\ No newline at end of file
diff --git a/app/server.js b/app/server.js
index fa4a6d2..5a17318 100644
--- a/app/server.js
+++ b/app/server.js
@@ -3,11 +3,15 @@ import compression from 'compression';
import sapper from 'sapper';
import serve from 'serve-static';
import { routes } from './manifest/server.js';
+import App from './App.html';
polka() // You can also use Express
.use(
compression({ threshold: 0 }),
serve('assets'),
- sapper({ routes })
+ sapper({
+ routes,
+ App
+ })
)
.listen(process.env.PORT);
diff --git a/assets/global.css b/assets/global.css
index 3831b79..3566e73 100644
--- a/assets/global.css
+++ b/assets/global.css
@@ -6,15 +6,6 @@ body {
color: #333;
}
-main {
- position: relative;
- max-width: 56em;
- background-color: white;
- padding: 2em;
- margin: 0 auto;
- box-sizing: border-box;
-}
-
h1, h2, h3, h4, h5, h6 {
margin: 0 0 0.5em 0;
font-weight: 400;
diff --git a/routes/_components/Nav.html b/components/Nav.html
similarity index 100%
rename from routes/_components/Nav.html
rename to components/Nav.html
diff --git a/package.json b/package.json
index b62a1e3..1e36a38 100644
--- a/package.json
+++ b/package.json
@@ -6,19 +6,21 @@
"dev": "sapper dev",
"build": "sapper build",
"export": "sapper export",
- "start": "sapper start",
+ "start": "node build",
"cy:run": "cypress run",
"cy:open": "cypress open",
"test": "run-p --race dev cy:run"
},
"dependencies": {
"compression": "^1.7.1",
- "npm-run-all": "^4.1.2",
"polka": "^0.3.4",
- "sapper": "^0.10.0",
- "serve-static": "^1.13.1",
+ "sapper": "^0.12.0",
+ "serve-static": "^1.13.1"
+ },
+ "devDependencies": {
+ "npm-run-all": "^4.1.2",
"svelte": "^2.0.0",
- "svelte-loader": "^2.3.3",
- "webpack": "^4.1.0"
+ "svelte-loader": "^2.9.0",
+ "webpack": "^4.7.0"
}
}
diff --git a/routes/4xx.html b/routes/4xx.html
index 21d4dfa..9ff1ae7 100644
--- a/routes/4xx.html
+++ b/routes/4xx.html
@@ -2,11 +2,9 @@
Not found
-
-
Not found
+
Not found
-
Please check the URL
-
+
Please check the URL
-
-
+
\ No newline at end of file
diff --git a/routes/5xx.html b/routes/5xx.html
index bbd413b..7f008e0 100644
--- a/routes/5xx.html
+++ b/routes/5xx.html
@@ -2,9 +2,7 @@
Internal server error
-
-
Internal server error
-
+
Internal server error
-
-
+
\ No newline at end of file
diff --git a/routes/_components/Layout.html b/routes/_components/Layout.html
deleted file mode 100644
index f5e0742..0000000
--- a/routes/_components/Layout.html
+++ /dev/null
@@ -1,15 +0,0 @@
-