diff --git a/src/app.css b/src/app.css index 254c36aa6..491a59893 100644 --- a/src/app.css +++ b/src/app.css @@ -52,13 +52,20 @@ } .bg-alt, -.bg-alt .bg-alt .bg-alt { - @apply bg-base-100; +.bg-alt .bg-alt .bg-alt, +.hover\:bg-alt:hover, +.bg-alt .bg-alt .hover\:bg-alt:hover, +.bg-alt .bg-alt.hover\:bg-alt:hover { + @apply bg-base-100 transition-colors; } .bg-alt .bg-alt, -.bg-alt .bg-alt .bg-alt .bg-alt { - @apply bg-base-300; +.bg-alt .bg-alt .bg-alt .bg-alt, +.bg-alt .hover\:bg-alt:hover, +.bg-alt .bg-alt .bg-alt .hover\:bg-alt:hover, +.bg-alt.hover\:bg-alt:hover, +.bg-alt .bg-alt .bg-alt.hover\:bg-alt:hover { + @apply bg-base-300 transition-colors; } .card2 { @@ -78,7 +85,7 @@ } .content { - @apply m-auto w-full max-w-3xl p-12; + @apply m-auto w-full max-w-3xl p-4 sm:p-8 md:p-12; } .heading { diff --git a/src/app/components/InfoHandle.svelte b/src/app/components/InfoHandle.svelte index f554a6d23..2b3d154f4 100644 --- a/src/app/components/InfoHandle.svelte +++ b/src/app/components/InfoHandle.svelte @@ -1,12 +1,13 @@
Flotilla hosts spaces on the Nostr protocol import Link from "@lib/components/Link.svelte" import Button from "@lib/components/Button.svelte" + import ModalHeader from "@lib/components/ModalHeader.svelte"
Nostr is way to build social apps that talk to eachother. Users own their social identity instead of renting it from a tech company, and can bring it with diff --git a/src/app/components/InfoRelay.svelte b/src/app/components/InfoRelay.svelte index 45381df33..2ad7682f7 100644 --- a/src/app/components/InfoRelay.svelte +++ b/src/app/components/InfoRelay.svelte @@ -1,12 +1,13 @@
Flotilla hosts spaces on the Nostr protocol + import {goto} from '$app/navigation' + import Icon from '@lib/components/Icon.svelte' + import Link from '@lib/components/Link.svelte' + import Button from '@lib/components/Button.svelte' + import Divider from '@lib/components/Divider.svelte' + import CardButton from '@lib/components/CardButton.svelte' + import SpaceAvatar from "@app/components/SpaceAvatar.svelte" + import RelayName from "@app/components/RelayName.svelte" + import RelayDescription from "@app/components/RelayDescription.svelte" + import SpaceCreateExternal from "@app/components/SpaceCreateExternal.svelte" + import {userMembership, getMembershipUrls} from "@app/state" + import {makeSpacePath} from "@app/routes" + import {pushModal} from "@app/modal" + + const createSpace = () => pushModal(SpaceCreateExternal) + + const browseSpaces = () => goto("/discover") + + +
diff --git a/src/app/components/MenuSettings.svelte b/src/app/components/MenuSettings.svelte new file mode 100644 index 000000000..addd5384b --- /dev/null +++ b/src/app/components/MenuSettings.svelte @@ -0,0 +1,47 @@ + + + diff --git a/src/app/components/MenuSpaces.svelte b/src/app/components/MenuSpaces.svelte new file mode 100644 index 000000000..718290309 --- /dev/null +++ b/src/app/components/MenuSpaces.svelte @@ -0,0 +1,136 @@ + + + diff --git a/src/app/components/PrimaryNav.svelte b/src/app/components/PrimaryNav.svelte index d1313770d..1550e2ed9 100644 --- a/src/app/components/PrimaryNav.svelte +++ b/src/app/components/PrimaryNav.svelte @@ -6,11 +6,20 @@ import PrimaryNavItem from "@lib/components/PrimaryNavItem.svelte" import SpaceAdd from "@app/components/SpaceAdd.svelte" import SpaceAvatar from "@app/components/SpaceAvatar.svelte" + import MenuHome from "@app/components/MenuHome.svelte" + import MenuSpaces from "@app/components/MenuSpaces.svelte" + import MenuSettings from "@app/components/MenuSettings.svelte" import {userMembership, getMembershipUrls} from "@app/state" import {pushModal} from "@app/modal" import {makeSpacePath, getPrimaryNavItemIndex} from "@app/routes" const addSpace = () => pushModal(SpaceAdd) + + const showHomeMenu = () => pushModal(MenuHome) + + const showSpacesMenu = () => pushModal(MenuSpaces) + + const showSettingsMenu = () => pushModal(MenuSettings)