Skip to content

Commit a93620f

Browse files
committed
web: add newsletter form and replace devlog video with link to blog post
1 parent bf6a06a commit a93620f

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

web/pages/index.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ export default page({title: "Treehouse"}, () => (
163163
<div>
164164
<div class="header">
165165
<h2>Learn about the project</h2>
166-
<p>Watch our devlog series to follow along with the development process.</p>
166+
<p>Read our devlog series to follow along with the development process.</p>
167167
</div>
168-
<button class="secondary">View all devlogs</button>
168+
<a href="https://progrium.xyz/blog/2023/welcome-to-treehouse/"><button class="secondary">Read devlog</button></a>
169169
</div>
170170

171171
<div>
172-
<iframe width="560" height="315" src="https://www.youtube.com/embed/XU-vrmA7j4U" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
172+
173173
</div>
174174
</div>
175175
</section>
@@ -181,8 +181,11 @@ export default page({title: "Treehouse"}, () => (
181181
<p>Sign up for our mailing list to receive updates on the project.</p>
182182
</div>
183183
<div class="flex flex-row gap-4 justify-center">
184-
<input type="text" />
185-
<button class="primary">Subscribe</button>
184+
<form action="https://treehouse.us14.list-manage.com/subscribe/post?u=b46190b3f7c8e90da1a71cea3&amp;id=b663d815b4&amp;f_id=00efa5e0f0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
185+
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" required />
186+
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_b46190b3f7c8e90da1a71cea3_b663d815b4" tabindex="-1" value="" /></div>
187+
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="ml-4 button primary" />
188+
</form>
186189
</div>
187190
<p class="text-small">We don't share your email.</p>
188191
</div>

web/static/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ p {
8585
margin-top: 0.5rem !important;
8686
/* margin-bottom: 0.5rem; */
8787
}
88-
button {
88+
button, .button {
8989
border-radius: 10px;
9090
padding-left: 2rem !important;
9191
padding-right: 2rem !important;
@@ -100,7 +100,7 @@ a button {
100100
color: var(--neutral-900);
101101

102102
}
103-
button.primary {
103+
button.primary, .button.primary {
104104
color: var(--neutral-0);
105105
background-color: var(--primary-color);
106106
}
@@ -124,7 +124,7 @@ pre.code {
124124
padding-bottom: 0.75rem;
125125
margin-top: 1.5rem;
126126
}
127-
section.subscribe input {
127+
section.subscribe input[type="email"] {
128128
border-radius: 10px;
129129
padding-left: 1rem !important;
130130
padding-right: 1rem !important;

0 commit comments

Comments
 (0)