Skip to content

Commit

Permalink
chore(docs): add for business section (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed Mar 10, 2021
1 parent 565f7e2 commit 4a117e7
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 23 deletions.
1 change: 1 addition & 0 deletions docs/src/landing/css/for-business.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

108 changes: 108 additions & 0 deletions docs/src/landing/css/for-business.scss
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;
}
}
}
33 changes: 29 additions & 4 deletions docs/src/landing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<link href="css/normalize.css" rel="stylesheet" type="text/css">
<link href="css/webflow.css" rel="stylesheet" type="text/css">
<link href="css/reactive-kitten.webflow.css" rel="stylesheet" type="text/css">
<link href="css/for-business.css" rel="stylesheet" type="text/css">

<link rel="icon" type="image/png" sizes="16x16" href="/react-native-ui-kitten/docs/assets/img/favicon/favicon-1.png">
<link rel="icon" type="image/png" sizes="32x32" href="/react-native-ui-kitten/docs/assets/img/favicon/favicon-1@2x.png">
Expand Down Expand Up @@ -68,6 +69,30 @@ <h1 class="text-heading-1 default">UI Kitten 5.0</h1>
</div>
<div class="div-block-64"><img src="images/Artboard-1.png" srcset="images/Artboard-1-p-500.png 500w, images/Artboard-1-p-800.png 800w, images/Artboard-1-p-1080.png 1080w, images/Artboard-1-p-1600.png 1600w, images/Artboard-1.png 1699w" sizes="(max-width: 767px) 100vw, (max-width: 991px) 70vw, (max-width: 2831px) 60vw, 1699px" alt="" class="image-25"></div>
</div>

<div class="for-business-container">
<section class="for-business" aria-labelledby="for-business-heading">
<div class="for-business__left">
<h2 id="for-business-heading" class="for-business__heading">UI Kitten for business</h2>
<button id="for-business-dialog-button" class="for-business__submit button-giant-white-default">Submit your request</button>
</div>

<div class="for-business__right">
<p class="for-business__offerings-title">
If you use UI Kitten for business,
<span class="for-business__offerings-title__second-line">we'd like to offer you:</span>
</p>

<ul class="for-business__offerings">
<li class="for-business__offerings__offering">A custom template development</li>
<li class="for-business__offerings__offering">Developers, designers, analytics, QA, PM & marketing</li>
<li class="for-business__offerings__offering">UI Kitten customization services</li>
<li class="for-business__offerings__offering">The review of your project</li>
</ul>
</div>
</section>
</div>

<div class="what-is-ui-kitten">
<div class="div-block-24">
<div class="div-block-9">
Expand Down Expand Up @@ -284,19 +309,19 @@ <h6 class="text-subtitle-1">Need some help or found an issue?</h6>
<style>
.uik-dialog-container{position:fixed;top:0;left:0;height:100vh;width:100vw;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.35)}.uik-dialog-container[hidden]{display:none}.uik-dialog{width:25rem;background-color:#fff;border:.0625rem solid #e4e9f2;border-radius:.25rem;color:#222b45;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:.9375rem;font-weight:400;line-height:1.25rem}.uik-dialog-header{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #edf1f7;border-top-left-radius:.25rem;border-top-right-radius:.25rem;font-size:.9375rem;font-weight:600;line-height:1.5rem}.uik-dialog-button{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;margin-left:auto;padding:.6875rem .5625rem;background-color:transparent;border:.0625rem solid transparent;border-radius:.25rem;color:#8f9bb3;font-size:.875rem;line-height:1rem;font-weight:700;vertical-align:top;cursor:pointer}.uik-dialog-button svg{height:1.25rem;width:1.25rem;margin-top:-0.125rem;margin-bottom:-0.125rem}.uik-dialog-body{padding:1rem 1.5rem}.hs-custom-form .modal-header{display:none}.hs-custom-form .modal-body{padding-bottom:0}.hs-custom-form .actions{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}.hs-custom-form input.hs-input{margin:0;padding:.4375rem 1rem !important;min-height:1.6875rem;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#f7f9fc;border:1px solid #e4e9f2;border-radius:.25rem;color:#222b45;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:.9375rem;line-height:1.5rem;font-weight:600}.hs-custom-form .hs-richtext .modal-body{padding:0;margin-bottom:1rem}.hs-custom-form .hs-richtext .modal-body p{margin-bottom:0;text-align:left !important;height:auto}.hs-custom-form .hs-recaptcha{margin-top:1rem}.hs-custom-form .hs-error-msgs{list-style-type:none;padding:0}.hs-custom-form .hs-form-required,.hs-custom-form .hs-error-msg{margin-top:.5rem;color:#ff3d71}.hs-custom-form .hs_error_rollup{display:none}.hs-custom-form .hs-submit-btn{background-color:#f7f9fc;border:.0625rem solid #f7f9fc;border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;margin:2rem 0 0;padding:.6875rem 1.125rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;color:#222b45;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:.875rem;line-height:1rem;font-weight:700;text-align:center;text-transform:uppercase;text-decoration:none}label{font-weight:400}
</style>
<div id="uik-dialog-container" class="uik-dialog-container" hidden>
<div id="uik-dialog-container-template" class="uik-dialog-container" hidden>
<div class="uik-dialog">
<div class="uik-dialog-header">
Download
<button id="uik-dialog-close" class="uik-dialog-button" aria-label="close">
<button class="uik-dialog-button uik-dialog-close" aria-label="close">
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" class="eva eva-close" fill="currentColor"><g data-name="Layer 2"><g data-name="close"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"></rect><path d="M13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29-4.3 4.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4.29-4.3 4.29 4.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"></path></g></g></svg>
</button>
</div>
<div id="uik-dialog-body" class="uik-dialog-body"></div>
<div class="uik-dialog-body"></div>
</div>
</div>
<script>
!function(){var t=document.getElementById("uik-dialog-container"),e=document.getElementById("download-dialog-button"),d=document.getElementById("uik-dialog-close");e.addEventListener("click",function(){t.removeAttribute("hidden")}),d.addEventListener("click",function(){t.setAttribute("hidden","")}),hbspt.forms.create({portalId:"2452262",formId:"f6b2c0c6-d488-4944-bd8b-ee97bb5a8fd5",target:"#uik-dialog-body",submitButtonClass:"hs-submit-btn btn",css:"",cssClass:"hs-custom-form",redirectUrl:"https://github.com/akveo/react-native-ui-kitten"})}();
!function(){function t(t,e){var o=document.getElementById("uik-dialog-container-template").cloneNode(!0);o.removeAttribute("id"),o.querySelector(".uik-dialog-body").setAttribute("id",e.target.replace("#","")),document.body.appendChild(o);var d=document.getElementById(t),s=o.querySelector(".uik-dialog-close");d.addEventListener("click",function(){o.removeAttribute("hidden")},!1),s.addEventListener("click",function(){o.setAttribute("hidden","")},!1),hbspt.forms.create(e)}t("download-dialog-button",{portalId:"2452262",formId:"f6b2c0c6-d488-4944-bd8b-ee97bb5a8fd5",target:"#download-dialog-body",submitButtonClass:"hs-submit-btn btn",css:"",cssClass:"hs-custom-form",redirectUrl:"https://github.com/akveo/react-native-ui-kitten"}),t("for-business-dialog-button",{portalId:"2452262",formId:"27686f53-ce60-4a92-a789-fe684f6ad941",target:"#for-business-dialog-body",submitButtonClass:"hs-submit-btn btn",css:"",cssClass:"hs-custom-form"})}();
</script>
</body>
</html>
59 changes: 40 additions & 19 deletions docs/src/landing/js/download-dialog.js
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);
}
})();

0 comments on commit 4a117e7

Please sign in to comment.