remove home nav item

This commit is contained in:
Jon Staab
2024-10-10 09:27:26 -07:00
parent 2034eb8c9c
commit 89c4a2014a
3 changed files with 10 additions and 12 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
<div class="relative hidden w-14 flex-shrink-0 bg-base-100 pt-4 sm:block"> <div class="relative hidden w-14 flex-shrink-0 bg-base-100 pt-4 sm:block">
<div class="flex h-full flex-col justify-between"> <div class="flex h-full flex-col justify-between">
<div> <div>
<PrimaryNavItem href="/home" class="tooltip-right"> <PrimaryNavItem href="/home/people" class="tooltip-right">
<Avatar src={$userProfile?.picture} class="!h-10 !w-10" /> <Avatar src={$userProfile?.picture} class="!h-10 !w-10" />
</PrimaryNavItem> </PrimaryNavItem>
{#each getMembershipUrls($userMembership) as url (url)} {#each getMembershipUrls($userMembership) as url (url)}
+4 -9
View File
@@ -42,26 +42,21 @@
<SecondaryNav> <SecondaryNav>
<SecondaryNavSection> <SecondaryNavSection>
<div in:fly> <div in:fly>
<SecondaryNavItem href="/home">
<Icon icon="home-smile" /> Home
</SecondaryNavItem>
</div>
<div in:fly={{delay: 50}}>
<SecondaryNavItem href="/home/people"> <SecondaryNavItem href="/home/people">
<Icon icon="user-heart" /> People <Icon icon="user-heart" /> People
</SecondaryNavItem> </SecondaryNavItem>
</div> </div>
<div in:fly={{delay: 100}}> <div in:fly={{delay: 50}}>
<SecondaryNavItem href="/home/network"> <SecondaryNavItem href="/home/network">
<Icon icon="share-circle" /> Network <Icon icon="share-circle" /> Network
</SecondaryNavItem> </SecondaryNavItem>
</div> </div>
<div in:fly={{delay: 150}}> <div in:fly={{delay: 100}}>
<SecondaryNavItem href="/home/notes"> <SecondaryNavItem href="/home/notes">
<Icon icon="notes-minimalistic" /> Notes <Icon icon="notes-minimalistic" /> Notes
</SecondaryNavItem> </SecondaryNavItem>
</div> </div>
<div in:fly={{delay: 200}}> <div in:fly={{delay: 150}}>
<SecondaryNavHeader> <SecondaryNavHeader>
Chats Chats
<Button on:click={startChat}> <Button on:click={startChat}>
@@ -72,7 +67,7 @@
</SecondaryNavSection> </SecondaryNavSection>
<label <label
class="input input-sm input-bordered mx-6 -mt-4 mb-2 flex items-center gap-2" class="input input-sm input-bordered mx-6 -mt-4 mb-2 flex items-center gap-2"
in:fly={{delay: 250}}> in:fly={{delay: 200}}>
<Icon icon="magnifer" /> <Icon icon="magnifer" />
<input bind:value={term} class="grow" type="text" /> <input bind:value={term} class="grow" type="text" />
</label> </label>
+5 -2
View File
@@ -5,6 +5,7 @@
import {shuffle} from "@welshman/lib" import {shuffle} from "@welshman/lib"
import {getPubkeyTagValues, getListTags} from "@welshman/util" import {getPubkeyTagValues, getListTags} from "@welshman/util"
import {profileSearch, userFollows} from "@welshman/app" import {profileSearch, userFollows} from "@welshman/app"
import PageHeader from "@lib/components/PageHeader.svelte"
import PeopleItem from "@app/components/PeopleItem.svelte" import PeopleItem from "@app/components/PeopleItem.svelte"
const defaultPubkeys = shuffle(getPubkeyTagValues(getListTags($userFollows))) const defaultPubkeys = shuffle(getPubkeyTagValues(getListTags($userFollows)))
@@ -28,8 +29,10 @@
</script> </script>
<div class="content column gap-4" bind:this={element}> <div class="content column gap-4" bind:this={element}>
<h1 class="superheading mt-20 hidden sm:block">People</h1> <PageHeader>
<p class="hidden text-center sm:block">Get the latest from people in your network</p> <div slot="title">People</div>
<div slot="info">Get the latest from people in your network</div>
</PageHeader>
<label class="input input-bordered flex w-full items-center gap-2"> <label class="input input-bordered flex w-full items-center gap-2">
<Icon icon="magnifer" /> <Icon icon="magnifer" />
<input bind:value={term} class="grow" type="text" placeholder="Search for people..." /> <input bind:value={term} class="grow" type="text" placeholder="Search for people..." />