2
0

+page.svelte 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <script>
  2. import { Button } from "$lib/components/ui/button";
  3. import * as Card from "$lib/components/ui/card";
  4. import { toast } from "svelte-sonner";
  5. import { Download, Github } from "lucide-svelte";
  6. let win_release = {
  7. title: "Windows Installer",
  8. description: "RhazesEMR Desktop Client for Windows",
  9. msi: "",
  10. exe: "",
  11. };
  12. let mac_release = {
  13. title: "MacOS Installer",
  14. description: "RhazesEMR Desktop Client for MacOS",
  15. };
  16. let linux_release = {
  17. title: "Linux Installer",
  18. description: "RhazesEMR Desktop Client for Linux",
  19. deb: "",
  20. rpm: "",
  21. appimage: "",
  22. };
  23. let ios_release = {
  24. title: "iOS Installer",
  25. description: "RhazesEMR Mobile Client for iOS",
  26. };
  27. let android_release = {
  28. title: "Android Installer",
  29. description: "RhazesEMR Mobile Client for Android",
  30. apk: "",
  31. };
  32. let github_release = "https://github.com/RhazesEMR/rhazesemr-client/releases";
  33. </script>
  34. <main class="flex flex-grow flex-col items-center mt-64 md:mt-28">
  35. <div class="m-3 text-4xl flex items-center animate-bounce">
  36. <Download size={52} />
  37. <p class="px-2">Download</p>
  38. <Download size={52} />
  39. </div>
  40. <p class="text-lg text-center">Download the latest version of RhazesEMR</p>
  41. <div class="flex flex-wrap justify-center mt-5">
  42. <Card.Root class="w-[380px] m-2">
  43. <Card.Header>
  44. <Card.Title>{win_release.title}</Card.Title>
  45. <Card.Description>{win_release.description}</Card.Description>
  46. </Card.Header>
  47. <Card.Content class="grid gap-4">
  48. <div class="flex justify-center pb-4">
  49. <i class="animate-pulse fa-brands fa-windows text-9xl"></i>
  50. </div>
  51. <!-- <div class="flex flex-grow justify-center"> <Button class="w-1/2 mr-1" href={win_release.exe}> <Download /> EXE </Button> <Button class="w-1/2" href={win_release.msi}> <Download /> MSI </Button> </div> -->
  52. <button
  53. onclick={() =>
  54. toast.warning("Not available yet", {
  55. description: "this release is still in need for further testing",
  56. })}
  57. >
  58. <Button class="w-full" disabled>Coming soon...</Button>
  59. </button>
  60. </Card.Content>
  61. <Card.Footer>
  62. <Button class="w-full" variant="secondary" href={github_release}
  63. ><Github /> Github Release</Button
  64. >
  65. </Card.Footer>
  66. </Card.Root>
  67. <Card.Root class="w-[380px] m-2">
  68. <Card.Header>
  69. <Card.Title>{android_release.title}</Card.Title>
  70. <Card.Description>{android_release.description}</Card.Description>
  71. </Card.Header>
  72. <Card.Content class="grid gap-4">
  73. <div class="flex justify-center pt-4">
  74. <i class="animate-pulse fa-brands fa-android text-9xl"></i>
  75. </div>
  76. <!-- <Button class="w-full" href={android_release.apk}> <Download /> APK </Button> -->
  77. <button
  78. onclick={() =>
  79. toast.warning("Not available yet", {
  80. description: "this release is still in need for further testing",
  81. })}
  82. >
  83. <Button class="w-full" disabled>Coming soon...</Button>
  84. </button>
  85. </Card.Content>
  86. <Card.Footer>
  87. <Button class="w-full" variant="secondary" href={github_release}
  88. ><Github /> Github Release</Button
  89. >
  90. </Card.Footer>
  91. </Card.Root>
  92. <Card.Root class="w-[380px] m-2">
  93. <Card.Header>
  94. <Card.Title>{linux_release.title}</Card.Title>
  95. <Card.Description>{linux_release.description}</Card.Description>
  96. </Card.Header>
  97. <Card.Content class="grid gap-4">
  98. <div class="flex justify-center pt-2 pb-2">
  99. <i class="animate-pulse fa-brands fa-linux text-9xl"></i>
  100. </div>
  101. <!-- <div class="flex flex-grow justify-center"> <Button class="w-1/3 mr-1" href={linux_release.deb}> <Download /> DEB </Button> <Button class="w-1/3 mr-1" href={linux_release.rpm}> <Download /> RPM </Button> <Button class="w-1/3" href={linux_release.appimage}> <Download /> AppImage </Button> </div> -->
  102. <button
  103. onclick={() =>
  104. toast.warning("Not available yet", {
  105. description: "this release is still in need for further testing",
  106. })}
  107. >
  108. <Button class="w-full" disabled>Coming soon...</Button>
  109. </button>
  110. </Card.Content>
  111. <Card.Footer>
  112. <Button class="w-full" variant="secondary" href={github_release}
  113. ><Github /> Github Release</Button
  114. >
  115. </Card.Footer>
  116. </Card.Root>
  117. <Card.Root class="w-[380px] m-2">
  118. <Card.Header>
  119. <Card.Title>{mac_release.title}</Card.Title>
  120. <Card.Description>{mac_release.description}</Card.Description>
  121. </Card.Header>
  122. <Card.Content class="grid gap-4">
  123. <div class="flex justify-center pt-2 pb-2">
  124. <i class="animate-pulse fa-brands fa-apple text-9xl"></i>
  125. </div>
  126. <button
  127. onclick={() =>
  128. toast.warning("Not available yet", {
  129. description: "this release is still in need for further testing",
  130. })}
  131. >
  132. <Button class="w-full" disabled>Coming soon...</Button>
  133. </button>
  134. </Card.Content>
  135. <Card.Footer>
  136. <Button class="w-full" variant="secondary" href={github_release}
  137. ><Github /> Github Release</Button
  138. >
  139. </Card.Footer>
  140. </Card.Root>
  141. <Card.Root class="w-[380px] m-2">
  142. <Card.Header>
  143. <Card.Title>{ios_release.title}</Card.Title>
  144. <Card.Description>{ios_release.description}</Card.Description>
  145. </Card.Header>
  146. <Card.Content class="grid gap-4">
  147. <div class="flex justify-center pt-2 pb-2">
  148. <i class="animate-pulse fa-brands fa-apple text-9xl"></i>
  149. </div>
  150. <button
  151. onclick={() =>
  152. toast.warning("Not available yet", {
  153. description: "this release is still in need for further testing",
  154. })}
  155. >
  156. <Button class="w-full" disabled>Coming soon...</Button>
  157. </button>
  158. </Card.Content>
  159. <Card.Footer>
  160. <Button class="w-full" variant="secondary"
  161. ><Github /> Github Release</Button
  162. >
  163. </Card.Footer>
  164. </Card.Root>
  165. </div>
  166. </main>