mirror of https://github.com/hashicorp/consul
Browse Source
website: prep hcp ctas Add in updated HCP section Fix broken link website: remove superflous heading website: add new try cloud cta to nav website: adjust homepage hero CTAs Update HCP description to match latest Clean up Hero CTAs Updates bannerpull/9677/head
Kyle MacDonald
4 years ago
committed by
Brandon Romano
10 changed files with 220 additions and 96 deletions
@ -0,0 +1,82 @@
|
||||
.hcpCalloutSection { |
||||
composes: g-grid-container from global; |
||||
padding-top: 88px; |
||||
padding-bottom: 88px; |
||||
|
||||
& .header { |
||||
display: flex; |
||||
justify-content: center; |
||||
margin-bottom: 88px; |
||||
@media (max-width: 1120px) { |
||||
margin-bottom: 48px; |
||||
} |
||||
& h2 { |
||||
margin: 0; |
||||
text-align: center; |
||||
max-width: 450px; |
||||
} |
||||
} |
||||
|
||||
& .content { |
||||
display: flex; |
||||
flex-direction: row; |
||||
justify-content: space-between; |
||||
|
||||
@media (max-width: 1120px) { |
||||
flex-direction: column-reverse; |
||||
|
||||
& .info { |
||||
margin-top: 32px; |
||||
} |
||||
} |
||||
|
||||
& .info { |
||||
max-width: 488px; |
||||
margin-right: 32px; |
||||
|
||||
& h1 { |
||||
margin-top: 0; |
||||
margin-bottom: 8px; |
||||
} |
||||
& .chin { |
||||
color: var(--gray-4); |
||||
} |
||||
& .description { |
||||
color: var(--gray-4); |
||||
margin-top: 28px; |
||||
margin-bottom: 0; |
||||
|
||||
@media (max-width: 900px) { |
||||
margin-top: 18px; |
||||
} |
||||
} |
||||
& .links { |
||||
margin-top: 32px; |
||||
display: inline-flex; |
||||
flex-direction: column; |
||||
|
||||
& > * { |
||||
&:not(:last-child) { |
||||
margin-bottom: 24px; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
& > img { |
||||
align-self: center; |
||||
margin-right: -48px; |
||||
@media (max-width: 670px) { |
||||
max-width: 100%; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
.chin { |
||||
composes: g-type-label from global; |
||||
} |
||||
|
||||
.description { |
||||
composes: g-type-long-body from global; |
||||
} |
@ -0,0 +1,44 @@
|
||||
import styles from './HCPCalloutSection.module.css' |
||||
import Button from '@hashicorp/react-button' |
||||
|
||||
export default function HcpCalloutSection({ |
||||
id, |
||||
header, |
||||
title, |
||||
description, |
||||
chin, |
||||
image, |
||||
links, |
||||
}) { |
||||
return ( |
||||
<div className={styles.hcpCalloutSection} id={id}> |
||||
<div className={styles.header}> |
||||
<h2>{header}</h2> |
||||
</div> |
||||
|
||||
<div className={styles.content}> |
||||
<div className={styles.info}> |
||||
<h1>{title}</h1> |
||||
<span className={styles.chin}>{chin}</span> |
||||
<p className={styles.description}>{description}</p> |
||||
<div className={styles.links}> |
||||
{links.map((link, index) => { |
||||
const variant = index === 0 ? 'primary' : 'tertiary' |
||||
return ( |
||||
<div key={link.text}> |
||||
<Button |
||||
title={link.text} |
||||
linkType={link.type} |
||||
url={link.url} |
||||
theme={{ variant, brand: 'neutral', background: 'light' }} |
||||
/> |
||||
</div> |
||||
) |
||||
})} |
||||
</div> |
||||
</div> |
||||
<img alt={title} src={image} /> |
||||
</div> |
||||
</div> |
||||
) |
||||
} |
After Width: | Height: | Size: 22 KiB |
Loading…
Reference in new issue