diff --git a/src/app/globals.css b/src/app/globals.css index 64e069f..116fdb7 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -19,11 +19,15 @@ } .bg-racha-fire { background: var(--hot-red-light) url("/racha-fire.png") bottom left; - background-size: cover; + background-size: 100% auto; + background-position: bottom; + background-repeat: no-repeat; } .bg-racha-fire\/50 { background: transparent url("/racha-fire-opacity-50.png") bottom left; - background-size: cover; + background-size: 100% auto; + background-position: bottom; + background-repeat: no-repeat; } .bg-hot-red, .hover\:bg-hot-red:hover { @@ -88,7 +92,7 @@ } .authenticator { - @apply bg-racha-fire w-full h-screen flex flex-col justify-center items-center; + @apply bg-racha-fire w-full min-h-screen flex flex-col justify-center items-center py-4; } @keyframes bgPosDrift { diff --git a/src/components/Authenticator.tsx b/src/components/Authenticator.tsx index 2ecd555..ba503dd 100644 --- a/src/components/Authenticator.tsx +++ b/src/components/Authenticator.tsx @@ -29,7 +29,7 @@ export function AuthenticationForm (): JSX.Element { -

+

By registering with storacha.network, you agree to the storacha.network Terms of Service.

diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx deleted file mode 100644 index 5524c9c..0000000 --- a/src/components/Layout.tsx +++ /dev/null @@ -1,90 +0,0 @@ -import { Logo } from '../brand' -import { Fragment, useState } from 'react' -import { Dialog, Transition } from '@headlessui/react' -import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline' - -const navLinks = [ - { name: 'Terms', href: '/terms' }, - { name: 'Docs', href: '/docs' }, - { name: 'Support', href: 'https://github.com/web3-storage/w3ui/issues' }, -] - -interface SidebarComponentProps { - sidebar?: JSX.Element | JSX.Element[] -} - -function Sidebar ({ sidebar =
}: SidebarComponentProps): JSX.Element { - return ( - - ) -} - -interface LayoutComponentProps extends SidebarComponentProps { - children: JSX.Element | JSX.Element[] -} - -export function DefaultLayout ({ sidebar =
, children }: LayoutComponentProps): JSX.Element { - const [sidebarOpen, setSidebarOpen] = useState(false) - - return ( -
- {/* dialog sidebar for narrow browsers */} - - setSidebarOpen(false)} as='div' className='relative z-50'> - - - - - {/* static sidebar for wide browsers */} -
- -
-
- {/* top nav bar for narrow browsers, mainly to have a place to put the hamburger */} -
- setSidebarOpen(true)} /> - -
-
- {children} -
-
-
- ) -} diff --git a/src/components/Loader.tsx b/src/components/Loader.tsx index c63826f..ce64d67 100644 --- a/src/components/Loader.tsx +++ b/src/components/Loader.tsx @@ -7,7 +7,7 @@ export default function DefaultLoader({ className = '' }: { className?: string } } export const TopLevelLoader = () => ( -
+
) diff --git a/src/components/PlanGate.tsx b/src/components/PlanGate.tsx index 3b95b69..a23f9d5 100644 --- a/src/components/PlanGate.tsx +++ b/src/components/PlanGate.tsx @@ -16,9 +16,9 @@ export function PlanGate ({ children }: { children: ReactNode }): ReactNode { if (!plan?.product) { return ( -
+
-
+

Welcome {accounts[0]?.toEmail()}!

@@ -30,9 +30,7 @@ export function PlanGate ({ children }: { children: ReactNode }): ReactNode { Pick a plan below and complete the Stripe signup flow to get started!

-
- -
+
) diff --git a/src/components/SidebarLayout.tsx b/src/components/SidebarLayout.tsx index 6a694d1..bdf57b7 100644 --- a/src/components/SidebarLayout.tsx +++ b/src/components/SidebarLayout.tsx @@ -36,7 +36,7 @@ function Sidebar ({ sidebar =
}: SidebarComponentProps): JSX.Element router.push(`/space/${s.did()}`) } return ( -