Skip to content

Commit 2bab192

Browse files
committed
Add buttondown form and improve styling
1 parent ed26969 commit 2bab192

File tree

2 files changed

+49
-8
lines changed

2 files changed

+49
-8
lines changed

.vitepress/theme/style.css

+34-2
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,44 @@ h2 {
125125
/* Custom Items */
126126
.callout {
127127
margin-top: 25px;
128-
129128
display: flex;
130129
flex-wrap: wrap;
131130
align-items: center;
132131
justify-content: space-between;
132+
row-gap: 20px;
133+
column-gap: 50px;
133134
padding: 30px;
134135
border-radius: 10px;
135136
border: 1px solid gray;
137+
138+
background: #222;
139+
color: white;
140+
}
141+
142+
.callout form {
143+
margin: 0;
144+
display: flex;
145+
flex-direction: column;
146+
flex-grow: 1;
147+
min-width: 250px;
148+
max-width: 500px;
149+
}
150+
151+
.callout input[type="email"] {
152+
padding: 10px;
153+
border-radius: 5px;
154+
border: 1px solid darkgray;
155+
background: white;
156+
color: black;
157+
}
158+
159+
.callout input[type="submit"] {
160+
margin-top: 10px;
161+
cursor: pointer;
162+
color: white;
163+
background: var(--vp-button-brand-bg);
164+
border-radius: 5px;
165+
padding: 5px;
136166
}
137167

138168
.projects {
@@ -148,15 +178,17 @@ h2 {
148178
cursor: pointer;
149179
border: 1px solid darkgray;
150180
border-radius: 10px;
181+
background: var(--vp-button-alt-bg);
151182
}
152183

153184
.project h3 {
154185
margin: 0;
155186
font-size: 1.5rem;
187+
color: black;
156188
}
157189

158190
.project h6 {
159-
color: dimgray;
191+
color: var(--vp-button-alt-text);
160192
font-size: 0.85rem;
161193
margin-bottom: 5px;
162194
}

index.md

+15-6
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,20 @@ hero:
1717
We make brain-computer interfaces accessible to everyone.
1818

1919
<div class="callout">
20-
<div>
21-
<h5>Interested in using our products?</h5>
22-
<small>Sign up to be notified for updates and early access.</small>
23-
</div>
24-
<small>Coming soon...</small>
20+
<div>
21+
<h5>Interested in using our products?</h5>
22+
<small>Sign up to be notified for updates and early access.</small>
23+
</div>
24+
<form
25+
action="https://buttondown.com/api/emails/embed-subscribe/neuralinterfaces"
26+
method="post"
27+
target="popupwindow"
28+
onsubmit="window.open('https://buttondown.com/neuralinterfaces', 'popupwindow')"
29+
class="embeddable-buttondown-form"
30+
>
31+
<input type="email" name="email" placeholder="Enter your email"/>
32+
<input type="submit" value="Subscribe" />
33+
</form>
2534
</div>
2635

2736
## Projects
@@ -37,7 +46,7 @@ Our work at Neural Interfaces allows you to access brain-responsive applications
3746
</div>
3847

3948
<div class="project">
40-
<a href="https://commoners.dev" target="_blank">
49+
<a href="https://github.com/neuralinterfaces/commoners" target="_blank">
4150
<h6>Cross-Platform Development for the Rest of Us</h6>
4251
<h3>Commoners</h3>
4352
</a>

0 commit comments

Comments
 (0)