Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 16 additions & 16 deletions assets/js/bundle.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions layouts/product/internal-developer-platforms.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ <h3 class="text-center mb-12">{{ .Params.case_studies.title }}</h3>
</div>
</section>

<section class="mx-auto max-w-7xl my-16">
<div class="card px-8 pt-8 pb-16">
<pulumi-value-calculator></pulumi-value-calculator>
</div>
</section>

<section id="how-it-works" class="container mx-auto my-16 pt-8">
<div class="max-w-5xl mx-auto text-center px-6">
<h3>How Pulumi for Platform Teams works</h3>
Expand Down
13 changes: 13 additions & 0 deletions theme/stencil/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ export namespace Components {
interface PulumiUserToggle {
"userId": string;
}
interface PulumiValueCalculator {
}
interface PulumiWebinarFormSelect {
"labelClass"?: string;
"selectClass"?: string;
Expand Down Expand Up @@ -455,6 +457,12 @@ declare global {
prototype: HTMLPulumiUserToggleElement;
new (): HTMLPulumiUserToggleElement;
};
interface HTMLPulumiValueCalculatorElement extends Components.PulumiValueCalculator, HTMLStencilElement {
}
var HTMLPulumiValueCalculatorElement: {
prototype: HTMLPulumiValueCalculatorElement;
new (): HTMLPulumiValueCalculatorElement;
};
interface HTMLPulumiWebinarFormSelectElement extends Components.PulumiWebinarFormSelect, HTMLStencilElement {
}
var HTMLPulumiWebinarFormSelectElement: {
Expand Down Expand Up @@ -503,6 +511,7 @@ declare global {
"pulumi-tooltip": HTMLPulumiTooltipElement;
"pulumi-top-button": HTMLPulumiTopButtonElement;
"pulumi-user-toggle": HTMLPulumiUserToggleElement;
"pulumi-value-calculator": HTMLPulumiValueCalculatorElement;
"pulumi-webinar-form-select": HTMLPulumiWebinarFormSelectElement;
}
}
Expand Down Expand Up @@ -692,6 +701,8 @@ declare namespace LocalJSX {
interface PulumiUserToggle {
"userId"?: string;
}
interface PulumiValueCalculator {
}
interface PulumiWebinarFormSelect {
"labelClass"?: string;
"selectClass"?: string;
Expand Down Expand Up @@ -739,6 +750,7 @@ declare namespace LocalJSX {
"pulumi-tooltip": PulumiTooltip;
"pulumi-top-button": PulumiTopButton;
"pulumi-user-toggle": PulumiUserToggle;
"pulumi-value-calculator": PulumiValueCalculator;
"pulumi-webinar-form-select": PulumiWebinarFormSelect;
}
}
Expand Down Expand Up @@ -787,6 +799,7 @@ declare module "@stencil/core" {
"pulumi-tooltip": LocalJSX.PulumiTooltip & JSXBase.HTMLAttributes<HTMLPulumiTooltipElement>;
"pulumi-top-button": LocalJSX.PulumiTopButton & JSXBase.HTMLAttributes<HTMLPulumiTopButtonElement>;
"pulumi-user-toggle": LocalJSX.PulumiUserToggle & JSXBase.HTMLAttributes<HTMLPulumiUserToggleElement>;
"pulumi-value-calculator": LocalJSX.PulumiValueCalculator & JSXBase.HTMLAttributes<HTMLPulumiValueCalculatorElement>;
"pulumi-webinar-form-select": LocalJSX.PulumiWebinarFormSelect & JSXBase.HTMLAttributes<HTMLPulumiWebinarFormSelectElement>;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
@import "../../../../src/scss/colors";
.value-calculator {
margin-right: 36px;
margin-left: 36px;

h3 {
text-align: center;
color: #000;
font-family: "Gilroy";
font-size: 40px;
font-weight: 500;
}

h5 {
text-align: center;
font-family: "Gilroy";
}

.content {
display: flex;
flex-direction: row;
gap: 60px;
}

.main-content {
margin-top: 24px;
}

.slider {
display: flex;
flex-direction: row;
}

.field {
.details {
margin: 24px 0 24px 0;
display: flex;
flex-direction: row;
align-content: center;
}

.title {
color: #131314;
font-family: "Gilroy";
font-size: 24px;
font-weight: 500;
}

.info-side {
width: 40%;
}

.slider-side {
width: 60%
}

.input {
width: 140px;
padding: 8px 12px;
border-radius: 4px;
border: 1px solid #bebfc9;
height: 48px;

input {
all: unset;
width: 80%;
}
}

.rainbow-text {
font-family: "Gilroy";
font-size: 48px;
font-weight: 500;
background: linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-moz-background-clip: text;
-moz-text-fill-color: transparent;

text-shadow: none;
}
}

// Remove number incrementer from input
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type="number"] {
-moz-appearance: textfield;
}

.assumptions {
border-radius: 4px;
border: 1px solid #805ac3;
display: flex;
flex-direction: column;
width: 100%;
padding: 24px;

&.collapsed {
&:hover {
background: rgba(242, 239, 249, 0.5);
}
}

i {
color: #805ac3;
height: 24px;
width: 24px;
font-size: 24px;
}

.default {
display: flex;
align-items: center;
gap: 24px;

.subtitle {
font-family: "Inter";
font-size: 16px;
font-weight: 400;
line-height: normal;
}
}

.field {
display: none;
flex-direction: column;
&.visible {
display: flex;
}

.percent {
color: lightgray;
}

.details {
display: flex;
flex-grow: 1;
color: #2f3032;

.title {
font-family: "Gilroy";
font-size: 24px;
font-weight: 400;
margin: 12px 0 12px 0;
}

.description {
margin-bottom: 16px;
}
}
}
}

.range {
-webkit-appearance: none;
-moz-appearance: none;
display: block;
margin-top: 32px;
}

// Custom slider appearance
input[type="range"]::-webkit-slider-runnable-track {
-webkit-appearance: none;
border-radius: 10px;
background: #4776e6; /* fallback for old browsers */
background: linear-gradient(
90deg,
#f7bf2a 0%,
#f26e7e 18.23%,
#be5188 38.02%,
#8a3391 53.65%,
#805ac3 74.48%,
#7682f4 100%
);
height: 7.5px;
}

.ticks {
height: 16px;
margin-top: 4px;
padding-left: 3px;
padding-right: 3px;
background: linear-gradient(to right,
#aaa,
#aaa 0.1%,
#fff 0.1%,
#fff 19.9%,
#aaa 19.9%,
#aaa 20.1%,
#fff 20.1%,
#fff 39.9%,
#aaa 39.9%,
#aaa 40.1%,
#fff 40.1%,
#fff 59.9%,
#aaa 59.9%,
#aaa 60.1%,
#fff 60.1%,
#fff 79.9%,
#aaa 79.9%,
#aaa 80.1%,
#fff 80.1%,
#fff 99.9%,
#aaa 99.9%,
#aaa 100%);
}

input[type="range"]:focus {
outline: none;
}

input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
border: 2px solid;
border-radius: 25%;
height: 24px;
width: 12px;
bottom: 8px;
position: relative;
background-color: rgba(242, 239, 249, 0.8);
cursor: -webkit-grab;
-webkit-transition: border 1000ms ease;
transition: border 1000ms ease;
}

.range.purple::-webkit-slider-thumb {
border-color: #805ac3;
}

}

@media(max-width: 1280px) {
.value-calculator {
.field {
.info-side {
width: 40%;
}

.slider-side {
width: 60%
}
}
}
}

@media(max-width: 1024px) {
.value-calculator {
.field {
.details {
flex-direction: column;
margin-top: 24px;
}
.info-side {
width: 100%;
}

.slider-side {
width: 100%;
}
}
.details {
flex-direction: column;
}
.ticks {
display: none;
}
}
}

@media(max-width: 640px) {
.value-calculator {
.field {
.details {
flex-direction: column;
margin-top: 24px;
}
.info-side {
width: 100%;
}

.slider-side {
width: 100%;
}
}
}
}
Loading
Loading