Skip to content

Commit

Permalink
feat(site): introduce book a demo page (#490)
Browse files Browse the repository at this point in the history
close #388

Co-authored-by: brian-mulier-p <[email protected]>
  • Loading branch information
mageexcel and brian-mulier-p authored Sep 11, 2023
1 parent 1c368dc commit bd9d98d
Show file tree
Hide file tree
Showing 9 changed files with 275 additions and 4 deletions.
120 changes: 120 additions & 0 deletions components/demo/Headers.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<template>
<div class="container-fluid">
<div class="hero container">
<div class="row">
<div class="col-12 col-md-5 position-relative">
<img class="img-fluid" src="/demo/background.svg" alt="Illustration of Kestra's logo with a dark background" data-aos="zoom-in"/>
<div class="schedule-demo position-absolute">
<div class="subtitle">SCHEDULE A DEMO</div>
<h1>Ready to See Kestra in Action?</h1>
<p class="description">Connect with one of our Product Specialist to get the best out of our product and its value proposition</p>
</div>
</div>
<div class="col-12 col-md-6 align-items-center d-flex">
<div class="card">
<div class="card-body">
<div class="card-text hs-form-text">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container text-center">
<p class="companies-title" data-aos="zoom-in">
Loved & trusted by leading enterprises worldwide
</p>
</div>
<div class="container-fluid pt-4 pb-4">
<Companies />
</div>
</div>
</template>

<script setup>
import Companies from "../layout/Companies.vue";
const newForm = ref()
onMounted(() => {
newForm.value = hbspt.forms.create({ region: "eu1", portalId: "27220195", formId: "d8175470-14ee-454d-afc4-ce8065dee9f2" })
const hsForm = document.getElementById(`hbspt-form-${newForm.value.instanceId}`)
const cardText = document.getElementsByClassName("hs-form-text").item(0)
const currentParent = hsForm.parentNode;
currentParent.removeChild(hsForm);
cardText.appendChild(hsForm);
})
onBeforeUnmount(() => {
const hsForm = document.getElementById(`hbspt-form-${newForm.value.instanceId}`)
hsForm.parentNode.removeChild(hsForm)
})
</script>

<style scoped lang="scss">
@import "../../assets/styles/variable";
.container-fluid {
background: $purple-16;
color: var(--bs-white);
overflow: hidden;
.hero {
padding-top: 4rem !important;
.card {
box-shadow: none !important;
width: 100%;
}
.schedule-demo {
top: 50%;
left: 10%;
right: 10%;
h1 {
padding-bottom: 0 !important;
line-height: 4rem;
}
div.subtitle {
font-size: $font-size-xl;
color: var(--bs-pink);
font-weight: 700;
text-transform: uppercase;
font-family: var(--bs-font-monospace);
display: inline;
line-height: 1.875rem;
}
p.description {
line-height: 2rem;
font-size: $font-size-xl;
width: 85%;
}
}
.img-fluid {
max-height: 100%;
max-width: 100%;
}
}
.companies-title {
position: relative;
&:after {
content: '';
position: absolute;
left: 50%;
bottom: calc(-1 * var(--spacer));
transform: translateX(-50%);
display: inline-block;
height: 2px;
width: 51px;
background: var(--bs-pink);
}
}
@include media-breakpoint-down(lg) {
.schedule-demo {
position: relative !important;
inset: 0 !important;
}
}
}
</style>
3 changes: 3 additions & 0 deletions components/home/Testimonials.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
name: "Daniel Theodorus",
link: "https://www.linkedin.com/in/hamrio/",
designation: "IT Project Manager @ Airpaz",
enterpriseLogo: "/landing/enterprises/airpaz.svg",
alt: "Picture of Daniel testimony",
},
{
Expand All @@ -73,6 +74,7 @@
name: "Michael Reynolds",
link: "https://www.linkedin.com/in/michael-reynolds-a0a32a28/",
designation: "Lead Research Engineer @ Two Six Labs",
enterpriseLogo: "/landing/enterprises/twosix.svg",
alt: "Picture of Michael testimony",
},
{
Expand All @@ -97,6 +99,7 @@
name: "Oussama Bakkali",
link: "https://www.linkedin.com/in/oussama-bakkali-949708b6/",
designation: "Data Engineer DevOps @ ADEO Services",
enterpriseLogo: "/landing/enterprises/adeo-services.svg",
alt: "Picture of Ousama testimony",
},
{
Expand Down
14 changes: 13 additions & 1 deletion components/home/TestimonialsItem.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<template>
<div class="card mb-3">
<div class="enterprise-logo position-absolute" v-if="item.enterpriseLogo">
<img :src="item.enterpriseLogo" :alt="item.enterpriseLogo.replace('/landing/enterprises/', '').replace('.svg', '-logo')">
</div>
<div class="card-body">
<p>
{{ item.message }}
</p>
<div class="footer">
<img :src="item.profile" width="50" :alt="item.alt" />
<img :src="item.profile" width="50" :alt="item.alt" />
<span>
<a :href="item.link" target="_blank">{{ item.name }}</a><br />
{{ item.designation }}
Expand All @@ -24,3 +27,12 @@
}
}
</script>

<style lang="scss" scoped>
.card {
.enterprise-logo {
right: 12px;
top: 12px;
}
}
</style>
9 changes: 6 additions & 3 deletions components/layout/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,12 @@
<Github /> Star us
</a>

<a @click="globalClick(true)" class="d-block d-sm-inline-block mb-1 mn-sm-0 btn btn-sm btn-dark me-0 me-sm-2 d-inline-block d-lg-none d-xxl-inline-block" target="_blank" href="https://meetings-eu1.hubspot.com/quentin-sinig/meeting-link-demo">
<CalendarOutline /> Book a demo
</a>
<NuxtLink @click="globalClick(true)" class="d-block d-sm-inline-block mb-1 mn-sm-0 btn btn-sm btn-dark me-0 me-sm-2 d-inline-block d-lg-none d-xxl-inline-block" href="/demo">
<span>
<CalendarOutline />
Book a demo
</span>
</NuxtLink>

<NuxtLink @click="globalClick(true)" class="d-block d-sm-inline-block mb-1 mn-sm-0 btn btn-primary btn-sm" href="/docs/getting-started">
<span>
Expand Down
6 changes: 6 additions & 0 deletions pages/demo.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<div>
<DemoHeaders />
<HomeTestimonials />
</div>
</template>
87 changes: 87 additions & 0 deletions public/demo/background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/landing/enterprises/adeo-services.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/landing/enterprises/airpaz.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

1 comment on commit bd9d98d

@vercel
Copy link

@vercel vercel bot commented on bd9d98d Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kestra-io – ./

kestra-io-git-main-kestra.vercel.app
kestra-io.vercel.app
kestra-io-kestra.vercel.app

Please sign in to comment.