Преглед изворни кода

✨feat: add a link to docs

Naz пре 1 месец
родитељ
комит
9aaaec3e9d
1 измењених фајлова са 15 додато и 10 уклоњено
  1. 15 10
      src/lib/share/Header.svelte

+ 15 - 10
src/lib/share/Header.svelte

@@ -7,16 +7,21 @@
   import Button from "$lib/components/ui/button/button.svelte";
 </script>
 
-<header
-  class="fixed top-0 flex justify-between p-3 w-full bg-background border-b"
->
-  <button onclick={() => goto("/#")}>
-    <h1 class="text-xl">
-      <i class="fa-solid fa-flask"></i> RhazesEMR
-    </h1>
-  </button>
-
-  <div>
+<header class="fixed top-0 flex justify-between items-center p-3 w-full bg-background border-b">
+  <div class="flex items-center gap-4">
+    <button on:click={() => goto("/#")}>
+      <h1 class="text-xl">
+        <i class="fa-solid fa-flask"></i> RhazesEMR
+      </h1>
+    </button>
+    <button on:click={() => window.location.href = "https://docs.rhazesemr.info"}>
+      <h1 class="text-lg">
+        Docs
+      </h1>
+    </button>
+  </div>
+  
+  <div class="flex items-center gap-2">
     <a href="https://github.com/RhazesEMR">
       <Button variant="outline" size="icon">
         <Github />