mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Move orgs to home, and search to header
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
+11
-12
@@ -1,23 +1,22 @@
|
||||
<script lang="ts">
|
||||
import { navigate } from 'svelte-routing';
|
||||
import type { Config } from '@app/config';
|
||||
import Orgs from '@app/base/orgs/Index.svelte';
|
||||
|
||||
let input = "";
|
||||
const search = () => {
|
||||
navigate(`/resolver/query?${
|
||||
new URLSearchParams({ q: input })
|
||||
}`);
|
||||
};
|
||||
export let config: Config;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
main {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<svelte:head>
|
||||
<title>Radicle – Home</title>
|
||||
</svelte:head>
|
||||
|
||||
<main class="centered">
|
||||
<main>
|
||||
<div>
|
||||
<input size="40" type="text" bind:value={input} placeholder="Enter a name, address or domain..." />
|
||||
<button class="primary" on:click={search} disabled={!input}>
|
||||
Search
|
||||
</button>
|
||||
<Orgs {config} />
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user