8b5560eb02
* style: update gray brand colors (#11092) * Style: Update brand colors (#11224) * style: update brand colors * chore: upgrade react-components * style: update use cases page btn --> vault brand * chore: home page component api updates * style: fix link colors * run npm audit * upgrade downloads page * typo fixes * fix husky, run lint * roll back husky upgrade * style(home callouts): body copy gray -2 * style: testing hashi-stack-menu prerelease * style: upgrade components --> color contrast (#11328) * chore: upgrades components w/ new styles * refactor(use-cases pages): to use FeaturedSlider component * style(BeforeAfterDiagram): swap check icon * style(use-cases-cta): adjust background color --> vault primary * chore(community): pass to VerticalBlockTextList * chore(deps): adds tippy.js * chore(deps): upgrade product downloads pre-release * fix(subnav): use asPath to set active item * chore: upgrade deps to stable * style: home callouts body copy to black * chore: upgrade hashi-stack-menu to stable * chore: upgrade deps * style(use-cases): update background and button colors * chore: upgrade deps body copy color * chore: upgrades alert-banner * fix: remove package.json * content(home): removes hero background image * content(home): updates assets * content(use-cases): updates assets * style(before-after-diagram): adjust scaling styles * content:swap svgs for pngs * style: updates before/after diagram * chore: testing product download page pre-release * content: updates consul & nomad logomarks * chore: updates product download page to stable Co-authored-by: Jeff Escalante <jescalan@users.noreply.github.com>
59 lines
1.9 KiB
JavaScript
59 lines
1.9 KiB
JavaScript
import SectionHeader from '@hashicorp/react-section-header'
|
|
import Button from '@hashicorp/react-button'
|
|
import TextSplits from '@hashicorp/react-text-splits'
|
|
import BeforeAfterDiagram from 'components/before-after-diagram'
|
|
import UseCaseCtaSection from 'components/use-case-cta-section'
|
|
// Imports below are used in getStaticProps
|
|
import RAW_CONTENT from './content.json'
|
|
import highlightData from '@hashicorp/nextjs-scripts/prism/highlight-data'
|
|
import processBeforeAfterDiagramProps from 'components/before-after-diagram/server'
|
|
|
|
export async function getStaticProps() {
|
|
const content = await highlightData(RAW_CONTENT)
|
|
content.beforeAfterDiagram = await processBeforeAfterDiagramProps(
|
|
content.beforeAfterDiagram
|
|
)
|
|
return { props: { content } }
|
|
}
|
|
|
|
export default function DataEncryptionUseCase({ content }) {
|
|
return (
|
|
<div id="use-cases" className="g-section-block page-wrap">
|
|
{/* Header / Buttons */}
|
|
<section className="g-container">
|
|
<SectionHeader
|
|
headline="Leverage Trusted Identities in Low Trust Networks"
|
|
description="Authenticate and access different clouds, systems, and endpoints using trusted identities"
|
|
useH1={true}
|
|
/>
|
|
|
|
<div className="button-container">
|
|
<Button
|
|
title="Download"
|
|
url="/downloads"
|
|
theme={{ brand: 'vault' }}
|
|
/>
|
|
<Button title="Get Started" url="/intro" theme="dark-outline" />
|
|
</div>
|
|
</section>
|
|
|
|
{/* Before/After Diagram */}
|
|
<section>
|
|
<div className="g-container">
|
|
<BeforeAfterDiagram {...content.beforeAfterDiagram} />
|
|
</div>
|
|
</section>
|
|
|
|
{/* Features */}
|
|
<section className="no-section-spacing">
|
|
<div className="g-grid-container">
|
|
<SectionHeader headline="Identity-based Access Features" />
|
|
</div>
|
|
<TextSplits textSplits={content.features} />
|
|
</section>
|
|
|
|
<UseCaseCtaSection />
|
|
</div>
|
|
)
|
|
}
|