Merge pull request #30 from nimbus-gui/rd.landing-page-responsive

Landing page responsive
This commit is contained in:
Radoslav Dimchev 2023-12-15 11:43:32 +02:00 committed by GitHub
commit 1113079e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 14 deletions

View File

@ -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;
}
}

View File

@ -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"

View File

@ -1,3 +0,0 @@
.landing-page {
height: 100%;
}

View File

@ -0,0 +1,13 @@
.landing-page {
height: 100%;
}
.landing-texts {
margin: 30vh 0 4vh;
}
@media (max-width: 1000px) {
.landing-texts {
margin-top: 20vh;
}
}

View File

@ -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>