Skip to content

Commit 89c1597

Browse files
committed
feat: move from mailerlite to convertkit for newsletter sending (update form and styling)
1 parent f6f9c8f commit 89c1597

File tree

2 files changed

+56
-14
lines changed

2 files changed

+56
-14
lines changed

assets/scss/style.scss

+50-1
Original file line numberDiff line numberDiff line change
@@ -557,18 +557,21 @@ p code {
557557
}
558558

559559
#newsletter-embed #mlb2-6177287.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button,
560+
.formkit-form button,
560561
.btn {
561562
text-align: center !important;
562563
color: var(--color-body) !important;
563564
text-decoration: none !important;
564565
border: 2px solid var(--color-link) !important;
565566
background-color: transparent !important;
566-
padding: 1rem !important;
567+
padding: 0.5rem 1rem !important;
567568
// margin: 1rem !important;
568569
letter-spacing: .1rem !important;
570+
font-weight: bold !important;
569571
}
570572

571573
#newsletter-embed #mlb2-6177287.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover,
574+
.formkit-form button:hover,
572575
.btn:hover {
573576
color: var(--color-white) !important;
574577
background-color: var(--color-light) !important;
@@ -615,6 +618,7 @@ input[type=submit] {
615618
}
616619

617620
#newsletter-embed #mlb2-6177287.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button,
621+
.formkit-form button,
618622
input[type=submit],
619623
.btn,
620624
.btn-block {
@@ -623,7 +627,52 @@ input[type=submit],
623627
font-size: var(--font-size-minus-1) !important;
624628
}
625629

630+
.formkit-form [data-style="clean"],
626631
#mlb2-6177287.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody,
627632
#mlb2-6177287.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
628633
padding: 0 !important;
629634
}
635+
636+
.formkit-form {
637+
max-width: 100% !important;
638+
}
639+
640+
.formkit-form .formkit-fields {
641+
display: grid;
642+
grid-gap: 1rem !important;
643+
// grid-template-columns: 1fr;
644+
}
645+
646+
.formkit-form .formkit-field,
647+
.formkit-form input,
648+
.formkit-form button {
649+
margin: 0 !important;
650+
}
651+
652+
.formkit-form button {
653+
// margin: 0.5rem 0 !important;
654+
// padding: 0 !important;
655+
border-radius: 0 !important;
656+
}
657+
658+
.formkit-form button span,
659+
.formkit-form button span:hover {
660+
display: block !important;
661+
width: 100% !important;
662+
margin: 0 !important;
663+
padding: 0 !important;
664+
background-color: transparent !important;
665+
}
666+
667+
.formkit-form .formkit-alert {
668+
margin-bottom: 0 !important;
669+
}
670+
671+
.formkit-form div[data-style="clean"] {
672+
display: flex;
673+
flex-direction: column-reverse;
674+
}
675+
676+
.formkit-powered-by-convertkit-container {
677+
display: none !important;
678+
}

newsletter/index.md

+6-13
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,14 @@ Welcome to my newsletter, where I gather my thoughts, share personal updates, an
1111
Thank you for joining me on this journey of meaningful content and discoveries. Let's explore and connect in the realm of email.
1212

1313
<!-- MailerLite Newsletter Embed -->
14-
<div id="newsletter-embed" class="ml-embedded paragraph text-center" data-form="TUhoiV"></div>
14+
<!-- <div id="newsletter-embed" class="ml-embedded paragraph text-center" data-form="TUhoiV"></div> -->
1515

16-
Remember, you have the freedom to unsubscribe at any moment. Simply click the "unsubscribe" link at the bottom of each email.
16+
<!-- ConvertKit Newsletter Embed -->
17+
<div id="newsletter-embed" class="ml-embedded paragraph text-center">
18+
<script async data-uid="9018b64cf4" src="https://chrisspiegl.ck.page/9018b64cf4/index.js"></script>
19+
</div>
1720

18-
<!-- SendFox Newsletter Embed -->
19-
<!-- <div id="newsletter-embed" class="paragraph text-center">
20-
<form method="post" action="https://sendfox.com/form/36wy84/1d5zr5" class="sendfox-form" id="1d5zr5" data-async="true" data-recaptcha="true">
21-
<input type="text" class="text-center" placeholder="First Name" name="first_name" required />
22-
<input type="email" class="text-center" placeholder="Email" name="email" required />
23-
<label><input type="checkbox" style="display: inline; width: auto;" name="gdpr" value="1" required /> I agree to receive email updates and promotions.</label>
24-
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="a_password" tabindex="-1" value="" autocomplete="off" /></div>
25-
<button type="submit" class="btn btn-block">Join!</button>
26-
</form>
27-
<script src="https://sendfox.com/js/form.js"></script>
28-
</div> -->
21+
Remember, you have the freedom to unsubscribe at any moment. Simply click the "unsubscribe" link at the bottom of each email.
2922

3023
<!-- You can also access the archive of newsletters I have [sent in the past](/newsletter/archive). ## THIS ARCHIVE IS REDIRECTING - MAY IMPLEMENT LOCAL ARCHIVE BASED ON CATEGORY ## -->
3124

0 commit comments

Comments
 (0)