Skip to content

Commit

Permalink
Merge branch 'lw/logo-on-login' #1904 into #1905
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Apr 26, 2024
2 parents 28618de + 84c6a0a commit d360fda
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .changelog/1904.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add logo to login form
17 changes: 15 additions & 2 deletions src/app/components/Persist/LoginModalLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import { Box } from 'grommet/es6/components/Box'
import { ResponsiveLayer } from '../ResponsiveLayer'
import React from 'react'
import React, { useContext } from 'react'
import { Header } from 'app/components/Header'
import { Navigation } from '../Sidebar'
import walletBlueLogotype from '../../../../public/Rose Wallet Logo Blue cropped.svg'
import walletWhiteLogotype from '../../../../public/Rose Wallet Logo White cropped.svg'
import { ThemeContext } from 'styled-components'

export function LoginModalLayout(props: {
title: string
children: React.ReactNode
onClickOutside?: () => void
onEsc?: () => void
}) {
const { dark } = useContext<any>(ThemeContext)

return (
<Box direction="row-responsive" background="background-back" fill style={{ minHeight: '100dvh' }}>
<Navigation />
Expand All @@ -20,7 +25,15 @@ export function LoginModalLayout(props: {
onEsc={props.onEsc}
>
<Box pad="medium">
<Header level={2} textAlign="center" margin={{ top: 'medium' }}>
<Box align="center" margin={{ vertical: 'large' }}>
<img
alt="ROSE Wallet logo"
src={dark ? walletWhiteLogotype : walletBlueLogotype}
style={{ height: '65px' }}
/>
</Box>

<Header level={2} textAlign="center">
{props.title}
</Header>

Expand Down

0 comments on commit d360fda

Please sign in to comment.