diff --git a/.env.example b/.env.example index 3757836..397c87a 100644 --- a/.env.example +++ b/.env.example @@ -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 \ No newline at end of file diff --git a/.env.local b/.env.local new file mode 100644 index 0000000..397c87a --- /dev/null +++ b/.env.local @@ -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 \ No newline at end of file diff --git a/public/downloads/HDK_FieldKit_v3.pdf b/public/downloads/HDK_FieldKit_v3.pdf new file mode 100644 index 0000000..0b71e7d Binary files /dev/null and b/public/downloads/HDK_FieldKit_v3.pdf differ diff --git a/public/downloads/HDK_Guide_v3.pdf b/public/downloads/HDK_Guide_v3.pdf new file mode 100644 index 0000000..88d16c3 Binary files /dev/null and b/public/downloads/HDK_Guide_v3.pdf differ diff --git a/public/downloads/TheOneRuleFramework_v2.pdf b/public/downloads/TheOneRuleFramework_v2.pdf new file mode 100644 index 0000000..977a5e7 Binary files /dev/null and b/public/downloads/TheOneRuleFramework_v2.pdf differ diff --git a/src/components/SignupForm.astro b/src/components/SignupForm.astro index 841eb4f..5f7f190 100644 --- a/src/components/SignupForm.astro +++ b/src/components/SignupForm.astro @@ -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.'; } }); diff --git a/src/pages/api/subscribe.ts b/src/pages/api/subscribe.ts index d9cbf6c..5d1a43b 100644 --- a/src/pages/api/subscribe.ts +++ b/src/pages/api/subscribe.ts @@ -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 diff --git a/src/pages/api/verify.ts b/src/pages/api/verify.ts index 407b34c..56db1bf 100644 --- a/src/pages/api/verify.ts +++ b/src/pages/api/verify.ts @@ -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}`, }, }); diff --git a/src/pages/hdk.astro b/src/pages/hdk.astro index 09297a6..7fb49d9 100644 --- a/src/pages/hdk.astro +++ b/src/pages/hdk.astro @@ -58,7 +58,7 @@ if (signup === 'true') errorMessage = '// Sign up to access the full resources l
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.
Pay what it's worth. Suggested $5. Minimum $1.
- +Seven worksheets for mapping, auditing, and maintaining your LifeStack.
- +