diff --git a/src/app.html b/src/app.html index 77a5ff5..77c4a7b 100644 --- a/src/app.html +++ b/src/app.html @@ -3,6 +3,11 @@ + + + + + %sveltekit.head% diff --git a/src/lib/db.server.js b/src/lib/db.server.js index 7cb3293..860d601 100644 --- a/src/lib/db.server.js +++ b/src/lib/db.server.js @@ -4,7 +4,6 @@ import ssh2 from 'ssh2'; // @ts-ignore export const sql = postgres( - // 'postgres://doki8902:ChangeItN8w@pgsql3.mif:5432/studentu', { host: env.PG_HOST, port: parseInt(env.PG_PORT), diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 0385342..dbaeac4 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -1 +1,11 @@ - \ No newline at end of file + + +
+ +
diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte deleted file mode 100644 index 65812f0..0000000 --- a/src/routes/(app)/+page.svelte +++ /dev/null @@ -1,2 +0,0 @@ -

Welcome to Echo

-

Currently suppored link: /posts

diff --git a/src/routes/(app)/posts/[name]/+page.server.js b/src/routes/(app)/posts/[name]/+page.server.js index 0ee47a7..1118fc5 100644 --- a/src/routes/(app)/posts/[name]/+page.server.js +++ b/src/routes/(app)/posts/[name]/+page.server.js @@ -15,8 +15,6 @@ export async function load({ params, locals }) { const comments = await getCommentsForPost(locals.sql, post_id); - console.log(comments); - return { post: post, comments: comments diff --git a/src/routes/(app)/posts/[name]/+page.svelte b/src/routes/(app)/posts/[name]/+page.svelte index 9d67e71..f20ced7 100644 --- a/src/routes/(app)/posts/[name]/+page.svelte +++ b/src/routes/(app)/posts/[name]/+page.svelte @@ -21,15 +21,32 @@ }) -

{post.name}

-{#if post.author} -{post.author.name} -{:else} -

Deleted

-{/if} -

{post.content}

-
- {#each commentTree as reply} - - {/each} + + +
+

{post.name}

+ + {#if post.author} + {post.author.name} + {:else} +

Deleted

+ {/if} + +

{post.content}

+ +
+ {#each commentTree as reply} + + {/each} +
diff --git a/src/routes/(app)/+page.server.js b/src/routes/+page.server.js similarity index 100% rename from src/routes/(app)/+page.server.js rename to src/routes/+page.server.js diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte new file mode 100644 index 0000000..e95cc31 --- /dev/null +++ b/src/routes/+page.svelte @@ -0,0 +1,27 @@ + + +
+

Welcome to Echo

+

Currently suppored link: /posts

+
diff --git a/static/css/base.scss b/static/css/base.scss new file mode 100644 index 0000000..efc760f --- /dev/null +++ b/static/css/base.scss @@ -0,0 +1,14 @@ +:root { + font-size: 16px; +} + +body { + background-color: #111; + + margin: 0; + position: relative; +} + +* { + color: white; +} diff --git a/static/css/font.scss b/static/css/font.scss new file mode 100644 index 0000000..9e21c27 --- /dev/null +++ b/static/css/font.scss @@ -0,0 +1,120 @@ +.taviraj-thin { + font-family: "Taviraj", serif; + font-weight: 100; + font-style: normal; +} + +.taviraj-extralight { + font-family: "Taviraj", serif; + font-weight: 200; + font-style: normal; +} + +.taviraj-light { + font-family: "Taviraj", serif; + font-weight: 300; + font-style: normal; +} + +.taviraj-regular { + font-family: "Taviraj", serif; + font-weight: 400; + font-style: normal; +} + +.taviraj-medium { + font-family: "Taviraj", serif; + font-weight: 500; + font-style: normal; +} + +.taviraj-semibold { + font-family: "Taviraj", serif; + font-weight: 600; + font-style: normal; +} + +.taviraj-bold { + font-family: "Taviraj", serif; + font-weight: 700; + font-style: normal; +} + +.taviraj-extrabold { + font-family: "Taviraj", serif; + font-weight: 800; + font-style: normal; +} + +.taviraj-black { + font-family: "Taviraj", serif; + font-weight: 900; + font-style: normal; +} + +.taviraj-thin-italic { + font-family: "Taviraj", serif; + font-weight: 100; + font-style: italic; +} + +.taviraj-extralight-italic { + font-family: "Taviraj", serif; + font-weight: 200; + font-style: italic; +} + +.taviraj-light-italic { + font-family: "Taviraj", serif; + font-weight: 300; + font-style: italic; +} + +.taviraj-regular-italic { + font-family: "Taviraj", serif; + font-weight: 400; + font-style: italic; +} + +.taviraj-medium-italic { + font-family: "Taviraj", serif; + font-weight: 500; + font-style: italic; +} + +.taviraj-semibold-italic { + font-family: "Taviraj", serif; + font-weight: 600; + font-style: italic; +} + +.taviraj-bold-italic { + font-family: "Taviraj", serif; + font-weight: 700; + font-style: italic; +} + +.taviraj-extrabold-italic { + font-family: "Taviraj", serif; + font-weight: 800; + font-style: italic; +} + +.taviraj-black-italic { + font-family: "Taviraj", serif; + font-weight: 900; + font-style: italic; +} + +// : Use a unique and descriptive class name +// : Use a value from 200 to 1000 + +.nunito-sans-300 { + font-family: "Nunito Sans", sans-serif; + font-optical-sizing: auto; + font-weight: 300; + font-style: normal; + font-variation-settings: + "wdth" 100, + "YTLC" 500; +}