Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website: Add embedded video to /start flow. #24979

Merged
merged 4 commits into from
Dec 20, 2024
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
35 changes: 31 additions & 4 deletions website/assets/styles/pages/start.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,28 @@
padding-top: 32px;
margin-right: 20px;
}
[purpose='form-with-video-container'] {
width: 100%;
max-width: 1200px;
padding-left: 64px;
padding-right: 64px;
padding-top: 32px;
}
[purpose='embedded-video'] {
position: relative;
margin-bottom: 40px;
width: 100%;
padding-bottom: 56%;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
border-radius: 12px;
}
}
[purpose='form-tip'] {
margin-top: 32px;
padding: 16px;
Expand Down Expand Up @@ -321,11 +343,16 @@
padding-top: 60px;
padding-left: 40px;
padding-right: 40px;
max-width: 600px;
// max-width: 600px;
}
[purpose='form-with-video-container'] {
padding: 0;
margin-left: auto;
margin-right: auto;

}
[purpose='form-container'] {
padding: 0;
// min-width: unset;
max-width: 504px;
margin-left: auto;
margin-right: auto;
Expand All @@ -341,7 +368,7 @@
padding-left: 24px;
padding-right: 24px;
}
[purpose='form-container'] {
[purpose='form-container'], [purpose='form-with-video-container'] {
min-width: unset;
width: 100%;
}
Expand All @@ -360,7 +387,7 @@
margin-right: unset;
margin-bottom: 20px;
}
[purpose='form-container'] {
[purpose='form-container'], [purpose='form-with-video-container'] {
width: 100%;
margin-left: 0;
margin-right: 0;
Expand Down
13 changes: 7 additions & 6 deletions website/views/pages/start.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div id="start" v-cloak>
<div class="d-flex container d-flex flex-row" purpose="page-container">
<div purpose="form-container">
<div :purpose="[[currentStep !== 'is-it-any-good' ? 'form-container' : 'form-with-video-container']]">
<%// ┌─┐┌┬┐┌─┐┬─┐┌┬┐
// └─┐ │ ├─┤├┬┘ │
// └─┘ ┴ ┴ ┴┴└─ ┴ %>
Expand Down Expand Up @@ -439,13 +439,14 @@
<div purpose="form-progress-bar"><div purpose="current-progress" style="width: 50%"></div></div>
<img purpose="success-icon" alt="🚀" src="/images/[email protected]">
</div>
<h2>Is it any good?</h2>
<div purpose="start-cards">
<a purpose="card" class="w-100" href="https://youtu.be/QpdRADHWP_o?feature=shared&t=1333" target="_blank">
<h2>Fleet in 19 minutes</h2>
<div purpose="embedded-video">
<iframe src="https://www.youtube.com/embed/07ErAAahRsg?rel=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<!-- <a purpose="card" class="w-100" href="https://youtu.be/QpdRADHWP_o?feature=shared&t=1333" target="_blank">
<img alt="Watch a demo" src="/images/[email protected]">
<h2>Watch a demo</h2>
<p>See what Fleet can do</p>
</a>
</a> -->
</div>
<p>Got questions? <a purpose="contact-link" href="/contact">Ask us anything</a>.</p>

Expand Down Expand Up @@ -760,7 +761,7 @@
</ajax-form>
</div>
</div>
<div purpose="form-image" :class="currentStep === 'start' ? 'stage-one' : ['thanks-for-checking-out-fleet'].includes(currentStep) ? 'cloud-city' : ['2 - Aware'].includes(psychologicalStage) ? 'stage-two' : ['3 - Intrigued'].includes(psychologicalStage) ? 'stage-three' : ['4 - Has use case'].includes(psychologicalStage) ? 'stage-four' : ['5 - Personally confident'].includes(psychologicalStage) ? 'stage-five' : ['6 - Has team buy-in'].includes(psychologicalStage) ? 'stage-six' : 'd-none w-0'">
<div purpose="form-image" :class="currentStep === 'is-it-any-good' ? 'd-none w-0' : currentStep === 'start' ? 'stage-one' : ['thanks-for-checking-out-fleet'].includes(currentStep) ? 'cloud-city' : ['2 - Aware'].includes(psychologicalStage) ? 'stage-two' : ['3 - Intrigued'].includes(psychologicalStage) ? 'stage-three' : ['4 - Has use case'].includes(psychologicalStage) ? 'stage-four' : ['5 - Personally confident'].includes(psychologicalStage) ? 'stage-five' : ['6 - Has team buy-in'].includes(psychologicalStage) ? 'stage-six' : 'd-none w-0'">
</div>
</div>
</div>
Expand Down
Loading