William Sonoma notes, blacklane templates are almost done.

This commit is contained in:
Norm Rasmussen
2023-11-21 17:30:05 -05:00
parent 16d09ae658
commit be3cb15494
5 changed files with 374 additions and 165 deletions

View File

@ -0,0 +1,118 @@
<div class="sign-up-follow-up-container" onload="">
<div class="sign-up-follow-up-content">
<h1 class="sign-up-follow-up-prompt">Please select your region: </h1>
<div class="region-container">
<a class="info-group-option" href="https://blacklane-chauffeur.northpass.com/g/d3e0178633f329a3efb0e5344c7fc979d37fa7f8">
Europe, Middle East, Africa, & Asia-Pacific
</a>
<a class="info-group-option" href="https://blacklane-chauffeur.northpass.com/g/4a3da78266888b8523905f23cef9f2736d2d5178">
North & South America
</a>
</div>
</div>
</div>
<div class="logo-container">
<div class="logo-itself">
<img class="logo-img" src="https://s3.amazonaws.com/static.northpass.com/Blacklane/Logo+no+claim+black.png" >
</div>
</div>
<style>
.logo-img {
width: 500px;
}
.logo-container {
position: fixed;
bottom: 0;
right: 0;
}
.logo-itself {
position: absolute;
bottom: 0;
right: 0;
padding: 35px;
}
.region-container {
border: none;
padding: 20px;
width: 100%;
display: flex;
justify-content: space-evenly;
}
.info-group-option {
text-transform: none;
font-size: 20px;
border-radius: 10px;
background-color: black;
color: white;
max-width: 350px;
width: 300px;
height: 100px;
line-height: normal;
text-align: center;
flex-wrap: nowrap;
align-items: center;
display: flex;
justify-content: center;
text-decoration: none;
}
.sign-up-follow-up-container{
align-items: center;;
background: #F7F7F7;
display: flex;
flex-direction: row;
min-height: 100%;
min-width: 100%;
}
.sign-up-follow-up-content{
align-items: center;
display: flex;
flex-direction: column;
margin: 1rem 0;
text-align: center;
width: 100%;
}
</style>
<script>
let submitData = async () => {
//if(
// ($(".sign-up-region")[0].value.length > 0)
// ){
function webhookCaller(){
return new Promise(function(res, rej) {
let xhr = new XMLHttpRequest();
url = "https://webhooks.workato.com/webhooks/rest/a36b1f7c-07c7-48ff-bc0f-cb3777d02c81/blacklane-new-driver-region-seg";
xhr.addEventListener("load", e => {
window.location.replace('/app/');
//window.location.replace('/app');
});
xhr.open("POST", url, true);
xhr.send(JSON.stringify({
email: '{{ current_person.email }}',
name: "{{ current_person.first_name }} {{ current_person.last_name }}",
user_id: '{{ current_person.id }}',
user_region: $(".sign-up-region")[0].value,
}))
})
}
try {
await webhookCaller()
.then((res) => {
window.location.replace('/app/dashboard')
})
} catch(err) {
console.log(err)
}
}
}
</script>