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

Commit 2615d59

Browse files
committed
Improve SEO for gitpod-vs-codespaces landing page.
Addresses part of gitpod-io/website#841
1 parent f8f61ae commit 2615d59

File tree

4 files changed

+27
-20
lines changed

4 files changed

+27
-20
lines changed

netlify.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,3 +406,8 @@
406406
from = "/blog/gitlab-integration/+"
407407
to = "/blog/gitlab-integration/"
408408
status = 301
409+
410+
[[redirects]]
411+
from = "/gitpod-vs-codespaces"
412+
to = "/gitpod-vs-github-codespaces/"
413+
status = 301

src/components/gitpod-vs-codespaces/SpeedComparison.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const StyledSpeedComparison = styled.div`
1010
margin: 5rem 0 7rem;
1111
1212
@media(max-width: ${sizes.breakpoints.lg}) {
13-
margin: 0rem 0 3rem;
13+
margin: 0rem 0 3rem;
1414
}
1515
1616
@media (max-width: 560px) {
@@ -39,15 +39,6 @@ const StyledSpeedComparison = styled.div`
3939
}
4040
}
4141
42-
h4 {
43-
margin-bottom: 1rem;
44-
margin-left: 1.5rem;
45-
46-
@media (max-width: ${sizes.breakpoints.sm}) {
47-
text-align: left;
48-
}
49-
}
50-
5142
p {
5243
color: ${colors.textLight};
5344
}
@@ -56,6 +47,17 @@ const StyledSpeedComparison = styled.div`
5647
position: relative;
5748
display: flex;
5849
50+
&__title {
51+
margin-bottom: 1rem;
52+
margin-left: 1.5rem;
53+
font-weight: 600;
54+
color: ${colors.textDark};
55+
56+
@media (max-width: ${sizes.breakpoints.sm}) {
57+
text-align: left;
58+
}
59+
}
60+
5961
@media (max-width: 605px) {
6062
flex-wrap: wrap;
6163
}
@@ -141,7 +143,7 @@ const SpeedComparison = () => (
141143
Click
142144
</div>
143145
<div className="item item--1">
144-
<h4>Gitpod</h4>
146+
<div className="bar__title">Gitpod</div>
145147
<div className="bar-container">
146148
<div className="bar bar--gitpod">
147149
<div className="bar--gitpod-1" title="Boot Environment & Load UI (< 1 min)"></div>
@@ -150,7 +152,7 @@ const SpeedComparison = () => (
150152
</div>
151153
</div>
152154
<div className="item item--2">
153-
<h4>GitHub Codespaces</h4>
155+
<div className="bar__title">GitHub Codespaces</div>
154156
<div className="bar-container">
155157
<div className="bar bar--codespaces">
156158
<div className="bar--codespaces-1" title="Boot Environment & Load UI (> 5 min)">Load</div>

src/contents/gitpod-vs-codespaces.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export const features: FeatureCardProps[] = [
4444
</>
4545
),
4646
Figure: PowerComparison,
47-
figFootnote: <>Compared resources for 100 active hours at $9/month. Last verified 25 Sep 2020. Sources: <Link to="/pricing/">Gitpod Pricing</Link>, <a href=
48-
"https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/about-billing-for-codespaces" target="_blank">GitHub Codespaces Pricing</a>.</>,
47+
figFootnote: <>Compared resources for 100 active hours at $9/month. Last verified 25 Sep 2020. Sources: <Link to="/pricing/">Gitpod</Link>, <a href=
48+
"https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/about-billing-for-codespaces" target="_blank">GitHub Codespaces</a>.</>,
4949
},
5050
{
5151
id: 'open-source',

src/pages/gitpod-vs-codespaces.tsx renamed to src/pages/gitpod-vs-github-codespaces.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const QuestionMark = () => <img style={{ height: '2.1rem' }} src={questionMarkIm
3939

4040
const Cross = () => <img style={{ height: '2.1rem' }} src={crossImg} alt="Cross" />
4141

42-
const StyledGitpodVsCodespacesPage = styled.div`
42+
const StyledGitpodVsGitHubCodespacesPage = styled.div`
4343
.main {
4444
padding: 0;
4545
}
@@ -69,9 +69,9 @@ const StyledGitpodVsCodespacesPage = styled.div`
6969
}
7070
`
7171

72-
const GitpodVsCodespacesPage = () => (
73-
<IndexLayout title="Gitpod vs GitHub Codespaces" description="Gitpod is the faster, more powerful open-source platform that integrates with your individual stack.">
74-
<StyledGitpodVsCodespacesPage>
72+
const GitpodVsGitHubCodespacesPage = () => (
73+
<IndexLayout title="Gitpod vs GitHub Codespaces" description="Gitpod is the faster, more powerful open-source platform that integrates with your individual stack." canonical="gitpod-vs-github-codespaces">
74+
<StyledGitpodVsGitHubCodespacesPage>
7575
<section className="main">
7676
<div className="row">
7777
<div className="intro pattern">
@@ -378,8 +378,8 @@ const GitpodVsCodespacesPage = () => (
378378
}
379379
]}
380380
/>
381-
</StyledGitpodVsCodespacesPage>
381+
</StyledGitpodVsGitHubCodespacesPage>
382382
</IndexLayout>
383383
)
384384

385-
export default GitpodVsCodespacesPage
385+
export default GitpodVsGitHubCodespacesPage

0 commit comments

Comments
 (0)