Skip to content

Commit

Permalink
Web app navigation (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer authored Apr 1, 2024
1 parent 7957ca7 commit 9ccc46b
Show file tree
Hide file tree
Showing 13 changed files with 1,961 additions and 64 deletions.
1,967 changes: 1,908 additions & 59 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@
"build": "node scripts/buildNumber.cjs release false && tauri build",
"build:alpha": "node scripts/buildNumber.cjs alpha false && tauri build",
"build:bundle": "node scripts/build.js",
"build:website": "node scripts/buildNumber.cjs alpha false && npm run build -w website",
"setup": "node scripts/buildNumber.cjs alpha false && node scripts/build.js",
"rename": "node scripts/rename.js",
"check": "svelte-check && tsc --noEmit && eslint .",
"tauri": "tauri"
},
"workspaces": [
"website"
],
"devDependencies": {
"@baileyherbert/tinro": "^1.0.0",
"@rgossiaux/svelte-headlessui": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"type": "module",
"dependencies": {
"@tauri-apps/api": "^1.5.3",
"lucide-svelte": "^0.364.0",
"otpauth": "^9.2.2",
"ua-parser-js": "^1.0.35"
}
Expand Down
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions website/src/components/navigation.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<script lang="ts">
import { FileInput, KeyRound, Settings } from "lucide-svelte"
</script>

<div
class="fixed bottom-0 left-1/2 z-50 h-16 w-full max-w-full -translate-x-1/2 rounded-none border border-gray-600 bg-gray-700 duration-200 ease-in-out md:bottom-4 md:max-w-lg md:rounded-full"
>
<div class="no-scrollbar mx-auto flex h-full max-w-lg flex-1 overflow-x-auto">
<a
aria-label="Codes"
href="/codes"
class="group inline-flex flex-shrink-0 flex-grow flex-col items-center justify-center sm:rounded-s-full px-5 text-gray-200 duration-200 ease-in-out hover:bg-gray-800 hover:text-white rounded-none"
>
<KeyRound />
</a>
<a
aria-label="Import"
href="/import"
class="group inline-flex flex-shrink-0 flex-grow flex-col items-center justify-center px-5 text-gray-200 duration-200 ease-in-out hover:bg-gray-800 hover:text-white"
>
<FileInput />
</a>

<a
aria-label="Settings"
href="/settings"
class="group inline-flex flex-shrink-0 flex-grow flex-col items-center justify-center sm:rounded-e-full px-5 text-gray-200 duration-200 ease-in-out hover:bg-gray-800 hover:text-white rounded-none"
>
<Settings />
</a>
</div>
</div>
6 changes: 6 additions & 0 deletions website/src/routes/(app)/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script lang="ts">
import Navigation from "../../components/navigation.svelte"
</script>

<slot />
<Navigation />
File renamed without changes.
1 change: 1 addition & 0 deletions website/src/routes/(app)/import/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>Import</h1>
1 change: 1 addition & 0 deletions website/src/routes/(app)/settings/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>Settings</h1>
8 changes: 8 additions & 0 deletions website/src/routes/(web)/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script lang="ts">
import Header from "../../components/header.svelte"
import Footer from "../../components/footer.svelte"
</script>

<Header />
<slot />
<Footer />
File renamed without changes.
4 changes: 0 additions & 4 deletions website/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<script>
import "../styles/index.css"
import Header from "./header.svelte"
import Footer from "./footer.svelte"
</script>

<Header />
<slot />
<Footer />

0 comments on commit 9ccc46b

Please sign in to comment.