Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
6d7f6e8
Progress component
MrGreenTea Jun 10, 2025
4d0e312
feat(website): fetch progress from twenty crm via graphql
Han2-Ro Jun 12, 2025
01ec799
refactor(website): extract foundraising fetch into function
Han2-Ro Jun 12, 2025
0cc3b19
fix query
Han2-Ro Jun 13, 2025
5fce2ab
refactor(website): change TWENTY_AUTH
Han2-Ro Jun 13, 2025
8407067
feat(website): enbale on-demand rendering for support-us
Han2-Ro Jun 13, 2025
335d6af
refactor(website): replace depricated tweened with Tween
Han2-Ro Jun 13, 2025
5da8648
fix(website): disable Calendar component, won't build with cloudflare
Han2-Ro Jun 13, 2025
f769636
fix(website): how does this work in deployment?
Han2-Ro Jun 13, 2025
fbc441f
Revert "fix(website): how does this work in deployment?"
Han2-Ro Jun 13, 2025
3ec2ef3
fix(website): fix blank support-us page
Han2-Ro Jun 13, 2025
8fc0c19
fix(website): use client:only="svelte" for Calendar Component
Han2-Ro Jun 13, 2025
c23dafc
feat(website): create SupporForm.astro
Han2-Ro Jun 14, 2025
3de4e7c
fix(website): fix Calendar build error by removing Tween
Han2-Ro Jun 14, 2025
5fe6f8f
feat(website): implement api endpoint for form at /api/support-us
Han2-Ro Jun 15, 2025
b91d578
feat(website): check for missing fields
Han2-Ro Jun 15, 2025
c472942
docs(website): create .env.example file
Han2-Ro Jun 15, 2025
e9afd7b
Create Fördermitgliedschaften
MrGreenTea Jun 15, 2025
1080861
Progress component upgrade
MrGreenTea Jun 15, 2025
b5da876
Updates
MrGreenTea Jun 15, 2025
642169c
Delete wrangler config
MrGreenTea Jun 15, 2025
d3bcf3a
Show how many people supported us
MrGreenTea Jun 15, 2025
b3ed8bd
Fix last commit
MrGreenTea Jun 15, 2025
2516d67
refactor(website): use variables in graphql mutation
Han2-Ro Jun 15, 2025
05e3e8d
Design updates
MrGreenTea Jun 16, 2025
dfc9015
Instant feedback on submission
MrGreenTea Jun 16, 2025
b0a9eb7
feat(website): send data from support-us form to slack
Han2-Ro Jun 16, 2025
534f54d
Also update person count
MrGreenTea Jun 16, 2025
16d265c
Disable animations during server rendering
MrGreenTea Jun 16, 2025
24867ae
Mock tween on server
MrGreenTea Jun 16, 2025
d80b496
Fix people count
MrGreenTea Jun 16, 2025
75f098d
Only update locally on success
MrGreenTea Jun 16, 2025
3e7e5e7
Make focus rings green
MrGreenTea Jun 16, 2025
1ddb906
Remove default Germany
MrGreenTea Jun 16, 2025
578dbb3
Add small padding on mobile for donation methods
MrGreenTea Jun 16, 2025
df0a352
Rename Expertise spenden
MrGreenTea Jun 16, 2025
c0c4ea7
Remove donation methods for now
MrGreenTea Jun 16, 2025
78250a9
Fix submission success result check
MrGreenTea Jun 16, 2025
47050e1
docs(website): update .env.example
Han2-Ro Jun 16, 2025
3b3bcbf
feat(website): pass nameMention to Twenty
Han2-Ro Jun 16, 2025
94f9d7e
feat(website): add form select field for preferred language
Han2-Ro Jun 16, 2025
e9e9db9
fix(website): adding slack web-api explicitly as external
Han2-Ro Jun 16, 2025
7161395
fix(website): use fetch() instead of slack/web-api
Han2-Ro Jun 16, 2025
210b854
log slackApi resonse as json so I can maybe see it in cloudflare log
Han2-Ro Jun 17, 2025
396cf94
Remove slack client
MrGreenTea Jun 17, 2025
5981af1
Turn language picker into radio buttons
MrGreenTea Jun 17, 2025
54123bb
Internationalize preferred language
MrGreenTea Jun 17, 2025
7391a9e
Detect users language
MrGreenTea Jun 17, 2025
68af6df
Remove hardcoded local CMS_URL
MrGreenTea Jun 17, 2025
ada70e6
Use mock tween for calendar component
MrGreenTea Jun 17, 2025
0d39518
Ignore trailing slashes
MrGreenTea Jun 18, 2025
84a2afc
Explain progress a bit
MrGreenTea Jun 18, 2025
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
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CMS_URL=http://localhost:3000
TWENTY_AUTH="YOUR_TOKEN"
TWENTY_GRAPHQL_URL="https://twenty.youngvision.work/graphql"
SLACK_TOKEN="YOUR_TOKEN"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ test-results/

# macOS-specific files
.DS_Store

.wrangler
10 changes: 8 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import cloudflare from '@astrojs/cloudflare';
import node from '@astrojs/node';
import svelte from '@astrojs/svelte';
import tailwindcss from '@tailwindcss/vite';
Expand All @@ -10,7 +11,9 @@ const adapter = PREVIEW
? node({
mode: 'standalone',
})
: undefined;
: cloudflare({
imageService: 'compile',
});

// https://astro.build/config
export default defineConfig({
Expand All @@ -31,9 +34,12 @@ export default defineConfig({
integrations: [svelte()],
output: PREVIEW ? 'server' : 'static',
server: ({ command }) => ({ port: command === 'dev' ? 5173 : 4321 }),
trailingSlash: 'never',
trailingSlash: 'ignore',

vite: {
define: {
'process.env': process.env,
},
plugins: [tailwindcss()],
},
});
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "0.0.1",
"packageManager": "pnpm@10.12.1",
"scripts": {
"dev": "CMS_URL='http://localhost:3000' astro dev",
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
Expand All @@ -24,12 +24,15 @@
},
"dependencies": {
"@astrojs/check": "0.9.4",
"@astrojs/cloudflare": "^12.5.4",
"@astrojs/node": "9.2.2",
"@astrojs/svelte": "7.0.13",
"@astrojs/tailwind": "6.0.2",
"@melt-ui/svelte": "0.86.6",
"astro": "5.7.14",
"clsx": "2.1.1",
"graphql": "^16.11.0",
"graphql-request": "^7.2.0",
"qs": "6.14.0",
"svelte": "5.34.3",
"typescript": "5.8.3"
Expand Down Expand Up @@ -68,6 +71,7 @@
"svelte-sequential-preprocessor": "2.0.2",
"tailwindcss": "4.0.6",
"typescript": "5.8.3",
"typescript-eslint": "8.34.0"
"typescript-eslint": "8.34.0",
"wrangler": "^4.20.0"
}
}
Loading