tutorial links in svelte files

pull/7038/head
Ignatius Bagus 5 years ago
parent 1dfb728769
commit db65cd7191
No known key found for this signature in database
GPG Key ID: 357C6674A45CC06B

@ -1,6 +1,6 @@
<script>
async function getRandomNumber() {
const res = await fetch(`tutorial/random-number`);
const res = await fetch(`/tutorial/random-number`);
const text = await res.text();
if (res.ok) {

@ -1,6 +1,6 @@
<script>
async function getRandomNumber() {
const res = await fetch(`tutorial/random-number`);
const res = await fetch(`/tutorial/random-number`);
const text = await res.text();
if (res.ok) {

@ -42,12 +42,12 @@
}
.address {
background-image: url(tutorial/icons/map-marker.svg);
background-image: url(/tutorial/icons/map-marker.svg);
}
.email {
background-image: url(tutorial/icons/email.svg);
background-image: url(/tutorial/icons/email.svg);
}
.missing {
color: #999;
}
</style>
</style>

@ -42,12 +42,12 @@
}
.address {
background-image: url(tutorial/icons/map-marker.svg);
background-image: url(/tutorial/icons/map-marker.svg);
}
.email {
background-image: url(tutorial/icons/email.svg);
background-image: url(/tutorial/icons/email.svg);
}
.missing {
color: #999;
}
</style>
</style>

@ -3,7 +3,7 @@
$: type = name.slice(name.lastIndexOf('.') + 1);
</script>
<span style="background-image: url(tutorial/icons/{type}.svg)">{name}</span>
<span style="background-image: url(/tutorial/icons/{type}.svg)">{name}</span>
<style>
span {
@ -11,4 +11,4 @@
background: 0 0.1em no-repeat;
background-size: 1em 1em;
}
</style>
</style>

@ -29,14 +29,14 @@
<style>
span {
padding: 0 0 0 1.5em;
background: url(tutorial/icons/folder.svg) 0 0.1em no-repeat;
background: url(/tutorial/icons/folder.svg) 0 0.1em no-repeat;
background-size: 1em 1em;
font-weight: bold;
cursor: pointer;
}
.expanded {
background-image: url(tutorial/icons/folder-open.svg);
background-image: url(/tutorial/icons/folder-open.svg);
}
ul {

@ -3,7 +3,7 @@
$: type = name.slice(name.lastIndexOf('.') + 1);
</script>
<span style="background-image: url(tutorial/icons/{type}.svg)">{name}</span>
<span style="background-image: url(/tutorial/icons/{type}.svg)">{name}</span>
<style>
span {
@ -11,4 +11,4 @@
background: 0 0.1em no-repeat;
background-size: 1em 1em;
}
</style>
</style>

@ -29,14 +29,14 @@
<style>
span {
padding: 0 0 0 1.5em;
background: url(tutorial/icons/folder.svg) 0 0.1em no-repeat;
background: url(/tutorial/icons/folder.svg) 0 0.1em no-repeat;
background-size: 1em 1em;
font-weight: bold;
cursor: pointer;
}
.expanded {
background-image: url(tutorial/icons/folder-open.svg);
background-image: url(/tutorial/icons/folder-open.svg);
}
ul {

@ -11,7 +11,7 @@
<img
class:curious={hereKitty}
alt="Kitten wants to know what's going on"
src="tutorial/kitten.png"
src="/tutorial/kitten.png"
>
<style>

@ -14,7 +14,7 @@
<img
class:curious={hereKitty}
alt="Kitten wants to know what's going on"
src="tutorial/kitten.png"
src="/tutorial/kitten.png"
>
<style>

@ -1,5 +1,5 @@
<svelte:head>
<link rel="stylesheet" href="tutorial/dark-theme.css">
<link rel="stylesheet" href="/tutorial/dark-theme.css">
</svelte:head>
<h1>Hello world!</h1>
<h1>Hello world!</h1>

Loading…
Cancel
Save