Skip to content

Commit d5b08c8

Browse files
committed
update folders and files
1 parent d08ded1 commit d5b08c8

File tree

11 files changed

+1341
-123
lines changed

11 files changed

+1341
-123
lines changed

package-lock.json

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

package.json

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,33 @@
1414
},
1515
"dependencies": {
1616
"@jackfranklin/rollup-plugin-markdown": "^0.2.0",
17+
"@rollup/plugin-babel": "^5.2.0",
1718
"compression": "^1.7.1",
1819
"polka": "next",
1920
"rollup-plugin-glob": "^1.0.2",
21+
"serve": "^11.3.2",
2022
"sirv": "^1.0.0"
2123
},
2224
"devDependencies": {
23-
"npm-run-all": "^4.1.5",
24-
"sapper": "^0.28.0",
25-
"svelte": "^3.17.3",
2625
"@babel/core": "^7.0.0",
2726
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
2827
"@babel/plugin-transform-runtime": "^7.0.0",
2928
"@babel/preset-env": "^7.0.0",
3029
"@babel/runtime": "^7.0.0",
31-
"@rollup/plugin-babel": "^5.0.0",
32-
"@rollup/plugin-commonjs": "^14.0.0",
33-
"@rollup/plugin-node-resolve": "^8.0.0",
30+
"@rollup/plugin-alias": "^3.0.1",
31+
"@rollup/plugin-commonjs": "^12.0.0",
32+
"@rollup/plugin-node-resolve": "^7.0.0",
3433
"@rollup/plugin-replace": "^2.2.0",
35-
"rollup": "^2.3.4",
36-
"rollup-plugin-svelte": "^6.0.0",
37-
"rollup-plugin-terser": "^7.0.0"
34+
"eslint": "^6.8.0",
35+
"eslint-plugin-cypress": "^2.10.3",
36+
"eslint-plugin-svelte3": "^2.7.3",
37+
"npm-run-all": "^4.1.5",
38+
"rollup": "^1.20.0",
39+
"rollup-plugin-babel": "^4.0.2",
40+
"rollup-plugin-svelte": "^5.0.1",
41+
"rollup-plugin-terser": "^7.0.1",
42+
"sapper": "^0.27.0",
43+
"svelte": "^3.0.0",
44+
"svelte-preprocess": "^3.5.0"
3845
}
3946
}
File renamed without changes.

posts/sapper-default-index.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: Sapper's Default Index Page
3+
summary: Sapper's default index page converted to post for legacy.
4+
date: 2020-08-31
5+
---
6+
<style>
7+
figure {
8+
margin: 0 0 1em 0;
9+
}
10+
11+
img {
12+
width: 100%;
13+
max-width: 400px;
14+
margin: 0 0 1em 0;
15+
}
16+
17+
p {
18+
margin: 1em;
19+
}
20+
</style>
21+
<h1>Great success!</h1>
22+
23+
<figure>
24+
<img alt='Success Kid' src='successkid.jpg'>
25+
<figcaption>Have fun with Sapper!</figcaption>
26+
</figure>
27+
28+
<p><strong>Powered By GITHUB, TRAVIS-CI, &amp; SAPPER/SVELTE</strong></p>

src/components/Nav.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@
5555

5656
<!-- for the blog link, we're using rel=prefetch so that Sapper prefetches
5757
the blog data when we hover over the link or tap it on a touchscreen -->
58-
<li><a rel=prefetch aria-current="{segment === 'blog' ? 'page' : undefined}" href="blog">blog</a></li>
58+
<li><a rel=prefetch aria-current="{segment === 'sapper' ? 'page' : undefined}" href="sapper">Sapper / Svelte</a></li>
5959
</ul>
6060
</nav>

src/routes/index.svelte

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<style>
22
h1, figure, p {
3-
text-align: center;
43
margin: 0 auto;
54
}
65
@@ -22,39 +21,35 @@
2221
}
2322
2423
p {
25-
margin: 1em auto;
24+
margin: 1em;
25+
}
26+
27+
article {
28+
padding: 10px;
29+
margin: 10px;
30+
border: 1px solid #f7f7f7;
2631
}
2732
2833
@media (min-width: 480px) {
2934
h1 {
3035
font-size: 4em;
3136
}
3237
}
38+
39+
3340
</style>
3441

3542
<svelte:head>
36-
<title>Sapper project template</title>
43+
<title>#ITME Jan Solo!</title>
3744
</svelte:head>
3845

3946
{#each posts as post}
4047
<article>
41-
<!-- link article to /posts/$permalink -->
42-
<a href={`/posts/${post.permalink}`}>
43-
<h2>{post.title}</h2>
44-
<p>{post.summary}</p>
45-
</a>
48+
<h2><a href={`/posts/${post.permalink}`}>{post.title}</a></h2>
49+
<p>{post.summary}</p>
4650
</article>
4751
{/each}
4852

49-
<h1>Great success!</h1>
50-
51-
<figure>
52-
<img alt='Success Kid' src='successkid.jpg'>
53-
<figcaption>Have fun with Sapper!</figcaption>
54-
</figure>
55-
56-
<p><strong>Powered By GITHUB, TRAVIS-CI, &amp; SAPPER/SVELTE</strong></p>
57-
5853
<script>
5954
import {posts} from '../posts'
6055
</script>
File renamed without changes.

src/routes/blog/[slug].svelte renamed to src/routes/sapper/[slug].svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
export async function preload({ params, query }) {
33
// the `slug` parameter is available because
44
// this file is called [slug].svelte
5-
const res = await this.fetch(`blog/${params.slug}.json`);
5+
const res = await this.fetch(`sapper/${params.slug}.json`);
66
const data = await res.json();
77
88
if (res.status === 200) {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)