Skip to content

Commit

Permalink
use tinyletter
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Sep 10, 2023
1 parent eaf2657 commit 06d8141
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 22 deletions.
15 changes: 10 additions & 5 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
font: var(--vp-font-family-base);
background-color: var(--vp-c-bg-soft);
color: var(--vp-c-text-1);
padding: 1.5rem;
padding: 0rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
gap: 1rem;
min-height: 400px;
/* min-height: 400px; */
max-width: 1152px;
margin: 6rem auto;
margin: 3rem auto;
border-radius: 10px;
}

Expand All @@ -29,15 +29,20 @@
font-weight: 600;
}

#email {
#email-address {
font-size: 1rem;
margin: 1rem;
margin: 1rem 3rem 3rem 3rem;
border-radius: 1rem;
padding: 0.8rem;
background-color: rgb(22, 22, 24);
}


#call-to-action {
font-size: 1.5rem;
margin: 2rem;
}


.custom-layout .btn {
border: 1px solid transparent;
Expand Down
44 changes: 27 additions & 17 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,32 @@ async function subscribe(e) {


<div class="custom-layout">
<h1>Subscribe to Our <a href="https://etherplay.io" target="_blank" rel="noreferer noopener" style="text-decoration: underline;">Etherplay</a> mailing list for updates on Stratagems.</h1>

<span v-if="obj.type=='Error'" style="color: #dc2626;">{{obj.message}}</span>
<span v-if="obj.type=='Success'" style="color: #16a34a;">{{obj.message}}</span>
<form id="subscribeForm" action="https://etherplay-newsletter-subscription.rim.workers.dev" method="POST">
<!-- TODO <label for="email" class="sr-only">Email address</label> -->
<input type="hidden" name="main_list" value="[email protected]" />
<input type="hidden" name="sub_list" value="[email protected]"/>
<input
id="email"
name="email"
type="email"
placeholder="Enter your email"
<form
class="mt-1 max-w-sm"
action="https://tinyletter.com/stratagems"
method="post"
target="popupwindow"
onsubmit="window.open('https://tinyletter.com/stratagems', 'popupwindow', 'scrollbars=yes,width=800,height=600');return true"
>
<p id="call-to-action">
Subscribe for updates on Stratagems!
</p>
<div class="flex gap-x-4">
<!-- <label for="email-address" class="sr-only">Email address</label> -->
<input
id="email-address"
name="email"
type="email"
autocomplete="email"
required
placeholder="Enter your email"
/>
<button id="submit" class="btn" @click="subscribe">
Subscribe
</button>
</form>
<button
class="btn"
id="submit"
type="submit"
>Subscribe</button
>
</div>
</form>
</div>

0 comments on commit 06d8141

Please sign in to comment.