mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-13 11:56:26 +00:00
cleanup: put component in correct directories
This commit is contained in:
parent
a7449cc07b
commit
be925b0164
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 201 B |
@ -1,10 +1,10 @@
|
|||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import BreadcrumbBar from '../BreadcrumbBar/BreadcrumbBar'
|
import BreadcrumbBar from './BreadcrumbBar'
|
||||||
import { Button as StatusButton, Tag, Text, Avatar, Checkbox } from '@status-im/components'
|
import { Button as StatusButton, Tag, Text, Avatar, Checkbox } from '@status-im/components'
|
||||||
import { Label, Separator, XStack, YStack } from 'tamagui'
|
import { Label, Separator, XStack, YStack } from 'tamagui'
|
||||||
import LayoutComponent from '../LayoutComponent/LayoutComponent'
|
import LayoutComponent from './LayoutComponent'
|
||||||
import Logo from '../Logo'
|
import NimbusLogo from './NimbusLogo'
|
||||||
import Titles from '../Titles'
|
import Titles from './Titles'
|
||||||
import NodeIcon from './NodeIcon'
|
import NodeIcon from './NodeIcon'
|
||||||
import ConnectIcon from './ConnectIcon'
|
import ConnectIcon from './ConnectIcon'
|
||||||
import PairIcon from './PairIcon'
|
import PairIcon from './PairIcon'
|
||||||
@ -21,7 +21,7 @@ function Content() {
|
|||||||
return (
|
return (
|
||||||
<div className="container-inner connection-page">
|
<div className="container-inner connection-page">
|
||||||
<header>
|
<header>
|
||||||
<Logo />
|
<NimbusLogo />
|
||||||
<XStack space={'$2'} alignItems="center">
|
<XStack space={'$2'} alignItems="center">
|
||||||
<Tag icon={ConnectIcon} label="Connect" size={32} selected />
|
<Tag icon={ConnectIcon} label="Connect" size={32} selected />
|
||||||
<Tag icon={PairIcon} label="Pair" size={32} />
|
<Tag icon={PairIcon} label="Pair" size={32} />
|
@ -1,7 +1,8 @@
|
|||||||
import StandartLineChart from './StandardLineChart'
|
import StandartLineChart from './StandardLineChart'
|
||||||
import ShadowBox from './ShadowBox'
|
// import ShadowBox from './ShadowBox'
|
||||||
import IconText from './IconText'
|
import IconText from './IconText'
|
||||||
import { Paragraph, Separator, XStack, YStack } from 'tamagui'
|
import { Paragraph, Separator, XStack, YStack } from 'tamagui'
|
||||||
|
import { Shadow as ShadowBox } from '@status-im/components'
|
||||||
|
|
||||||
type DataPoint = {
|
type DataPoint = {
|
||||||
x: number
|
x: number
|
||||||
@ -43,7 +44,7 @@ const DeviceNetworkHealth = ({ uploadRate, downloadRate }: DeviceNetworkHealthPr
|
|||||||
const message = currentLoad < 80 ? 'Good' : 'Poor'
|
const message = currentLoad < 80 ? 'Good' : 'Poor'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ShadowBox boxStyle={{ width: '284px', height: '136px' }}>
|
<ShadowBox style={{ width: '284px', height: '136px' }}>
|
||||||
<YStack>
|
<YStack>
|
||||||
<XStack
|
<XStack
|
||||||
justifyContent="space-between"
|
justifyContent="space-between"
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import LayoutComponent from './LayoutComponent'
|
import LayoutComponent from './LayoutComponent'
|
||||||
import './LandingPage.css'
|
import './LandingPage.css'
|
||||||
import QuickStartBar from './QuickStartBar'
|
import QuickStartBar from './QuickStartBar'
|
||||||
import DeviceNetworkHealth from './DeviceNetworkHealth'
|
|
||||||
|
|
||||||
function LandingPage() {
|
function LandingPage() {
|
||||||
return (
|
return (
|
||||||
@ -96,10 +95,6 @@ function Content() {
|
|||||||
Discover Nodes
|
Discover Nodes
|
||||||
</button>
|
</button>
|
||||||
</article>
|
</article>
|
||||||
<DeviceNetworkHealth
|
|
||||||
uploadRate={[6, 63, 123, 59, 12, 6, 63, 123, 59, 12]}
|
|
||||||
downloadRate={[123, 56, 90, 10, 50, 123, 56, 90, 130, 40]}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { XStack, YStack } from 'tamagui'
|
import { XStack, YStack } from 'tamagui'
|
||||||
import IconButton from './IconButton'
|
import { Button, Text } from '@status-im/components'
|
||||||
import { Text } from '@status-im/components'
|
import Icon from './Icon'
|
||||||
|
|
||||||
type TitlesProps = {
|
type TitlesProps = {
|
||||||
title: string
|
title: string
|
||||||
@ -16,18 +16,9 @@ const Titles = ({ title, subtitle, button }: TitlesProps) => {
|
|||||||
{title}
|
{title}
|
||||||
</Text>
|
</Text>
|
||||||
{button ? (
|
{button ? (
|
||||||
<IconButton
|
<Button variant="outline" size={32} icon={<Icon src={'/icons/reveal.png'} />}>
|
||||||
style={{
|
|
||||||
backgroundColor: 'transparent',
|
|
||||||
border: '1px solid #DCE0E5',
|
|
||||||
color: '#09101C',
|
|
||||||
}}
|
|
||||||
size={'$3'}
|
|
||||||
icon={'/icons/reveal.png'}
|
|
||||||
fontSize={'$5'}
|
|
||||||
>
|
|
||||||
Advanced Settings
|
Advanced Settings
|
||||||
</IconButton>
|
</Button>
|
||||||
) : null}
|
) : null}
|
||||||
</XStack>
|
</XStack>
|
||||||
<Text size={15} weight="regular">
|
<Text size={15} weight="regular">
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
}
|
}
|
||||||
.breadcrumb-bar-li::after {
|
.breadcrumb-bar-li::after {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
content: url("./chevron.svg");
|
content: url("../assets/chevron.svg");
|
||||||
color: #09101C;
|
color: #09101C;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -2px;
|
top: -2px;
|
Loading…
x
Reference in New Issue
Block a user