mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-11 02:46:25 +00:00
Merge pull request #30 from nimbus-gui/rd.landing-page-responsive
Landing page responsive
This commit is contained in:
commit
1113079e27
@ -26,3 +26,15 @@
|
||||
color: #0d1625;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
.quick-start-bar {
|
||||
top: 0;
|
||||
width: 85%;
|
||||
margin: 0 20px;
|
||||
}
|
||||
|
||||
.quick-start-bar ul li {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
import './QuickStartBar.css'
|
||||
import styles from './QuickStartBar.module.css'
|
||||
|
||||
const QuickStartBar = () => {
|
||||
return (
|
||||
<nav className="quick-start-bar">
|
||||
<nav className={styles['quick-start-bar']}>
|
||||
<span>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
|
@ -1,3 +0,0 @@
|
||||
.landing-page {
|
||||
height: 100%;
|
||||
}
|
13
src/pages/LandingPage/LandingPage.module.css
Normal file
13
src/pages/LandingPage/LandingPage.module.css
Normal file
@ -0,0 +1,13 @@
|
||||
.landing-page {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.landing-texts {
|
||||
margin: 30vh 0 4vh;
|
||||
}
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
.landing-texts {
|
||||
margin-top: 20vh;
|
||||
}
|
||||
}
|
@ -1,27 +1,28 @@
|
||||
import './LandingPage.css'
|
||||
import { useNavigate } from 'react-router'
|
||||
import { XStack, YStack } from 'tamagui'
|
||||
import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow'
|
||||
import NimbusLogo from '../../components/Logos/NimbusLogo'
|
||||
import { NodeIcon } from '@status-im/icons'
|
||||
import { Button as StatusButton, Text } from '@status-im/components'
|
||||
|
||||
import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow'
|
||||
import QuickStartBar from '../../components/General/QuickStartBar/QuickStartBar'
|
||||
import { useNavigate } from 'react-router'
|
||||
import NimbusLogo from '../../components/Logos/NimbusLogo'
|
||||
import styles from './LandingPage.module.css'
|
||||
|
||||
const LandingPage = () => {
|
||||
const navigate = useNavigate()
|
||||
|
||||
const getStartedHanlder = () => {
|
||||
const onGetStartedHandler = () => {
|
||||
navigate('/pair-device')
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageWrapperShadow rightImageSrc="./background-images/landing-page-bg.png" imgHeight="150%">
|
||||
<YStack className="landing-page">
|
||||
<YStack className={styles['landing-page']}>
|
||||
<XStack pt={'70px'}>
|
||||
<NimbusLogo />
|
||||
</XStack>
|
||||
<YStack style={{ width: '100%', margin: '30vh 0 4vh' }} space={'16px'}>
|
||||
<YStack className={styles['landing-texts']} space={'16px'}>
|
||||
<Text size={27} weight={'semibold'}>
|
||||
Light and performant clients, for all Ethereum validators.
|
||||
</Text>
|
||||
@ -30,9 +31,8 @@ const LandingPage = () => {
|
||||
you wish to run in a completely trustless and decentralized manner.
|
||||
</Text>
|
||||
</YStack>
|
||||
|
||||
<XStack>
|
||||
<StatusButton icon={<NodeIcon size={20} />} onPress={getStartedHanlder}>
|
||||
<StatusButton icon={<NodeIcon size={20} />} onPress={onGetStartedHandler}>
|
||||
Get Started
|
||||
</StatusButton>
|
||||
</XStack>
|
||||
|
Loading…
x
Reference in New Issue
Block a user