feat: add background image in Shadow container
This commit is contained in:
parent
680b193d0f
commit
c2ba93ba4d
|
@ -1,16 +1,12 @@
|
||||||
import { ReactNode } from 'react'
|
import { ReactNode } from 'react'
|
||||||
import './layoutGradient.css'
|
import './layoutGradient.css'
|
||||||
|
|
||||||
type PageWrapperShadowProps = {
|
type PageWrapperGradientProps = {
|
||||||
children: ReactNode
|
children: ReactNode
|
||||||
}
|
}
|
||||||
|
|
||||||
const PageWrapperGradient = ({ children }: PageWrapperShadowProps) => {
|
const PageWrapperGradient = ({ children }: PageWrapperGradientProps) => {
|
||||||
return (
|
return <div className="layout gradient-wrapper">{children}</div>
|
||||||
<div className="layout" style={{ justifyContent: 'center' }}>
|
|
||||||
{children}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default PageWrapperGradient
|
export default PageWrapperGradient
|
||||||
|
|
|
@ -1,19 +1,17 @@
|
||||||
.layout {
|
.gradient-wrapper .image-container::after {
|
||||||
background-color: #fff;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout::after {
|
|
||||||
display: block;
|
display: block;
|
||||||
content: '';
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: -1%;
|
||||||
width: 100%;
|
width: 50%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: linear-gradient(to bottom, rgba(113, 64, 253, 0.075) 15%, rgba(255, 255, 255, 0) 50%);
|
background: linear-gradient(to right, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255, 0.0));
|
||||||
}
|
}
|
||||||
|
.gradient-wrapper .image-container .background-img {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 75%;
|
||||||
|
height: 230%;
|
||||||
|
width: auto;
|
||||||
|
}
|
|
@ -8,7 +8,7 @@ function ValidatorOnboarding() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<PageWrapperGradient>
|
<PageWrapperGradient>
|
||||||
<YStack>
|
<YStack style={{ maxWidth: '1052px', width: '100%', margin: '0 auto' }}>
|
||||||
<YStack style={{ width: '100%', margin: '64px 0 1vh' }}>
|
<YStack style={{ width: '100%', margin: '64px 0 1vh' }}>
|
||||||
<Text size={19} weight={'semibold'}>
|
<Text size={19} weight={'semibold'}>
|
||||||
Create Nimbus Validator
|
Create Nimbus Validator
|
||||||
|
@ -21,19 +21,30 @@ function ValidatorOnboarding() {
|
||||||
<Shadow
|
<Shadow
|
||||||
variant="$2"
|
variant="$2"
|
||||||
style={{
|
style={{
|
||||||
width: '1052px',
|
width: '100%',
|
||||||
height: '523px',
|
minHeight: '523px',
|
||||||
borderRadius: '16px',
|
borderRadius: '16px',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
|
flexDirection: 'row',
|
||||||
backgroundColor: '#fff',
|
backgroundColor: '#fff',
|
||||||
}}
|
}}
|
||||||
|
className="content"
|
||||||
>
|
>
|
||||||
<YStack>
|
<YStack className="layout-left">
|
||||||
<Titles
|
<Titles
|
||||||
title="Overview"
|
title="Overview"
|
||||||
subtitle="Becoming a validator is a big responsibility with important preparation steps. Only start the deposit process when youre ready."
|
subtitle="Becoming a validator is a big responsibility with important preparation steps. Only start the deposit process when youre ready."
|
||||||
></Titles>
|
></Titles>
|
||||||
</YStack>
|
</YStack>
|
||||||
|
<section className="layout-right">
|
||||||
|
<div className="image-container">
|
||||||
|
<img
|
||||||
|
src="./background-images/sync-status-background.png"
|
||||||
|
alt="background"
|
||||||
|
className="background-img"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</Shadow>
|
</Shadow>
|
||||||
</YStack>
|
</YStack>
|
||||||
</PageWrapperGradient>
|
</PageWrapperGradient>
|
||||||
|
|
Loading…
Reference in New Issue