From 98c25278d6343388bb0c6a8718787c7da174ca9c Mon Sep 17 00:00:00 2001 From: CoolElectronics Date: Thu, 17 Aug 2023 14:11:38 -0400 Subject: [PATCH] cssify landing page --- frontend/package.json | 1 + frontend/src/App.svelte | 211 +++++++++++++++++++++++++--------------- frontend/src/entry.ts | 2 + frontend/src/index.css | 5 +- pnpm-lock.yaml | 7 ++ 5 files changed, 149 insertions(+), 77 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 31af16f..6cd3351 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -13,6 +13,7 @@ "author": "", "license": "ISC", "dependencies": { + "@fontsource/cabin": "^5.0.8", "@iconify-icons/bi": "^1.2.17", "@iconify-icons/ic": "^1.2.13", "@iconify-icons/maki": "^1.2.18", diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 23d7bd7..857aed7 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -20,7 +20,7 @@ import iconDiscord from "@iconify-icons/ic/outline-discord"; import iconGithub from "@iconify-icons/bi/github"; - import iconArrow from "@iconify-icons/maki/arrow"; + import Icon from "@iconify/svelte"; import type { Transport } from "protocol"; @@ -50,6 +50,8 @@ let showLogin = false; let chosenTracker: keyof typeof TrackerList | undefined; + let showTrackerList = false; + function onTransportOpen() { console.log("Transport opened"); @@ -180,14 +182,15 @@ {:else if !import.meta.env.VITE_ADRIFT_DEV} -
- - - -
-
-
- - - {#each Object.keys(TrackerList) as tracker} - - {tracker} - {/each} - - - {#if chosenTracker} - - - {/if} - - -

- TLS has not currently been implemented for the Adrift Swarm. Your - data will not be private, and you should not sign into any accounts - that you care much about -

-
- - -
- - - - - +
+ +
+
+
+ +
+

Surf the web, Adrift

+

+ A fast and modern decentralized proxy network +

+
+
+ +
+
+
+
+ +

Select a Tracker

+

Trackers allow you to connect to Adrift

+
+ + {#each Object.keys(TrackerList) as tracker} + + {tracker} + {/each} + +
+
+
+ {#if chosenTracker} + + + {/if} +
+ + +

+ TLS has not currently been implemented for the Adrift Swarm. Your + data will not be private, and you should not sign into any + accounts that you care much about +

+
+ - + +
+ + + + + +
+ + +
+
+ +
+
+ +
+ © 2023 Mercury Workshop + +
+ discord + github +
+
- - + +
{:else} diff --git a/frontend/src/entry.ts b/frontend/src/entry.ts index 9e604f1..1f29919 100644 --- a/frontend/src/entry.ts +++ b/frontend/src/entry.ts @@ -1,5 +1,7 @@ import { registerRemoteListener } from "bare-client-custom"; import App from "./App.svelte"; +import "@fontsource/cabin"; + import "./index.css"; if (import.meta.env.VITE_ADRIFT_DEV) { console.log( diff --git a/frontend/src/index.css b/frontend/src/index.css index bd6213e..2864ebc 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -1,3 +1,6 @@ @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities; +*{ + font-family: "Cabin"; +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7244a7f..2f2d769 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -288,6 +288,9 @@ importers: frontend: dependencies: + '@fontsource/cabin': + specifier: ^5.0.8 + version: 5.0.8 '@iconify-icons/bi': specifier: ^1.2.17 version: 1.2.17 @@ -3186,6 +3189,10 @@ packages: resolution: {integrity: sha512-Dq5rYfEpdeel0bLVN+nfD1VWmzCkK+pJbSjIawGE+RY4+NIJqhbUDDQjvV0NUK84fMfwxvtFoCtEe70HfZjFcw==} dev: false + /@fontsource/cabin@5.0.8: + resolution: {integrity: sha512-dKUwEkLe8ix9h/gntEILkSFJTa5IDtHKerQl3QXSsMELKYCxELblHuh5itwDA/sJz3O1rJDNybheBsWt59MlCg==} + dev: false + /@google-cloud/firestore@6.7.0: resolution: {integrity: sha512-bkH2jb5KkQSUa+NAvpip9HQ+rpYhi77IaqHovWuN07adVmvNXX08gPpvPWEzoXYa/wDjEVI7LiAtCWkJJEYTNg==} engines: {node: '>=12.0.0'}