-
Notifications
You must be signed in to change notification settings - Fork 949
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): add for business section (#1367)
- Loading branch information
Showing
4 changed files
with
178 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,108 @@ | ||
/* Source of for-business.css */ | ||
|
||
.for-business-container { | ||
background-color: #fcfcfc; | ||
padding: 7.125rem 2rem 0; | ||
} | ||
|
||
.for-business { | ||
display: flex; | ||
flex-direction: column; | ||
max-width: 80.375rem; | ||
margin: 0 auto; | ||
overflow: hidden; | ||
|
||
background: #ffffff; | ||
border: 1px solid #edf1f6; | ||
border-radius: 0.5rem; | ||
|
||
font-family: Raleway, sans-serif; | ||
font-size: 1rem; | ||
font-weight: 400; | ||
line-height: 1.5rem; | ||
|
||
&__left, | ||
&__right { | ||
padding: 2rem; | ||
} | ||
|
||
&__left { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
background: linear-gradient(39.99deg, #FE5722 25.21%, #FB7F1F 82.3%);; | ||
} | ||
|
||
&__heading { | ||
color: #ffffff; | ||
text-align: center; | ||
font-size: 3.5rem; | ||
font-weight: 800; | ||
line-height: 4.125rem; | ||
margin: 0 0 2rem; | ||
} | ||
|
||
&__submit { | ||
margin: auto auto 0; | ||
} | ||
|
||
&__offerings-title { | ||
font-size: 2.25rem; | ||
line-height: 2.625rem; | ||
font-weight: 800; | ||
color: #40424e; | ||
} | ||
|
||
&__offerings { | ||
margin: 2.25rem 0 0; | ||
padding: 0; | ||
list-style: none; | ||
|
||
&__offering { | ||
margin-bottom: 0.75rem; | ||
|
||
font-family: "Open Sans", sans-serif; | ||
font-size: 1.125rem; | ||
line-height: 1.5625rem; | ||
font-weight: 500; | ||
color: #7c8087; | ||
|
||
&::before { | ||
content: '•'; | ||
margin-right: 0.25rem; | ||
} | ||
} | ||
} | ||
} | ||
|
||
@media (min-width: 58.125em) { | ||
.for-business { | ||
flex-direction: row; | ||
|
||
&__left { | ||
max-width: 32.25rem; | ||
padding: 5.75rem 5.75rem 4.875rem; | ||
} | ||
|
||
&__submit { | ||
white-space: nowrap; | ||
} | ||
|
||
&__right { | ||
padding: 6.25rem 4rem; | ||
} | ||
} | ||
} | ||
|
||
@media (min-width: 80em) { | ||
.for-business { | ||
&__offerings-title__second-line { | ||
display: block; | ||
} | ||
|
||
&__offerings { | ||
columns: 2; | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,30 +1,51 @@ | ||
/* | ||
Minified version of this file inlined into index.html (script element after #uik-dialog-container). | ||
Minified version of this file inlined into index.html (script element after #uik-dialog-container-template). | ||
*/ | ||
|
||
(function () { | ||
var dialogContainerElement = document.getElementById('uik-dialog-container'); | ||
var downloadButton = document.getElementById('download-dialog-button'); | ||
var closeButton = document.getElementById('uik-dialog-close'); | ||
|
||
downloadButton.addEventListener('click', showDownloadDialog); | ||
closeButton.addEventListener('click', hideDialog); | ||
|
||
function showDownloadDialog() { | ||
dialogContainerElement.removeAttribute('hidden'); | ||
} | ||
|
||
function hideDialog() { | ||
dialogContainerElement.setAttribute('hidden', ''); | ||
} | ||
|
||
hbspt.forms.create({ | ||
var downloadDialogConfig = { | ||
portalId: '2452262', | ||
formId: 'f6b2c0c6-d488-4944-bd8b-ee97bb5a8fd5', | ||
target: '#uik-dialog-body', | ||
target: '#download-dialog-body', | ||
submitButtonClass: 'hs-submit-btn btn', | ||
css: '', | ||
cssClass: 'hs-custom-form', | ||
redirectUrl: 'https://github.com/akveo/react-native-ui-kitten' | ||
}); | ||
}; | ||
var forBusinessDialogConfig = { | ||
portalId: "2452262", | ||
formId: "27686f53-ce60-4a92-a789-fe684f6ad941", | ||
target: '#for-business-dialog-body', | ||
submitButtonClass: 'hs-submit-btn btn', | ||
css: '', | ||
cssClass: 'hs-custom-form', | ||
}; | ||
|
||
createHubspotDialog('download-dialog-button', downloadDialogConfig); | ||
createHubspotDialog('for-business-dialog-button', forBusinessDialogConfig); | ||
|
||
function createHubspotDialog(openButtonId, hubspotConfig) { | ||
var dialogContainerElementTemplate = document.getElementById('uik-dialog-container-template'); | ||
var dialogContainerElement = dialogContainerElementTemplate.cloneNode(true); | ||
dialogContainerElement.removeAttribute('id'); | ||
var dialogBodyElement = dialogContainerElement.querySelector('.uik-dialog-body'); | ||
dialogBodyElement.setAttribute('id', hubspotConfig.target.replace('#', '')); | ||
document.body.appendChild(dialogContainerElement); | ||
|
||
var openButton = document.getElementById(openButtonId); | ||
var closeButton = dialogContainerElement.querySelector('.uik-dialog-close'); | ||
|
||
openButton.addEventListener('click', showDialog, false); | ||
closeButton.addEventListener('click', hideDialog, false); | ||
|
||
function showDialog() { | ||
dialogContainerElement.removeAttribute('hidden'); | ||
} | ||
|
||
function hideDialog() { | ||
dialogContainerElement.setAttribute('hidden', ''); | ||
} | ||
|
||
hbspt.forms.create(hubspotConfig); | ||
} | ||
})(); |