Adds page specific metadata to use case pages

This commit is contained in:
Brandon Romano 2020-05-13 22:34:25 -07:00
parent cf7b7f9e6f
commit a0c30060b3
1 changed files with 32 additions and 23 deletions

View File

@ -1,33 +1,42 @@
import BasicHero from '../../components/basic-hero' import BasicHero from '../../components/basic-hero'
import PrefooterCTA from '../../components/prefooter-cta' import PrefooterCTA from '../../components/prefooter-cta'
import ConsulEnterpriseComparison from '../../components/enterprise-comparison/consul' import ConsulEnterpriseComparison from '../../components/enterprise-comparison/consul'
import Head from 'next/head'
import HashiHead from '@hashicorp/react-head'
export default function UseCaseLayout({ title, description, children }) { export default function UseCaseLayout({ title, description, children }) {
return ( return (
<div id="p-use-case"> <>
<BasicHero <HashiHead
heading={title} is={Head}
content={description} title={`Consul ${title}`}
brand="consul" description={description}
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"> <div id="p-use-case">
<h2 className="g-type-display-2 features-header">Features</h2> <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> </div>
{children} </>
<ConsulEnterpriseComparison />
<PrefooterCTA />
</div>
) )
} }