-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de39740
commit 7946517
Showing
4 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import { Button, ConsoleIcon, DownloadIcon } from '@pluralsh/design-system' | ||
import Link from 'next/link' | ||
|
||
import styled from 'styled-components' | ||
|
||
import { getSolutionConfigs } from '@src/data/getSolutionsConfigs' | ||
|
||
import { EqualColumn } from '../layout/Columns' | ||
import { StandardPageSection } from '../layout/LayoutHelpers' | ||
import { ResponsiveText } from '../Typography' | ||
|
||
function SolutionDownloadSection({ slug }: { slug: string }) { | ||
const innerSolution = getSolutionConfigs()[slug] | ||
|
||
return ( | ||
<StandardPageSection className="flex items-center justify-center bg-fill-zero px-large lg:px-xxxxlarge"> | ||
<div className="relative flex w-full items-center justify-center rounded-large border border-purple-300 p-xxxlarge lg:px-xxxxxlarge"> | ||
<Background /> | ||
<div className="z-10 max-w-[760px]"> | ||
<ResponsiveText | ||
textStyles={{ '': 'mSubtitle1' }} | ||
className=" mb-medium" | ||
> | ||
{innerSolution.bottomTitle} | ||
</ResponsiveText> | ||
<ResponsiveText textStyles={{ '': 'mBody2' }}> | ||
{innerSolution.bottomDescription} | ||
</ResponsiveText> | ||
|
||
<div className=" mt-xxlarge flex flex-col items-stretch gap-medium lg:flex-row lg:items-center"> | ||
<EqualColumn> | ||
<Button | ||
large | ||
as={Link} | ||
href="/contact-sales" | ||
startIcon={<ConsoleIcon />} | ||
> | ||
Book a demo | ||
</Button> | ||
</EqualColumn> | ||
<EqualColumn> | ||
<Button | ||
large | ||
as={Link} | ||
secondary | ||
outline | ||
href="/contact-sales" | ||
startIcon={<DownloadIcon />} | ||
> | ||
Download full e-book | ||
</Button> | ||
</EqualColumn> | ||
</div> | ||
</div> | ||
</div> | ||
</StandardPageSection> | ||
) | ||
} | ||
|
||
export default SolutionDownloadSection | ||
|
||
const Background = styled.div(({ theme }) => ({ | ||
overflow: 'hidden', | ||
content: '""', | ||
position: 'absolute', | ||
top: '0', | ||
left: '0', | ||
right: '0', | ||
bottom: '0', | ||
width: '100%', | ||
height: '100%', | ||
backgroundImage: `url(/images/solutions/download-section-bg.png)`, | ||
backgroundPosition: 'center center', | ||
backgroundSize: '100%', | ||
backgroundRepeat: 'no-repeat', | ||
backgroundColor: theme.colors['fill-two'], | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters