mirror of https://github.com/hashicorp/boundary
website: add desktop download callout (#1140)
* setup desktop client download callout * display different formats for desktop client * add desktop download cta * fix: invalid id * style up hero download button * address review feedback, cleanuppull/1151/head
parent
358f5a61fb
commit
cf9def7ced
|
After Width: | Height: | Size: 1.0 KiB |
@ -0,0 +1,32 @@
|
||||
import s from './merch-desktop-client.module.css'
|
||||
import InlineSvg from '@hashicorp/react-inline-svg'
|
||||
|
||||
export default function MerchDesktopDownload({ version, releases }) {
|
||||
const { builds } = releases.versions[version]
|
||||
|
||||
return (
|
||||
<div className={s.container} id="desktop">
|
||||
<div className={s.wrapper}>
|
||||
<span className={s.title}>Desktop Client</span>
|
||||
<div className={s.platformVersion}>
|
||||
<InlineSvg
|
||||
className={s.logo}
|
||||
src={require('./img/apple-logo.svg?include')}
|
||||
/>
|
||||
<span className={s.version}>{version}</span>
|
||||
</div>
|
||||
<div className={s.downloadLinks}>
|
||||
{builds.map((build) => (
|
||||
<a key={build.filename} className={s.downloadLink} href={build.url}>
|
||||
.{getFileExtension(build.filename)}
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function getFileExtension(filename) {
|
||||
return filename.substring(filename.lastIndexOf('.') + 1, filename.length)
|
||||
}
|
||||
@ -0,0 +1,52 @@
|
||||
.container {
|
||||
width: 100%;
|
||||
border: 1px solid var(--gray-6);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
min-height: 193px;
|
||||
padding: 40px 50px;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: var(--font-display);
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--gray-4);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.platformVersion {
|
||||
display: flex;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
|
||||
& .logo {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
& .version {
|
||||
align-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
.downloadLinks {
|
||||
color: var(--brand);
|
||||
|
||||
& a {
|
||||
margin-right: 20px;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1 +1,2 @@
|
||||
export default '0.2.0'
|
||||
export const VERSION = '0.2.0'
|
||||
export const DESKTOP_VERSION = '1.0.0'
|
||||
|
||||
|
After Width: | Height: | Size: 345 B |
Loading…
Reference in new issue