Browse Source

Stub nma page

pull/7883/head
Brandon Romano 5 years ago
parent
commit
cff843ca51
  1. 0
      website/components/consul-enterprise-comparison/style.css
  2. 0
      website/components/enterprise-comparison/consul/img/consul-enterprise.svg
  3. 0
      website/components/enterprise-comparison/consul/img/consul-oss.svg
  4. 2
      website/components/enterprise-comparison/consul/index.jsx
  5. 33
      website/layouts/use-cases/index.jsx
  6. 40
      website/layouts/use-cases/style.css
  7. 2
      website/pages/home/index.jsx
  8. 3
      website/pages/style.css
  9. 59
      website/pages/use-cases/network-middleware-automation.jsx

0
website/components/consul-enterprise-comparison/style.css

0
website/components/consul-enterprise-comparison/img/consul-enterprise.svg → website/components/enterprise-comparison/consul/img/consul-enterprise.svg

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

0
website/components/consul-enterprise-comparison/img/consul-oss.svg → website/components/enterprise-comparison/consul/img/consul-oss.svg

Before

Width:  |  Height:  |  Size: 472 B

After

Width:  |  Height:  |  Size: 472 B

2
website/components/consul-enterprise-comparison/index.jsx → website/components/enterprise-comparison/consul/index.jsx

@ -1,4 +1,4 @@
import EnterpriseComparison from '../enterprise-comparison'
import EnterpriseComparison from '../../enterprise-comparison'
export default function ConsulEnterpriseComparison() {
return (

33
website/layouts/use-cases/index.jsx

@ -0,0 +1,33 @@
import BasicHero from '../../components/basic-hero'
import PrefooterCTA from '../../components/prefooter-cta'
import ConsulEnterpriseComparison from '../../components/enterprise-comparison/consul'
export default function UseCaseLayout({ title, description, children }) {
return (
<div id="p-use-case">
<BasicHero
heading={title}
content={description}
brand="consul"
links={[
{
text: 'Explore HashiCorp Learn',
url: 'https://learn.hashicorp.com/consul',
type: 'outbound',
},
{
text: 'Explore Documentation',
url: '/docs',
type: 'inbound',
},
]}
/>
<div className="g-grid-container">
<h2 className="g-type-display-2 features-header">Features</h2>
</div>
{children}
<ConsulEnterpriseComparison />
<PrefooterCTA />
</div>
)
}

40
website/layouts/use-cases/style.css

@ -0,0 +1,40 @@
#p-use-case {
& .features-header {
text-align: center;
margin-bottom: 0px;
}
/* Overriding the g-text-split component to have
* a header size closer to a h3 than a h2, as within
* the context of this page this text-split is more deeply
* nested within the page than we normally have it.
* */
& .g-text-split {
& h2 {
font-size: 1.5rem;
letter-spacing: -0.004em;
line-height: 1.375em;
@media (--medium-up) {
font-size: 1.75rem;
line-height: 1.321em;
}
@media (--large) {
font-size: 2rem;
letter-spacing: -0.006em;
line-height: 1.313em;
}
}
}
& .with-border {
& .g-text-split {
& .children {
border-width: 1px;
border-color: rgba(174, 176, 183, 0.45);
border-style: solid;
}
}
}
}

2
website/pages/home/index.jsx

@ -1,6 +1,6 @@
import UseCases from '@hashicorp/react-use-cases'
import BasicHero from '../../components/basic-hero'
import ConsulEnterpriseComparison from '../../components/consul-enterprise-comparison'
import ConsulEnterpriseComparison from '../../components/enterprise-comparison/consul'
import PrefooterCTA from '../../components/prefooter-cta'
import LearnCallout from '../../components/learn-callout'
import CaseStudyCarousel from '../../components/case-study-carousel'

3
website/pages/style.css

@ -49,6 +49,9 @@
@import '../components/learn-callout/style.css';
@import '../components/case-study-carousel/style.css';
/* Layouts */
@import '../layouts/use-cases/style.css';
/* Local Pages */
@import './downloads/style.css';
@import './community/style.css';

59
website/pages/use-cases/network-middleware-automation.jsx

@ -0,0 +1,59 @@
import UseCaseLayout from '../../layouts/use-cases'
import TextSplitWithImage from '@hashicorp/react-text-split-with-image'
export default function NetworkMiddlewareAutomationPage() {
return (
<UseCaseLayout
title="Network Middleware Automation"
description="Use Service Discovery to automate updates to complex network load balancer and firewall platforms."
>
<div className="with-border">
<TextSplitWithImage
textSplit={{
heading: 'Multi-region, multi-cloud',
content:
'Consul’s flexible architecture allows it to be deployed in any environment, in any region, on any cloud.',
textSide: 'left',
links: [
{
text: 'Learn More',
url:
'https://learn.hashicorp.com/consul?track=datacenter-deploy#datacenter-deploy',
type: 'outbound',
},
],
}}
image={{
url:
'https://www.datocms-assets.com/2885/1588822376-multi-region.png',
alt: '',
}}
/>
</div>
<div className="with-border">
<TextSplitWithImage
textSplit={{
heading: 'Multi-region, multi-cloud',
content:
'Consul’s flexible architecture allows it to be deployed in any environment, in any region, on any cloud.',
textSide: 'right',
links: [
{
text: 'Learn More',
url:
'https://learn.hashicorp.com/consul?track=datacenter-deploy#datacenter-deploy',
type: 'outbound',
},
],
}}
image={{
url:
'https://www.datocms-assets.com/2885/1588822376-multi-region.png',
alt: '',
}}
/>
</div>
</UseCaseLayout>
)
}
Loading…
Cancel
Save