Skip to content

Commit

Permalink
Merge pull request #97 from BVM-priv/redo-landing-page
Browse files Browse the repository at this point in the history
Apply changes to landing page
  • Loading branch information
gndelia authored Mar 1, 2024
2 parents 26b33be + 92e4559 commit 834afc6
Show file tree
Hide file tree
Showing 12 changed files with 189 additions and 615 deletions.
2 changes: 1 addition & 1 deletion landing/app.css

Large diffs are not rendered by default.

Binary file modified landing/favicon.ico
Binary file not shown.
Binary file removed landing/fonts/BricolageGrotesque_24pt-Bold.ttf
Binary file not shown.
125 changes: 0 additions & 125 deletions landing/fullview.min.css

This file was deleted.

13 changes: 0 additions & 13 deletions landing/fullview.min.js

This file was deleted.

5 changes: 0 additions & 5 deletions landing/fullview.min.js.map

This file was deleted.

Binary file added landing/github_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 23 additions & 17 deletions landing/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,40 @@
@tailwind components;
@tailwind utilities;

@font-face {
font-family: Bricolage Grotesque;
font-weight: 400;
src: url('./fonts/BricolageGrotesque_24pt-Bold.ttf');
#hubspot-target-form {
@apply w-full;
}

#fullview > section {
/* Overriding for iOS browsers with floating bar.
* Using !important because it's set with important in the original file...*/
height: 100dvh !important;
#hubspot-target-form > form {
@apply flex w-full flex-row lg:justify-center;
}

#hubspot-target-form h2 > strong {
@apply font-bricolage-grotesque relative w-fit text-3xl md:text-4xl xl:text-5xl;
#hubspot-target-form > form > div {
@apply flex-grow;
}

/* Hide the "Stay Connected" icon */
#hubspot-target-form form > div:first-child {
@apply hidden;
}

#hubspot-target-form input[type='email'] {
@apply w-full rounded-xl border-2 border-white bg-slate-50 px-2 py-3 text-sm font-normal lowercase text-neutral-400;
@apply w-full rounded-xl border-2 border-white bg-slate-50 px-2 py-2 text-sm font-normal lowercase text-neutral-400 outline-none placeholder:text-sm placeholder:capitalize;
}

/* Hide the "Email" label, placeholder added in hubspot.js */
#hubspot-target-form .hs-email > label {
@apply hidden;
}

#hubspot-target-form input[type='submit'] {
@apply bg-orange-650 hover:bg-orange-650/75 mt-6 w-full cursor-pointer rounded-2xl px-3 py-4 text-xs font-bold text-white md:mt-9 md:px-4 md:py-5 md:text-sm;
@apply -ml-14 w-[calc(100%+32px)] max-w-64 cursor-pointer rounded-lg bg-black px-4 py-2 text-base text-white hover:bg-black/75 lg:py-[6px] lg:text-lg xl:text-xl;
}

#hubspot-target-form .hs-email > label {
@apply block w-full text-left;
#hubspot-target-form .submitted-message {
@apply text-base text-neutral-400 lg:text-lg xl:text-xl;
}

#hubspot-target-form .hs-error-msg,
#hubspot-target-form .hs-form-required {
@apply text-orange-650;
#hubspot-target-form .hs-error-msg {
@apply text-orange-650 absolute left-0 translate-y-1 text-xs;
}
11 changes: 11 additions & 0 deletions landing/hubspot.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@
// required to apply custom styles in globals.css
css: '',
formId: 'f8a844d5-0803-482d-b43e-23b328a1cdbb',
inlineMessage: 'Thanks for joining the Hemi waitlist!',
onFormReady() {
// add the placeholder to the input
$('#hubspot-target-form input[type="email"]').attr(
'placeholder',
'Email',
)
},
onFormSubmitted() {
$('.join-message').css('visibility', 'hidden')
},
portalId: '21449954',
region: 'na1',
target: '#hubspot-target-form',
Expand Down
Loading

0 comments on commit 834afc6

Please sign in to comment.