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

Commit 16c4a32

Browse files
committed
[self-hosted] Make 'Install on GCP' button blue
1 parent 9797a79 commit 16c4a32

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/self-hosted/Install.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface InstallProps {
1212
alt: string
1313
text: string
1414
linkPath: string
15+
btnBackground?: boolean
1516
}
1617

1718
const installs: InstallProps[] = [
@@ -20,7 +21,8 @@ const installs: InstallProps[] = [
2021
img: GoogleCloudLogo,
2122
alt: "Google Cloud",
2223
text: " Install Gitpod optimised for Google Cloud Platform.",
23-
linkPath: 'install-on-gcp-script'
24+
linkPath: 'install-on-gcp-script',
25+
btnBackground: true
2426
},
2527
{
2628
title: "Vanilla Kubernetes",
@@ -87,14 +89,14 @@ const Install = () => (
8789
<h2>Install Gitpod Self-Hosted</h2>
8890
<div className="install">
8991
{
90-
installs.map(({ title, text, img, alt, linkPath }: InstallProps, i) => (
92+
installs.map(({ title, text, img, alt, linkPath, btnBackground }: InstallProps, i) => (
9193
<div key={`${i}+${title}`}className="install__box">
9294
<img src={img} alt={alt} />
9395
<h3>{title}</h3>
9496
<p>
9597
{text}
9698
</p>
97-
<Link to={`/docs/self-hosted/latest/install/${linkPath}/`} className="btn">Install Now</Link>
99+
<Link to={`/docs/self-hosted/latest/install/${linkPath}/`} className={btnBackground ? 'btn btn--cta' : 'btn'}>Install Now</Link>
98100
</div>
99101
))
100102
}

0 commit comments

Comments
 (0)