Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
3eacc5f
Add section to the body tag
cnunciato Jun 17, 2019
bd7a56f
Move padding and max-width from base template to pages
cnunciato Jun 17, 2019
fd5f736
Only make anchor links in the docs and blog sections
cnunciato Jun 17, 2019
1008d16
Remove unnecessary style
cnunciato Jun 17, 2019
b261593
Add Cloudformation and Terraform migration pages
cnunciato Jun 18, 2019
3ec508c
Pull common sections into partials
cnunciato Jun 18, 2019
09a93fc
Extract HubSpot form, add AWS partner page
cnunciato Jun 18, 2019
c145acb
Add GCP and Azure partner pages
cnunciato Jun 18, 2019
b020ee5
We actually do need this
cnunciato Jun 19, 2019
6f6036b
About us page, with configurable HubSpot form styling
cnunciato Jun 19, 2019
6ba7c76
Contact Us page
cnunciato Jun 19, 2019
5e95b38
Learn-more partial
cnunciato Jun 19, 2019
e1f05ab
Support page
cnunciato Jun 19, 2019
04c2e64
Topic pages
cnunciato Jun 19, 2019
d64e564
Webinar pages, now with extracted common layout
cnunciato Jun 20, 2019
b963ca1
Mobile padding for topic pages
cnunciato Jun 20, 2019
5b3fd2e
More mobile padding
cnunciato Jun 20, 2019
e7da3a7
Adjust responsive layouts on the About page
cnunciato Jun 20, 2019
74fd5f5
Add Pricing page, refactor HubSpot form partial to handle newsletter
cnunciato Jun 20, 2019
1e771d4
Delete utility-links
cnunciato Jun 20, 2019
b909eca
Add Product page, Crosswalk placeholder
cnunciato Jun 20, 2019
3f8d3a1
Pricing heading tweak
cnunciato Jun 20, 2019
2277be3
Home page and some additional minor adjustments
cnunciato Jun 21, 2019
8ec2583
HubSpot styling fix
cnunciato Jun 21, 2019
34ea3ce
Add Why Pulumi
cnunciato Jun 21, 2019
412d66c
Don’t commit this yet
cnunciato Jun 21, 2019
1bdac11
Change an href
cnunciato Jun 21, 2019
0181529
Add POV page, single template
cnunciato Jun 21, 2019
88e9625
Add Delivering Cloud Native page
cnunciato Jun 21, 2019
478d9ee
Add a whitepaper layout
cnunciato Jun 21, 2019
cd3f3a2
Whitepaper styles
cnunciato Jun 21, 2019
0f86e0a
Add Crosswalk page
cnunciato Jun 21, 2019
0ad3467
Add GitHub Actions, delete unused
cnunciato Jun 22, 2019
8223c0d
Delete unused
cnunciato Jun 22, 2019
d108407
Buttons, colors and touchups
cnunciato Jun 23, 2019
4596435
Post-rebase adjustments
cnunciato Jun 23, 2019
a8adc7d
Update data/newsroom.toml
cnunciato Jun 24, 2019
bf3133e
Update data/newsroom.toml
cnunciato Jun 24, 2019
99a11bb
Update data/newsroom.toml
cnunciato Jun 24, 2019
da187b6
Update data/newsroom.toml
cnunciato Jun 24, 2019
77075ba
Update data/newsroom.toml
cnunciato Jun 24, 2019
521ccf5
Update layouts/partials/hubspot-form.html
cnunciato Jun 24, 2019
3d832fa
Update layouts/partials/blog/sidebar.html
cnunciato Jun 24, 2019
589bc1e
Update layouts/taxonomy/author.html
cnunciato Jun 24, 2019
f07295d
Address feedback
cnunciato Jun 24, 2019
b226a11
Restore anchors and guest attribution
cnunciato Jun 24, 2019
1ae03f6
Fix Crosswalk image reference
cnunciato Jun 24, 2019
a207d7a
Fix Mercedes-Benz image ref
cnunciato Jun 24, 2019
d152ef7
Remove _pulumi.scss
cnunciato Jun 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 24 additions & 34 deletions assets/config/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,39 @@ const brand = {
purple: "#512668",
orange: "#ee975c",
green: "#2fc89f",
blue: "#3ec2f8",
gray: "#f1f1f1",
blue: "#52a6da",
}

const purple = {
100: "#ddcae8",
200: "#9c76b3",
300: "#83549c",
400: "#6c348a",
500: brand.purple,
600: "#421d57",
700: "#371a47",
800: "#2a1337",
900: "#180b1f",
}

// TBD: Orange and green scales. (Using defaults for now.)

const blue = {
100: "#C4EEFF",
300: "#94E1FF",
100: "#c4eeff",
200: "#abe7ff",
300: "#94e1ff",
400: "#63d0ff",
500: brand.blue,
700: "#238FBA",
900: "#0F2E3B",
600: "#3182ce",
700: "#1873bd",
800: "#0a4970",
900: "#0f2e3b",
}

const orange = defaultTheme.colors.orange;
const green = defaultTheme.colors.green;
const gray = defaultTheme.colors.gray;

module.exports = {
theme: {

Expand All @@ -50,34 +63,11 @@ module.exports = {
},

colors: {
purple: {
100: purple["100"],
300: purple["300"],
500: purple["500"],
default: purple["500"],
700: purple["700"],
900: purple["900"],
},
blue: {
100: blue["100"],
300: blue["300"],
500: blue["500"],
default: blue["500"],
700: blue["700"],
900: blue["900"],
},
green: {
default: brand.green,
...defaultTheme.colors.green,
},
orange: {
default: brand.orange,
...defaultTheme.colors.orange,
},
gray: {
default: brand.gray,
...defaultTheme.colors.gray,
},
purple,
blue,
orange,
green,
gray,
},
},
},
Expand Down
53 changes: 2 additions & 51 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ function generateMiniToc() {
}

(function ($) {
//----------------------------------------
// Essentials
//----------------------------------------
var windowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;

// Set up toggle functionality.
bindToggles(".toggle");
Expand All @@ -47,54 +43,9 @@ function generateMiniToc() {
// Create a mini TOC if desired.
generateMiniToc();

// breakpoints
var $screen_xxs = 320;
var $screen_xs = 480;
var $screen_sm = 576;
var $screen_md = 768;
var $screen_lg = 991;
var $screen_xlg = 1200;

// find out if is touch device
function is_touch_device() {
return (('ontouchstart' in window)
|| (navigator.MaxTouchPoints > 0)
|| (navigator.msMaxTouchPoints > 0));
//navigator.msMaxTouchPoints for microsoft IE backwards compatibility
}

// Add slideDown animation to Bootstrap dropdown when expanding.
$('.dropdown:not(.main-nav-wrapper-wrapper)').on('show.bs.dropdown', function () {
$(this).find('.dropdown-menu').first().stop(true, true).slideDown();
});

// Add slideUp animation to Bootstrap dropdown when collapsing.
$('.dropdown:not(.main-nav-wrapper-wrapper)').on('hide.bs.dropdown', function () {
$(this).find('.dropdown-menu').first().stop(true, true).slideUp();
});

// mobile dropdown
$('.main-header .dropdown').on('show.bs.dropdown', function () {
var windowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
if (windowWidth < $screen_md) {
$('body').addClass('no-scroll');
}
}).on('hide.bs.dropdown', function () {
$('body').removeClass('no-scroll');
});

var originalWindowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
$(window).resize(function () {
var windowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;

//prevent functions from recalculating on scroll on mobile. when scrolling on iphone, the bottom appears/disappears and the browser thinks this is resizing
//execute these functions on width resize only
if (windowWidth != originalWindowWidth) { //if width resized
}
});

// Toggle the mobile menu.
// Mobile menu toggle.
$(".nav-header-toggle").click(function() {
$(".nav-header-items").toggleClass("hidden");
});

}(jQuery));
64 changes: 59 additions & 5 deletions assets/sass/_buttons.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,69 @@
@import "colors";
@import "mixins";

.btn {
@apply py-2 px-4 rounded text-white uppercase bg-blue;
@include transition;

@apply cursor-pointer text-sm whitespace-no-wrap uppercase py-2 px-4 rounded;
@apply bg-blue-600 border-2 border-blue-600 font-bold text-white;

&:hover {
@apply bg-blue-300;
@apply bg-blue-500 text-white;
}

&:active {
@apply bg-blue-100;
@apply bg-blue-500;
}
}

.btn-cta {
@apply bg-orange;
.btn-sm {
@apply text-xs;
}

.btn-lg {
@apply btn py-3 px-5;
}

.btn-orange {
@apply bg-orange-500 border-orange-600;

&:hover {
@apply bg-orange-600 border-orange-700;
}
}

.btn-purple {
@apply bg-purple-500 border-purple-500;

&:hover {
@apply bg-purple-200 border-purple-700;
}
}

.btn-white {
@apply bg-white text-gray-900 border-white;

&:hover {
@apply bg-gray-300 text-gray-900;
}
}

.btn-translucent {
background-color: rgba($brand-blue, 0.3);
border-color: rgba($brand-blue, 0.5);

&:hover {
background-color: rgba($brand-blue, 0.7);
border-color: $brand-blue;
}
}

.btn-orange-translucent {
background-color: rgba($brand-orange, 0.3);
border-color: rgba($brand-orange, 0.5);

&:hover {
background-color: rgba($brand-orange, 0.7);
border-color: $brand-orange;
}
}
22 changes: 5 additions & 17 deletions assets/sass/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,15 @@ $black: #000;
$white: #fff;

$brand: (
"purple": "#512668",
"orange": "#ee975c",
"green": "#2fc89f",
"blue": "#3ec2f8",
"purple": #512668,
"orange": #ee975c,
"green": #2fc89f,
"blue": #5fb2df,
);

$brand-purple: map-get($brand, "purple");
$brand-orange: map-get($brand, "orange");
$brand-green: map-get($brand, "green");
$brand-blue: map-get($brand, "blue");

$gray: (
100: '#f7fafc',
200: '#edf2f7',
300: '#e2e8f0',
400: '#cbd5e0',
500: '#a0aec0',
600: '#718096',
700: '#4a5568',
800: '#2d3748',
900: '#1a202c',
);

$border-gray: map-get($gray, 100);
$border-gray: #f1f1f1;
2 changes: 1 addition & 1 deletion assets/sass/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,400|Ubuntu:400,700');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,400,700|Ubuntu:400,700');
@import url('https://fonts.googleapis.com/css?family=PT+Mono');
93 changes: 93 additions & 0 deletions assets/sass/_hubspot.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
.hs-form {
@apply text-sm;

fieldset {
@apply block;
margin: 1rem 0 !important;

&:not(.form-columns-1) > .field:first-child {
@apply pr-2;
}

label {
@apply block mb-2 font-normal;
}

.hs-input {
@apply block;
width: 100% !important;
}

.hs-form-required {
@apply ml-1 text-red-500;
}

.hs-richtext p {
@apply opacity-50 text-xs font-normal my-0;

a {
@apply underline;
}
}

input, textarea {
@apply border border-gray-300 rounded p-2 bg-white;
}
}

input[type="submit"] {
@apply btn btn-orange-translucent;
}

.hs-error-msgs {
@apply list-none mt-2 p-0 text-red-500 text-xs;

label {
@apply mb-0;
}
}

.hs_error_rollup {
@apply hidden;
}

&-fg-light {
@apply text-gray-100;

a {
@apply text-gray-100;
}
}

&-fg-dark {
@apply text-gray-700;

input {
&.hs-button {
@apply btn;
}
}
}

&.newsletter {
@apply flex items-start;

label:not(.hs-error-msg) {
@apply hidden;
}

input {
@apply block py-3 px-4 rounded-l rounded-r-none text-gray-600 w-56;

&.hs-button {
@apply block btn btn-lg btn border-none py-3 px-4 rounded-r rounded-l-none w-auto;
}
}
}

&.pricing {
label {
@apply font-normal;
}
}
}
Loading