-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Homepage] connect homepage to dato content (#13227)
* connect homepage to dato * Check for internal link * fix return types * adds youtube video * hook up meta tags and chunk cards * removes chunking * fix ts return * fix prop naming * fix return type
- Loading branch information
1 parent
9e848cd
commit 75f8328
Showing
18 changed files
with
15,504 additions
and
13,217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
export const productLogos = { | ||
boundary: require('@hashicorp/mktg-logos/product/boundary/logomark/color.svg?include'), | ||
consul: require('@hashicorp/mktg-logos/product/consul/logomark/color.svg?include'), | ||
nomad: require('@hashicorp/mktg-logos/product/nomad/logomark/color.svg?include'), | ||
packer: require('@hashicorp/mktg-logos/product/packer/logomark/color.svg?include'), | ||
terraform: require('@hashicorp/mktg-logos/product/terraform/logomark/color.svg?include'), | ||
vagrant: require('@hashicorp/mktg-logos/product/vagrant/logomark/color.svg?include'), | ||
vault: require('@hashicorp/mktg-logos/product/vault/logomark/color.svg?include'), | ||
waypoint: require('@hashicorp/mktg-logos/product/waypoint/logomark/color.svg?include'), | ||
boundary: { | ||
color: require('@hashicorp/mktg-logos/product/boundary/logomark/color.svg?include'), | ||
neutral: require('@hashicorp/mktg-logos/product/boundary/logomark/white.svg?include'), | ||
}, | ||
consul: { | ||
color: require('@hashicorp/mktg-logos/product/consul/logomark/color.svg?include'), | ||
neutral: require('@hashicorp/mktg-logos/product/consul/logomark/white.svg?include'), | ||
}, | ||
nomad: { | ||
color: require('@hashicorp/mktg-logos/product/nomad/logomark/color.svg?include'), | ||
neutral: require('@hashicorp/mktg-logos/product/nomad/logomark/white.svg?include'), | ||
}, | ||
packer: { | ||
color: require('@hashicorp/mktg-logos/product/packer/logomark/color.svg?include'), | ||
neutral: require('@hashicorp/mktg-logos/product/packer/logomark/white.svg?include'), | ||
}, | ||
terraform: { | ||
color: require('@hashicorp/mktg-logos/product/terraform/logomark/color.svg?include'), | ||
neutral: require('@hashicorp/mktg-logos/product/terraform/logomark/white.svg?include'), | ||
}, | ||
vagrant: { | ||
color: require('@hashicorp/mktg-logos/product/vagrant/logomark/color.svg?include'), | ||
neutral: require('@hashicorp/mktg-logos/product/vagrant/logomark/white.svg?include'), | ||
}, | ||
vault: { | ||
color: require('@hashicorp/mktg-logos/product/vault/logomark/color.svg?include'), | ||
neutral: require('@hashicorp/mktg-logos/product/vault/logomark/white.svg?include'), | ||
}, | ||
waypoint: { | ||
color: require('@hashicorp/mktg-logos/product/waypoint/logomark/color.svg?include'), | ||
neutral: require('@hashicorp/mktg-logos/product/waypoint/logomark/white.svg?include'), | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ | |
color: var(--white); | ||
right: 24px; | ||
top: 24px; | ||
z-index: 1; | ||
|
||
@media (min-width: 768px) { | ||
right: 48px; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export const isInternalLink = (link: string): boolean => { | ||
if ( | ||
link.startsWith('/') || | ||
link.startsWith('#') || | ||
link.startsWith('https://vaultproject.io') || | ||
link.startsWith('https://www.vaultproject.io') | ||
) { | ||
return true | ||
} | ||
return false | ||
} | ||
|
||
export const chunk = (arr, chunkSize = 1, cache = []) => { | ||
const tmp = [...arr] | ||
if (chunkSize <= 0) return cache | ||
while (tmp.length) cache.push(tmp.splice(0, chunkSize)) | ||
return cache | ||
} |
Oops, something went wrong.