Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
BUTTONDOWN_API_KEY=your_buttondown_api_key
BUTTONDOWN_API_KEY=e151de43-3961-4c30-bc10-545c470cc032
AUTH_SECRET=your_random_secret_string_min_32_chars
SITE_URL=https://damdug.com
GUMROAD_URL=https://damdugster.gumroad.com/l/HDKFieldKit
4 changes: 4 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BUTTONDOWN_API_KEY=e151de43-3961-4c30-bc10-545c470cc032
AUTH_SECRET=your_random_secret_string_min_32_chars
SITE_URL=https://damdug.com
GUMROAD_URL=https://damdugster.gumroad.com/l/HDKFieldKit
Binary file added public/downloads/HDK_FieldKit_v3.pdf
Binary file not shown.
Binary file added public/downloads/HDK_Guide_v3.pdf
Binary file not shown.
Binary file added public/downloads/TheOneRuleFramework_v2.pdf
Binary file not shown.
12 changes: 6 additions & 6 deletions src/components/SignupForm.astro
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ const {

message.style.display = 'block';
if (data.success) {
message.style.color = 'var(--accent)';
message.textContent = '✓ Check your email for your access link.';
message.style.color = 'var(--text-primary)';
message.textContent = "You're in. Check your email.";
form.reset();
} else {
message.style.color = '#d47d7d';
message.textContent = data.error || 'Something went wrong. Please try again.';
message.style.color = 'var(--accent)';
message.textContent = 'Something went wrong. Try again.';
}
} catch {
message.style.display = 'block';
message.style.color = '#d47d7d';
message.textContent = 'Something went wrong. Please try again.';
message.style.color = 'var(--accent)';
message.textContent = 'Something went wrong. Try again.';
}
});
</script>
2 changes: 1 addition & 1 deletion src/pages/api/subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const POST: APIRoute = async ({ request }) => {
'Authorization': `Token ${import.meta.env.BUTTONDOWN_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ email, tags: ['resources-access'] }),
body: JSON.stringify({ email, tags: ['damdug-signup'] }),
});
} catch (e) {
// Continue even if Buttondown fails — don't block the user
Expand Down
4 changes: 3 additions & 1 deletion src/pages/api/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ export const GET: APIRoute = async ({ request, redirect }) => {

const maxAge = 60 * 60 * 24 * 90;

return redirect('/resources', 302, {
return new Response(null, {
status: 302,
headers: {
'Location': '/library',
'Set-Cookie': `damdug_access=${cookieValue}; Path=/; HttpOnly; Secure; SameSite=Lax; Max-Age=${maxAge}`,
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/pages/hdk.astro
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if (signup === 'true') errorMessage = '// Sign up to access the full resources l
<h2 style="margin-bottom: var(--space-md);">The Field Kit</h2>
<p>The HDK Field Kit is the working companion to this framework. Seven worksheets for mapping your stack, tracking your changelog, clarifying your values, and building your minimum viable routine.</p>
<p style="margin-top: var(--space-md);">Pay what it's worth. Suggested $5. Minimum $1.</p>
<p style="margin-top: var(--space-md);"><a href="GUMROAD_URL" class="btn btn--accent" style="display: inline-block;">Get the Field Kit</a></p>
<p style="margin-top: var(--space-md);"><a href="https://damdugster.gumroad.com/l/HDKFieldKit" class="btn btn--accent" style="display: inline-block;">Get the Field Kit</a></p>
</section>

<section style="background: var(--bg-surface); border: 1px solid var(--border); padding: var(--space-lg); margin-top: var(--space-lg);">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/library.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const prerender = true;
<div style="padding-bottom: var(--space-lg); border-bottom: 1px solid var(--border);">
<h3 style="font-size: 1rem; margin-bottom: var(--space-xs);">HDK Field Kit</h3>
<p style="font-size: 0.875rem; color: var(--text-secondary); margin-bottom: var(--space-sm);">Seven worksheets for mapping, auditing, and maintaining your LifeStack.</p>
<p style="font-size: 0.8125rem;"><a href="GUMROAD_URL" style="color: var(--accent);">Get the Field Kit →</a></p>
<p style="font-size: 0.8125rem;"><a href="https://damdugster.gumroad.com/l/HDKFieldKit" style="color: var(--accent);">Get the Field Kit →</a></p>
</div>
</div>
</section>
Expand Down
Loading