From 24be7b5399ae4162702ad9a1f17b5711922a2da4 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Sun, 2 Feb 2020 13:12:13 +0100 Subject: Add a router --- app/components/author/author.svelte | 0 app/components/home/home.svelte | 3 +++ app/components/invalid_route/invalid_route.svelte | 2 ++ app/components/post/post.svelte | 29 +++++++++++++++++++++++ app/components/topic/topic.svelte | 10 ++++---- app/components/topic_index/topic_index.svelte | 7 ++++++ 6 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 app/components/author/author.svelte create mode 100644 app/components/home/home.svelte create mode 100644 app/components/invalid_route/invalid_route.svelte create mode 100644 app/components/post/post.svelte create mode 100644 app/components/topic_index/topic_index.svelte (limited to 'app/components') diff --git a/app/components/author/author.svelte b/app/components/author/author.svelte new file mode 100644 index 0000000..e69de29 diff --git a/app/components/home/home.svelte b/app/components/home/home.svelte new file mode 100644 index 0000000..280bb5d --- /dev/null +++ b/app/components/home/home.svelte @@ -0,0 +1,3 @@ +

Welcome.

+

You are now in a forum. Select a category from the left or input a + valid URL.

diff --git a/app/components/invalid_route/invalid_route.svelte b/app/components/invalid_route/invalid_route.svelte new file mode 100644 index 0000000..32225f1 --- /dev/null +++ b/app/components/invalid_route/invalid_route.svelte @@ -0,0 +1,2 @@ +

This is not right.

+

This URL is not valid. Try again.

diff --git a/app/components/post/post.svelte b/app/components/post/post.svelte new file mode 100644 index 0000000..429dfd6 --- /dev/null +++ b/app/components/post/post.svelte @@ -0,0 +1,29 @@ + + + +
+

It's just how it is...

+
+
+ + diff --git a/app/components/topic/topic.svelte b/app/components/topic/topic.svelte index 3816bbc..c2462fd 100644 --- a/app/components/topic/topic.svelte +++ b/app/components/topic/topic.svelte @@ -11,10 +11,10 @@