Skip to content

Commit 5566406

Browse files
authored
Merge pull request #24 from sajal2692/develop
Add Newsletter
2 parents 7c70346 + 415fe37 commit 5566406

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

src/layouts/PostDetails.astro

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,20 @@ const layoutProps = {
8383
{tags.map(tag => <Tag tag={slugifyStr(tag)} />)}
8484
</ul>
8585

86+
<section id="newsletter" class="mt-8 mb-8 p-0">
87+
<p>Sign up for my newsletter to get updates on my latest projects and insights on AI & ML. 👇</p>
88+
<div class="mt-4">
89+
<script
90+
async
91+
data-uid="2d16cff56e"
92+
src="https://sajalsharma.kit.com/2d16cff56e/index.js"
93+
is:inline
94+
></script>
95+
</div>
96+
</section>
97+
8698
<div
87-
class="flex flex-col-reverse items-center justify-between gap-6 sm:flex-row-reverse sm:items-end sm:gap-4"
99+
class="flex flex-col-reverse items-center justify-between gap-6 sm:flex-row-reverse sm:items-end sm:gap-4 mb-8"
88100
>
89101
<button
90102
id="back-to-top"
@@ -99,7 +111,9 @@ const layoutProps = {
99111
</button>
100112

101113
<ShareLinks />
114+
102115
</div>
116+
103117
</main>
104118
<Footer />
105119
</Layout>

src/pages/index.astro

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ const socialCount = SOCIALS.filter(social => social.active).length;
4848
<p>I’m passionate about building AI systems that amplify human potential—bridging the gap between human and artificial intelligence.</p>
4949

5050
<p>Explore my journey and insights on AI & ML through my <a href="/posts">blog</a>, or read more about my <a href="/about">professional experience</a>. 🚀</p>
51+
<section id="newsletter">
52+
<p> Sign up for my newsletter to get updates on my latest projects and insights on AI & ML. 👇</p>
53+
<script
54+
async
55+
data-uid="2d16cff56e"
56+
src="https://sajalsharma.kit.com/2d16cff56e/index.js"
57+
is:inline
58+
></script>
59+
</section>
5160

5261
{
5362
// only display if at least one social link is enabled
@@ -164,4 +173,10 @@ const socialCount = SOCIALS.filter(social => social.active).length;
164173
.all-posts-btn-wrapper {
165174
@apply my-8 text-center;
166175
}
176+
177+
/* add some top padding for newsletter */
178+
#newsletter {
179+
@apply pt-6 pl-0;
180+
}
181+
167182
</style>

0 commit comments

Comments
 (0)