From 579f16fc51c6a8b5ff34b1afee8c2518b05e22d3 Mon Sep 17 00:00:00 2001
From: Ilion Beyst <ilion.beyst@gmail.com>
Date: Sat, 19 Mar 2022 21:33:52 +0100
Subject: create common styles for account forms

---
 web/pw-server/src/routes/__layout.svelte | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

(limited to 'web/pw-server/src/routes/__layout.svelte')

diff --git a/web/pw-server/src/routes/__layout.svelte b/web/pw-server/src/routes/__layout.svelte
index 250cdef..c22591e 100644
--- a/web/pw-server/src/routes/__layout.svelte
+++ b/web/pw-server/src/routes/__layout.svelte
@@ -1,4 +1,6 @@
 <script lang="ts">
+  import NavbarUserSection from "$lib/components/navbar/NavbarUserSection.svelte";
+
   import "./style.css";
 </script>
 
@@ -7,16 +9,13 @@
     <div class="navbar-main">
       <a href="/">PlanetWars</a>
     </div>
-    <div class="navbar-user">
-      <a class="navbar-href" href="login">Sign in</a>
-      <a class="navbar-href" href="register">Sign up</a>
-    </div>
+    <NavbarUserSection />
   </div>
   <slot />
 </div>
 
 <style lang="scss">
-  @import "../lib/variables.scss";
+  @import "src/styles/variables.scss";
 
   .outer-container {
     width: 100vw;
@@ -35,14 +34,6 @@
     padding: 0 15px;
   }
 
-  .navbar-user a {
-    font-size: 18px;
-    color: #eee;
-    font-family: Helvetica, sans-serif;
-    padding: 4px 8px;
-    text-decoration: none;
-  }
-
   .navbar-main {
     margin: auto 0;
   }
@@ -52,8 +43,4 @@
     color: #eee;
     text-decoration: none;
   }
-
-  .navbar-user {
-    margin: auto 0;
-  }
 </style>
-- 
cgit v1.2.3

