-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
playground-features.js
111 lines (101 loc) · 3.36 KB
/
playground-features.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import React from "react";
import styled from "styled-components";
import { ReactComponent as PlaygroundFeature1 } from "./images/playground-feature-1.svg";
import { ReactComponent as PlaygroundFeature2 } from "./images/playground-feature-2.svg";
import { ReactComponent as PlaygroundFeature3 } from "./images/playground-feature-3.svg";
import { useInView } from "react-intersection-observer";
import { useState } from "react";
const PlaygroundFeaturesWrapper = styled.div`
display: flex;
flex-direction: column;
text-align: center;
justify-content: center;
align-items: center;
margin: 5% 0%;
svg {
.playground-feature-2_svg__text {
fill: ${props => props.theme.whiteToBlack};
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
}
h1 {
margin-bottom: 8px;
}
.feature {
position: relative;
display: flex;
flex-direction: row;
width: 70%;
justify-content: flex-end;
align-items: center;
margin: 1% 0%;
@media only screen and (max-width: 767px) {
text-align: center;
flex-direction: column-reverse;
margin: 5%;
}
.feature-text {
display: flex;
flex-direction: column;
flex: 0 0 50%;
max-width: 50%;
text-align: left;
padding: 0% 5%;
@media only screen and (max-width: 767px) {
max-width: 100%;
text-align: center;
}
h2 {
margin-bottom: 2%;
}
}
.feature-image {
flex: 0 0 50%;
max-width: 50%;
@media only screen and (max-width: 767px) {
max-width: 80%;
}
}
}
.reverse {
@media only screen and (min-width: 767px) {
flex-direction: row-reverse;
}
}
`;
const PlaygroundFeatures = () => {
return (
<PlaygroundFeaturesWrapper>
<h1>In the Playground, you can...</h1>
<hr style={{ width: "20%", backgroundColor: "#00b39f", height: "4px", border: "0" }} />
<div className="feature">
<div className="feature-text">
<h2>Collaborate more effectively</h2>
<h5>Collaborate with other engineers, share your knowledge, and exchange ideas.</h5>
</div>
<div className="feature-image" style={{ scale: "0.8" }}>
<PlaygroundFeature1 />
</div>
</div>
<div className="feature reverse">
<div className="feature-text">
<h2>Discover new cloud native tools</h2>
<h5>Explore new cloud native tools without the need for complex setup or configuration. Simply open your browser and go.</h5>
</div>
<div className="feature-image" style={{ scale: "0.8" }}>
<PlaygroundFeature2 />
</div>
</div>
<div className="feature">
<div className="feature-text">
<h2>Develop inside sandbox environments</h2>
<h5>Design new cloud native scenarios and easily deploy in the Playground environment. Keep your designs and deploy in your own environment when you’re ready.</h5>
</div>
<div className="feature-image" style={{ scale: "0.8" }}>
<PlaygroundFeature3 />
</div>
</div>
</PlaygroundFeaturesWrapper>
);
};
export default PlaygroundFeatures;