From c1bc5993a694f6fd047a3881351827058042483b Mon Sep 17 00:00:00 2001
From: Ruben Beltran del Rio <ruben@unlimited.pizza>
Date: Sat, 13 Mar 2021 15:28:29 +0100
Subject: Use routify and GraphQL server

---
 src/pages/_layout.svelte | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 src/pages/_layout.svelte

(limited to 'src/pages/_layout.svelte')

diff --git a/src/pages/_layout.svelte b/src/pages/_layout.svelte
new file mode 100644
index 0000000..80cc29e
--- /dev/null
+++ b/src/pages/_layout.svelte
@@ -0,0 +1,37 @@
+<script>
+  import '$config/i18n';
+  import { isLoading } from 'svelte-i18n';
+  import ForumList from '$components/forum_list/forum_list.svelte';
+  import Header from '$components/header/header.svelte';
+  import Footer from '$components/footer/footer.svelte';
+</script>
+
+{#if $isLoading}
+  <h1>Loading.</h1>
+  <p>Please wait.</p>
+{:else}
+  <Header />
+  <main>
+    <slot></slot>
+  </main>
+  <ForumList />
+  <Footer />
+{/if}
+
+<style>
+  main {
+    grid-column: col-start 2 / span 11;
+  }
+
+  :global(#forum) {
+    display: grid;
+    font-family : 'ヒラギノ明朝 ProN' , 'Hiragino Mincho ProN' , '游明朝','游明朝体',YuMincho,'Yu Mincho' , 'ＭＳ 明朝' , 'MS Mincho' , HiraMinProN-W3 , 'TakaoEx明朝' , TakaoExMincho , 'MotoyaLCedar' , 'Droid Sans Japanese' , serif;
+    grid-template-columns: repeat(12, [col-start] 1fr);
+    grid-gap: 20px;
+    grid-auto-rows: minmax(24px, auto);
+  }
+
+  :global(body) {
+    background-color: whitesmoke;
+  }
+</style>
-- 
cgit 

