Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit a51ecef

Browse files
committed
[pricing] add cloud images to the self hosted pricing plans.
1 parent ed91616 commit a51ecef

File tree

2 files changed

+63
-8
lines changed

2 files changed

+63
-8
lines changed

src/components/PricingBox.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const StyledPricingBox = styled.div<StyledPricingBoxProps>`
3232
background-color: ${colors.offWhite};
3333
border-radius: 3px;
3434
margin-top: ${({ isTitleOutside }) => isTitleOutside ? '6rem' : '2rem'};
35+
z-index: 1000;
3536
3637
@media(min-width: ${sizes.breakpoints.md}) {
3738
z-index: ${({ transform }) => transform ? '1' : null};
@@ -46,10 +47,6 @@ const StyledPricingBox = styled.div<StyledPricingBoxProps>`
4647
padding: 3rem 2rem;
4748
margin-bottom: 5rem;
4849
min-height: ${({ isTitleOutside }) => isTitleOutside ? '38rem' : '50rem'};
49-
50-
&:not(:last-of-type) {
51-
margin-bottom: ${({ isTitleOutside }) => isTitleOutside ? '8rem' : '5rem'};
52-
}
5350
}
5451
5552
@media(max-width: 1096px) {

src/components/pricing/PricingBoxes.tsx

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const PricingContainer = styled.div`
116116
padding: 3rem 0 6rem;
117117
118118
.cards {
119-
justify-content: flex-start;
119+
position: relative;
120120
padding: 0rem 0 3rem;
121121
122122
.hide {
@@ -133,8 +133,54 @@ const PricingContainer = styled.div`
133133
text-align: center;
134134
font-size: 130%;
135135
}
136-
`;
137136
137+
.cloud-img {
138+
position: absolute;
139+
height: 20rem;
140+
141+
@media(max-width: 840px) {
142+
display: none;
143+
}
144+
145+
&--1 {
146+
top: 31px;
147+
left: 20%;
148+
149+
@media(max-width: 1100px) {
150+
left: 19.5%;
151+
}
152+
153+
@media(max-width: 960px) {
154+
left: 16%;
155+
}
156+
157+
@media(max-width: 900px) {
158+
left: 14%;
159+
}
160+
}
161+
162+
&--2 {
163+
bottom: -30px;
164+
right: 14.5%;
165+
166+
@media(max-width: ${sizes.breakpoints.lg}) {
167+
bottom: -1px;
168+
}
169+
170+
@media(max-width: 1100px) {
171+
right: 11.5%;
172+
}
173+
174+
@media(max-width: 960px) {
175+
right: 8.5%;
176+
}
177+
178+
@media(max-width: 960px) {
179+
right: 5%;
180+
}
181+
}
182+
}
183+
`;
138184

139185
export interface PricingBoxesProps {
140186
isRendered: boolean
@@ -153,8 +199,8 @@ const PricingBoxes = ({ isRendered, changeIsRendered }: PricingBoxesProps) => {
153199
/>
154200
</div>
155201
</div>
156-
<PricingContainer>
157-
<div className="cards">
202+
<PricingContainer className="">
203+
<div className="cards row">
158204
<div
159205
className={`pricing__boxes ${isRendered ? 'hide' : 'show'}`}
160206
>
@@ -168,13 +214,25 @@ const PricingBoxes = ({ isRendered, changeIsRendered }: PricingBoxesProps) => {
168214
<div
169215
className={`pricing__boxes ${isRendered ? 'show' : 'hide'}`}
170216
>
217+
<object
218+
role="presentation"
219+
tabIndex={-1}
220+
data={Cloud}
221+
className="cloud-img cloud-img--1"
222+
/>
171223
{selfHostedPlans.map(
172224
(plan, i) => <PricingBox
173225
key={i}
174226
{...plan}
175227
isTitleOutside={true}
176228
/>
177229
)}
230+
<object
231+
role="presentation"
232+
tabIndex={-1}
233+
data={Cloud}
234+
className="cloud-img cloud-img--2"
235+
/>
178236
</div>
179237
</div>
180238
<p>Do you have any questions? Please, <Link to="/contact/">Get in Touch.</Link></p>

0 commit comments

Comments
 (0)