Website: Update hover state on articles sidebar CTA, fix alignment of newsletter banner (#23638)

Changes:
- Added a hover state to the swag request CTA on the device-management
page
- Made the entire sidebar cta on article pages clickable.
- Updated the alignment of the newsletter banner on the homepage.
This commit is contained in:
Eric 2024-11-07 18:03:12 -06:00 committed by GitHub
parent c1ed73a8b4
commit 59d956df3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 22 additions and 5 deletions

View file

@ -75,6 +75,9 @@ parasails.registerPage('basic-article', {
window.open('https://fleetdm.com/rss/'+articleCategory, '_blank');
}
},
clickGotoStart: function() {
this.goto('/register');
},
handleScrollingInArticle: function () {
let rightNavBar = document.querySelector('div[purpose="right-sidebar"]');
let scrollTop = window.pageYOffset;

View file

@ -288,6 +288,7 @@
background: #FFF;
min-height: 290px;
text-align: center;
cursor: pointer;
margin-top: 24px;
margin-bottom: 8px;
max-width: 256px;

View file

@ -136,6 +136,9 @@
border-radius: 8px;
border: 1px solid #E2E4EA;
background: #F9FAFC;
&:hover {
box-shadow: 0px 0px 0px 3px rgba(0, 0, 0, 0.03);
}
img {
margin-right: 16px;
}

View file

@ -762,6 +762,11 @@
[purpose='newsletter-form-input']::placeholder {
font-size: 14px;
}
[parasails-component='ajax-button'] {
.button-loader {
margin: 0;
}
}
}
[purpose='video-modal'] {
[purpose='modal-dialog'] {

View file

@ -65,7 +65,7 @@
<div purpose="edit-link">
<a purpose="sidebar-link" :href="'https://github.com/fleetdm/fleet/edit/main/articles/'+thisPage.sectionRelativeRepoPath"> <img src="/images/icon-edit-16x16@2x.png" alt="Suggest an edit">Suggest an edit</a>
</div>
<div purpose="sidebar-cta">
<div purpose="sidebar-cta" @click="clickGotoStart()">
<a href="<% if(typeof me === 'undefined') {%>/register<% } else { %>/start<% } %>">
<div purpose="cta-image"></div>
<div purpose="cta-text">

View file

@ -407,11 +407,16 @@
<parallax-city></parallax-city>
<div purpose="homepage-content" class="container py-4 my-0 my-md-2">
<div purpose="newsletter-banner">
<div class="d-flex flex-md-row flex-column justify-content-between">
<div class="d-flex flex-md-row flex-column justify-content-between align-items-md-center">
<div purpose="newletter-form-text" class="d-flex flex-row align-items-center">
<p v-if="formErrors.emailAddress || cloudError" class="text-danger" focus-first>Please enter a valid work email</p>
<p v-else-if="cloudSuccess">Thanks for subscribing!</p>
<p v-else><strong>Curious?</strong> Get product updates and news</p>
<p v-if="formErrors.emailAddress || cloudError" class="text-danger" focus-first>
Please enter a valid work email
</p>
<p v-else-if="cloudSuccess">
Thanks for subscribing!</p>
<p v-else>
<strong>Curious?</strong> Get product updates and news
</p>
</div>
<ajax-form class="d-flex flex-md-row flex-column" action="createOrUpdateOneNewsletterSubscription" :form-errors.sync="formErrors" :form-data="formData" :form-rules="formRules" :syncing.sync="syncing" :cloud-error.sync="cloudError" @submitted="submittedNewsletterForm()">
<div class="d-flex flex-column w-100">