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

Commit d0f69c9

Browse files
nisarhassan12svenefftinge
authored andcommitted
[self-hosted] update the banner contents + add the features section.
1 parent 81da0b3 commit d0f69c9

File tree

9 files changed

+131
-7
lines changed

9 files changed

+131
-7
lines changed

src/components/index/WhyGitpod.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22

33
import styled from '@emotion/styled'
4-
import { colors, sizes } from '../../styles/variables'
4+
import { colors, sizes, borders } from '../../styles/variables'
55
import ToolIntegration from '../../resources/tool-integration.svg'
66
import FullDevEnvironments from '../../resources/full-dev-environments.svg'
77
import ReadyToCode from '../ReadyToCode'
@@ -84,7 +84,7 @@ const Styled = styled.div`
8484
8585
@media(min-width: 881px) {
8686
width: 45%;
87-
border-left: 4px solid ${colors.offWhite3};
87+
border-left: ${borders.bold};
8888
}
8989
9090
@media(max-width: 1150px) {
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import React from 'react'
2+
3+
import styled from '@emotion/styled'
4+
import { borders } from '../../styles/variables'
5+
6+
const StyledFeature = styled.div`
7+
display: flex;
8+
align-items: center;
9+
flex: 0 0 45%;
10+
max-width: 60rem;
11+
margin: 0 auto;
12+
margin-bottom: 10rem;
13+
14+
@media(max-width: 520px) {
15+
flex-direction: column;
16+
text-align: center;
17+
}
18+
19+
div {
20+
@media(min-width: 520px) {
21+
border-left: ${borders.bold};
22+
margin-left: 3rem;
23+
padding-left: 3rem;
24+
}
25+
}
26+
27+
img {
28+
flex: 0 0 15%;
29+
max-width: 10rem;
30+
max-height: 12rem;
31+
32+
@media(max-width: 520px) {
33+
margin-bottom: 4rem;
34+
}
35+
}
36+
`
37+
38+
export interface FeatureProps {
39+
title: string
40+
text: string
41+
img: string
42+
}
43+
44+
const Feature = ({ title, text, img }: FeatureProps) => (
45+
<StyledFeature>
46+
<img src={img} alt={title}/>
47+
<div>
48+
<h3>{title}</h3>
49+
<p>{text}</p>
50+
</div>
51+
</StyledFeature>
52+
)
53+
54+
export default Feature
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import React from 'react'
2+
3+
import styled from '@emotion/styled'
4+
import Feature, { FeatureProps } from './Feature'
5+
import { sizes } from '../../styles/variables'
6+
7+
const StyledFeatures = styled.div`
8+
display: flex;
9+
flex-wrap: wrap;
10+
justify-content: space-between;
11+
12+
@media(max-width: ${sizes.breakpoints.lg}) {
13+
flex-direction: column;
14+
}
15+
`
16+
17+
const Features = ({ features }: { features: FeatureProps[] }) => (
18+
<section>
19+
<StyledFeatures className="row">
20+
{
21+
features.map(
22+
(feature: FeatureProps, i) => <Feature
23+
key={`${i}feature.title`}
24+
{...feature}
25+
/>
26+
)
27+
}
28+
</StyledFeatures>
29+
</section>
30+
)
31+
32+
export default Features

src/pages/self-hosted.tsx

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ import Kubernetes from '../resources/kubernetes.svg'
99
import Details from '../components/Details'
1010
import Banner from '../components/Banner'
1111
import ActionCard from '../components/ActionCard'
12+
import { FeatureProps } from '../components/self-hosted/Feature'
13+
import Features from '../components/self-hosted/Features'
14+
import Control from '../resources/control.svg'
15+
import Support from '../resources/support.svg'
16+
import GithubGitlab from '../resources/github-gitlab.svg'
17+
import Adminstration from '../resources/administration.svg'
1218

1319
const StyledSelfHostedPage = styled.div`
1420
/* ------------------------------------------- */
@@ -134,6 +140,29 @@ const StepP = styled.p`
134140
}
135141
`;
136142

143+
const features: FeatureProps[] = [
144+
{
145+
title: 'Full Data Control',
146+
text: 'All data remains on your infrastructure, as Gitpod will run on air-gapped networks, disconnected from the internet.',
147+
img: Control
148+
},
149+
{
150+
title: 'GitLab & GitHub Integration',
151+
text: 'Highly compatibility with Git Hosting solutions like GitHub Enterprise, GitLab Community Edition or Enterprise Edition. BitBucket integration is coming soon.',
152+
img: GithubGitlab
153+
},
154+
{
155+
title: 'Professional Support',
156+
text: 'Schedule a call with our dedicated engineers whenever you need help.',
157+
img: Support
158+
},
159+
{
160+
title: 'Easy Administration',
161+
text: 'No need for additional User Management. Simply use OAuth from Git Hosting and enjoy its the privileges.',
162+
img: Adminstration
163+
}
164+
]
165+
137166
const SelfHostedPage: React.SFC<{}> = () => (
138167
<IndexLayout canonical='/self-hosted/' title="Self-Hosted">
139168
<StyledSelfHostedPage>
@@ -145,16 +174,20 @@ const SelfHostedPage: React.SFC<{}> = () => (
145174
<Banner
146175
subtitle="Self-hosted Gitpod"
147176
title={<h1>
148-
Make Gitpod Available In-House,
177+
Keep Your Data on Your Network and
149178
<br />
150-
Hosted on <strong>Your Own Infrastructure.</strong>
179+
Host it on <strong>Your Own Infrastructure.</strong>
151180
</h1>}
152181
linkPath="/self-hosted/#install"
153-
linkText="View Install Instructions"
182+
linkText="Install Now"
154183
img={<object role="presentation" tabIndex={-1} data={Cloud}/>}
155-
children={<p>1 Month for <span>Free.</span></p>}
184+
children={<span style={{fontWeight: 600}}>And Start Your 30-day Free Trial.</span>}
156185
/>
157186
</div>
187+
188+
{/* ----- Section Features ----- */}
189+
190+
<Features features={features} />
158191

159192
{/* ----- Section Install ----- */}
160193

src/resources/administration.svg

Lines changed: 1 addition & 0 deletions
Loading

src/resources/control.svg

Lines changed: 1 addition & 0 deletions
Loading

src/resources/github-gitlab.svg

Lines changed: 1 addition & 0 deletions
Loading

src/resources/support.svg

Lines changed: 1 addition & 0 deletions
Loading

src/styles/variables.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ export const shadows = {
3838

3939
export const borders = {
4040
light: '1px solid rgba(0,0,0, .08)',
41-
light1: '1px solid rgba(0,0,0, .2)'
41+
light1: '1px solid rgba(0,0,0, .2)',
42+
bold: `4px solid ${colors.offWhite3}`
4243
}

0 commit comments

Comments
 (0)