mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-22 09:19:28 +00:00
feat(nimbus-logo): final style and navigation
This commit is contained in:
parent
2f9ec43f95
commit
71205098bd
@ -1,4 +1,8 @@
|
|||||||
|
import { useNavigate } from 'react-router-dom'
|
||||||
|
|
||||||
const NimbusText = () => {
|
const NimbusText = () => {
|
||||||
|
const navigate = useNavigate()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
width="80"
|
width="80"
|
||||||
@ -6,6 +10,8 @@ const NimbusText = () => {
|
|||||||
viewBox="0 0 80 17"
|
viewBox="0 0 80 17"
|
||||||
fill="none"
|
fill="none"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
style={{ cursor: 'pointer', marginLeft: '1px' }}
|
||||||
|
onClick={() => navigate('/')}
|
||||||
>
|
>
|
||||||
<g id="Nimbus">
|
<g id="Nimbus">
|
||||||
<path
|
<path
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { Text } from '@status-im/components'
|
import { Text } from '@status-im/components'
|
||||||
import { XStack, YStack } from 'tamagui'
|
import { XStack, YStack } from 'tamagui'
|
||||||
import { Link } from 'react-router-dom'
|
|
||||||
|
|
||||||
import NimbusLogoMark from './NimbusLogoMark'
|
import NimbusLogoMark from './NimbusLogoMark'
|
||||||
import NimbusText from '../General/NimbusText'
|
import NimbusText from '../General/NimbusText'
|
||||||
@ -15,12 +14,10 @@ const NimbusLogo = ({ subtitle }: NimbusLogoProps) => {
|
|||||||
<XStack space={'$3'} className={subtitle ? '' : 'nimbus-logo'}>
|
<XStack space={'$3'} className={subtitle ? '' : 'nimbus-logo'}>
|
||||||
<NimbusLogoMark />
|
<NimbusLogoMark />
|
||||||
<YStack style={{ paddingTop: '2px' }}>
|
<YStack style={{ paddingTop: '2px' }}>
|
||||||
<Link to="/" style={{ textDecoration: 'none', color: 'inherit' }}>
|
<XStack space={'$2'} alignItems="flex-end">
|
||||||
<XStack space={'$3'}>
|
<NimbusText />
|
||||||
<NimbusText />
|
{!subtitle && <BetaTag />}
|
||||||
{!subtitle && <BetaTag />}
|
</XStack>
|
||||||
</XStack>
|
|
||||||
</Link>
|
|
||||||
<Text size={19} color="#647084">
|
<Text size={19} color="#647084">
|
||||||
{subtitle}
|
{subtitle}
|
||||||
</Text>
|
</Text>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user