Skip to content

Commit 74e4020

Browse files
Tweak form.
1 parent 3d840c3 commit 74e4020

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

gumroad-links.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
}
9090

9191
.checkbox-stack label {
92-
display: flex;
9392
align-items: flex-start;
9493
gap: 0.6rem;
9594
font-weight: 500;
@@ -103,6 +102,7 @@
103102
.checkbox-stack input[type="checkbox"] {
104103
margin-top: 0.25rem;
105104
flex-shrink: 0;
105+
width: auto;
106106
}
107107

108108
.custom-fields {
@@ -213,40 +213,40 @@ <h1>Gumroad Link Builder</h1>
213213
<div class="layout">
214214
<form id="gumroad-form" class="surface" autocomplete="off">
215215
<div class="form-grid">
216-
<div class="field-group">
217-
<label for="product-url">Product URL</label>
218-
<input type="url" id="product-url" name="product-url"
219-
placeholder="https://username.gumroad.com/l/product" required>
220-
<p class="helper-text">Paste your Gumroad product link or fill out the username and product fields
221-
below to compose it automatically.</p>
222-
</div>
223-
224216
<div class="field-row split">
225217
<div class="field-group">
226218
<label for="username">Gumroad username</label>
227-
<input type="text" id="username" name="username" placeholder="username">
219+
<input type="text" id="username" name="username" placeholder="username" value="mathspp">
228220
</div>
229221
<div class="field-group">
230222
<label for="product-slug">Product ID</label>
231-
<input type="text" id="product-slug" name="product-slug" placeholder="product">
223+
<input type="text" id="product-slug" name="product-slug" placeholder="product" value="">
232224
</div>
233225
</div>
234226

227+
<div class="field-group">
228+
<label for="product-url">Product URL</label>
229+
<input type="url" id="product-url" name="product-url"
230+
placeholder="https://username.gumroad.com/l/product" value="https://mathspp.gumroad.com"
231+
readonly required>
232+
<p class="helper-text">Fill out the username and product fields below to compose it automatically.
233+
</p>
234+
</div>
235+
235236
<div class="field-group">
236237
<label for="discount-code">Discount code (optional)</label>
237238
<input type="text" id="discount-code" name="discount-code" placeholder="SUMMER25">
238-
<p class="helper-text">Codes are appended to the URL path like <code>/SUMMER25</code>.</p>
239239
</div>
240240

241241
<fieldset class="checkbox-stack">
242242
<legend>Checkout behaviour</legend>
243243
<label for="wanted">
244244
<input type="checkbox" id="wanted" name="wanted">
245-
<span>Take the customer straight to checkout (<code>wanted=true</code>)</span>
245+
<span>Take the customer straight to checkout</span>
246246
</label>
247247
<label for="pay_in_installments">
248248
<input type="checkbox" id="pay_in_installments" name="pay_in_installments">
249-
<span>Prefer the installments option when available (<code>pay_in_installments=true</code>)</span>
249+
<span>Prefer the installments option when available</span>
250250
</label>
251251
</fieldset>
252252

@@ -259,13 +259,12 @@ <h1>Gumroad Link Builder</h1>
259259
<option value="biannually">Biannually</option>
260260
<option value="yearly">Yearly</option>
261261
</select>
262-
<p class="helper-text">Adds <code>?monthly=true</code>, <code>?yearly=true</code>, and so on.</p>
263262
</div>
264263

265264
<div class="field-group">
266265
<label for="variant">Variant / version / tier</label>
267266
<input type="text" id="variant" name="variant" placeholder="Professional">
268-
<p class="helper-text">Links to a specific variant via <code>variant=</code>. The value will be URL encoded for
267+
<p class="helper-text">Links to a specific variant. The value will be URL encoded for
269268
you.</p>
270269
</div>
271270

@@ -295,8 +294,8 @@ <h1>Gumroad Link Builder</h1>
295294
<div class="field-row">
296295
<div>
297296
<h2 style="margin: 0; font-size: 1.1rem;">Custom checkout fields</h2>
298-
<p class="helper-text">Provide the exact label from your Gumroad custom field to prefill it. Only rows
299-
with both a label and value are added.</p>
297+
<p class="helper-text">Provide the exact label from your Gumroad custom field to prefill it.
298+
Only rows with both a label and value are added.</p>
300299
</div>
301300
<div class="actions">
302301
<button type="button" id="add-custom-field">Add custom field</button>
@@ -332,7 +331,8 @@ <h3 style="margin: 0; font-size: 1.1rem;">Included parameters</h3>
332331
<tbody id="parameters-body">
333332
<tr>
334333
<td colspan="2">
335-
<p class="empty-state" id="parameters-description">No query parameters yet. Fill in the
334+
<p class="empty-state" id="parameters-description">No query parameters yet. Fill in
335+
the
336336
form to generate them.</p>
337337
</td>
338338
</tr>

0 commit comments

Comments
 (0)