diff --git a/README.md b/README.md index 4e83027..31e3edf 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,6 @@ -# sv +# atmo.watch -Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli). - -## Creating a project - -If you're seeing this, you've probably already done this step. Congrats! - -```sh -# create a new project -npx sv create my-app -``` - -To recreate this project with the same configuration: - -```sh -# recreate this project -pnpm dlx sv@0.17.0 create --template minimal --types ts --add prettier eslint vitest="usages:unit,component" playwright tailwindcss="plugins:typography,forms" --install pnpm 06-atmo-watch -``` - -## Developing - -Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: - -```sh -npm run dev - -# or start the server and open the app in a new browser tab -npm run dev -- --open -``` +review movies and tv shows with your atmosphere account, using popfeed.social's lexicons. ## API Worker diff --git a/src/lib/components/AccountMenuItem.svelte b/src/lib/components/AccountMenuItem.svelte index bee6805..574c678 100644 --- a/src/lib/components/AccountMenuItem.svelte +++ b/src/lib/components/AccountMenuItem.svelte @@ -3,9 +3,20 @@ import type { Pathname } from '$app/types'; import { loginDialog } from '$lib/login.svelte'; import { UserRound } from '@lucide/svelte'; + import Avatar from './Avatar.svelte'; import MenuItem from './MenuItem.svelte'; - let { did, onLoginOpen }: { did: string | null; onLoginOpen?: () => void } = $props(); + let { + did, + avatarUrl, + variant = 'sidebar', + onLoginOpen + }: { + did: string | null; + avatarUrl?: string; + variant?: 'sidebar' | 'bottom'; + onLoginOpen?: () => void; + } = $props(); let profileHref: Pathname | undefined = $derived( did ? (`/profile/${did}` as Pathname) : undefined ); @@ -25,7 +36,16 @@ tooltip={did ? 'Profile' : 'Log in'} {active} onclick={openLogin} - class="md:mt-auto" + {variant} + class={variant === 'sidebar' ? (did ? 'p-1.5 md:mt-auto md:p-1.5' : 'md:mt-auto') : undefined} > -