mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
* fix: update commitizen version * feat: add WASM build tags to db actions * feat: Update all actions to follow `AddAsset` for error handling * feat: remove database dependency in dwn and motr commands * feat: add basic info form to registration view * feat: implement basic browser navigation component * refactor: move database related files to middleware * fix: remove unused test command * fix: update source directory for buf-publish workflow * feat: embed dwn config data * feat: add Sync RPC to query service * refactor: rename package to for better organization * feat: add new javascript exception handling for server requests * refactor: move dwn.wasm to embed directory * refactor: move server files to a new directory * refactor: move session related code to client package * refactor: Update dwn.wasm build path * refactor: move dwn wasm build to vfs * feat: introduce config loading middleware * feat: introduce DWN config and address JSON * refactor: move dwn wasm build output to embed directory * feat: introduce config and IndexedDB model * refactor: move DWN config file generation to vfs * refactor: move config package to * feat: add Sonr.ID IPFS gateway proxy * feat: add SWT data structure * feat: update index.html to use Sonr styles and scripts * feat(dwn): remove index.html server endpoint * feat: add Navigator API for web credential management
55 lines
1.3 KiB
Templ
55 lines
1.3 KiB
Templ
package blocks
|
|
|
|
templ Layout(title string) {
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
@defaultStyles()
|
|
<title>{ title }</title>
|
|
</head>
|
|
<body class="flex items-center justify-center h-full bg-neutral-50 lg:p-24 md:16 p-4">
|
|
<main class="flex-row items-center justify-center mx-auto w-fit max-w-screen-sm gap-y-3">
|
|
{ children... }
|
|
</main>
|
|
</body>
|
|
</html>
|
|
}
|
|
|
|
templ Spacer() {
|
|
<br/>
|
|
}
|
|
|
|
templ ServiceWorker(path string) {
|
|
<script>
|
|
navigator.serviceWorker.register({ path })
|
|
</script>
|
|
}
|
|
|
|
templ defaultStyles() {
|
|
<meta charset="UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<script src="https://cdn.sonr.io/js/htmx.min.js"></script>
|
|
<link href="https://cdn.sonr.io/stylesheet.css" rel="stylesheet"/>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script src="https://unpkg.com/alpinejs" defer></script>
|
|
<style>[x-cloak]{display:none}</style>
|
|
<style>font-family: R-Flex, system-ui, Inter, Helvetica, Arial, sans-serif;</style>
|
|
}
|
|
|
|
templ Rows() {
|
|
<div class="flex flex-row w-full gap-2 md:gap-4">
|
|
{ children... }
|
|
</div>
|
|
}
|
|
|
|
templ Columns() {
|
|
<div class="flex flex-col h-full w-full gap-3 md:gap-6 md:flex-row">
|
|
{ children... }
|
|
</div>
|
|
}
|
|
|
|
css main() {
|
|
font-family: R-Flex, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
}
|