Mirrored from https://github.com/Camo67/OCIU-npo.git
Synced Nov 21, 03:37 UTC
Add signup form and adjust hero styling
Camo67 committed
Nov 7, 2025 at 02:46 UTC
6e7faf396c78eacd9a305e09318570bc02020600
3 files changed
+106
-17
src/components/CallToAction.tsx
+96
-6
@@ -1,5 +1,9 @@
1
import { Button } from "@/components/ui/button";
2
-import { ArrowRight, Users, Mic2, Briefcase } from "lucide-react";
2
+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
3
+import { Input } from "@/components/ui/input";
4
+import { Label } from "@/components/ui/label";
5
+import { Textarea } from "@/components/ui/textarea";
6
+import { Users, Mic2, Briefcase, HandCoins } from "lucide-react";
7
8
export const CallToAction = () => {
9
return (
@@ -26,12 +30,62 @@ export const CallToAction = () => {
30
</p>
31
</div>
32
29
- {/* CTA Buttons */}
33
+ {/* Signup Form */}
34
+ <div className="max-w-3xl mx-auto w-full">
35
+ <div className="rounded-[2rem] border border-white/20 bg-white/10 p-8 text-left shadow-2xl shadow-black/25 backdrop-blur">
36
+ <div className="flex flex-col gap-2">
37
+ <span className="inline-flex items-center gap-2 text-sm font-semibold uppercase tracking-[0.3em] text-white/70">
38
+ <Users className="w-5 h-5" />
39
+ Get Involved
40
+ </span>
41
+ <p className="text-3xl font-semibold text-white">
42
+ Sign up to volunteer or collaborate with Community & Unity.
43
+ </p>
44
+ </div>
45
+ <form className="mt-8 space-y-6">
46
+ <div className="grid gap-2">
47
+ <Label htmlFor="cta-name" className="text-white/80">
48
+ Full Name
49
+ </Label>
50
+ <Input
51
+ id="cta-name"
52
+ placeholder="Your name"
53
+ className="border-white/30 bg-white/10 text-white placeholder:text-white/60 focus-visible:ring-white/70"
54
+ />
55
+ </div>
56
+ <div className="grid gap-2">
57
+ <Label htmlFor="cta-email" className="text-white/80">
58
+ Email Address
59
+ </Label>
60
+ <Input
61
+ id="cta-email"
62
+ type="email"
63
+ placeholder="you@example.com"
64
+ className="border-white/30 bg-white/10 text-white placeholder:text-white/60 focus-visible:ring-white/70"
65
+ />
66
+ </div>
67
+ <div className="grid gap-2">
68
+ <Label htmlFor="cta-message" className="text-white/80">
69
+ How would you like to help?
70
+ </Label>
71
+ <Textarea
72
+ id="cta-message"
73
+ placeholder="Tell us about your skills, availability, or questions..."
74
+ className="min-h-[140px] border-white/30 bg-white/10 text-white placeholder:text-white/60 focus-visible:ring-white/70"
75
+ />
76
+ </div>
77
+ <Button type="submit" size="lg" variant="growth" className="w-full text-lg">
78
+ Sign Up
79
+ </Button>
80
+ <p className="text-center text-sm text-white/70">
81
+ We’ll reach out with upcoming programs, volunteer ops, and community projects.
82
+ </p>
83
+ </form>
84
+ </div>
85
+ </div>
86
+
87
+ {/* Secondary Actions */}
88
<div className="flex flex-col sm:flex-row gap-6 justify-center items-center">
31
- <Button size="lg" variant="growth" className="min-w-[220px] text-lg">
32
- <Users className="mr-2 h-5 w-5" />
33
- Get Involved
34
- </Button>
89
<Button size="lg" variant="energy" className="min-w-[220px] text-lg">
90
<Mic2 className="mr-2 h-5 w-5" />
91
Listen to the Podcast
@@ -42,6 +96,42 @@ export const CallToAction = () => {
96
</Button>
97
</div>
98
99
+ {/* Donation Details */}
100
+ <Card className="max-w-3xl mx-auto bg-white/10 border-white/20 text-left text-white">
101
+ <CardHeader className="space-y-3">
102
+ <div className="inline-flex items-center gap-2 text-white/80 uppercase tracking-wide text-sm">
103
+ <HandCoins className="w-4 h-4" />
104
+ Donate
105
+ </div>
106
+ <CardTitle className="text-3xl text-white">
107
+ Banking Details
108
+ </CardTitle>
109
+ <p className="text-white/70 text-base">
110
+ Direct contributions help us sustain programs and expand the reach of Community & Unity.
111
+ </p>
112
+ </CardHeader>
113
+ <CardContent className="space-y-4 text-lg">
114
+ <div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-1">
115
+ <span className="text-white/70 text-sm uppercase tracking-wide">
116
+ Account Name
117
+ </span>
118
+ <span className="font-semibold">Our Community In Unity</span>
119
+ </div>
120
+ <div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-1">
121
+ <span className="text-white/70 text-sm uppercase tracking-wide">
122
+ Bank
123
+ </span>
124
+ <span className="font-semibold">Nedbank Business</span>
125
+ </div>
126
+ <div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-1">
127
+ <span className="text-white/70 text-sm uppercase tracking-wide">
128
+ Account Number
129
+ </span>
130
+ <span className="font-semibold tracking-widest">1328807983</span>
131
+ </div>
132
+ </CardContent>
133
+ </Card>
134
+
135
{/* Footer */}
136
<div className="pt-16 space-y-6 border-t border-white/20">
137
<div className="flex flex-col md:flex-row justify-center items-center gap-6 text-white/80">
src/components/Hero.tsx
+7
-11
@@ -15,11 +15,13 @@ export const Hero = () => {
15
<div className="max-w-5xl mx-auto text-center space-y-8 animate-fade-in">
16
{/* Logo */}
17
<div className="flex justify-center mb-8">
18
- <img
19
- src={logoSquare}
20
- alt="Community & Unity Logo"
21
- className="w-64 h-64 md:w-80 md:h-80"
22
- />
18
+ <div className="inline-flex items-center justify-center rounded-[2rem] bg-[hsl(var(--logo-background))] p-4 md:p-6 shadow-2xl shadow-black/25">
19
+ <img
20
+ src={logoSquare}
21
+ alt="Community & Unity Logo"
22
+ className="w-64 h-64 md:w-80 md:h-80"
23
+ />
24
+ </div>
25
</div>
26
27
{/* Main Heading */}
@@ -48,12 +50,6 @@ export const Hero = () => {
50
</Button>
51
</div>
52
51
- {/* Scroll Indicator */}
52
- <div className="pt-16 animate-bounce">
53
- <div className="w-6 h-10 border-2 border-white/50 rounded-full mx-auto flex justify-center">
54
- <div className="w-1 h-3 bg-white/50 rounded-full mt-2 animate-pulse" />
55
- </div>
56
- </div>
53
</div>
54
</div>
55
</section>
src/index.css
+3
@@ -41,6 +41,8 @@ All colors MUST be HSL.
41
--gradient-hero: linear-gradient(135deg, hsl(210 100% 50%) 0%, hsl(200 100% 60%) 50%, hsl(210 100% 50%) 100%);
42
--gradient-growth: linear-gradient(135deg, hsl(200 95% 45%) 0%, hsl(195 100% 40%) 100%);
43
--gradient-energy: linear-gradient(135deg, hsl(210 100% 55%) 0%, hsl(195 100% 50%) 100%);
44
+
45
+ --logo-background: 252 100% 50%;
46
47
--sidebar-background: 0 0% 98%;
48
@@ -95,6 +97,7 @@ All colors MUST be HSL.
97
--sidebar-accent-foreground: 210 30% 90%;
98
--sidebar-border: 210 30% 18%;
99
--sidebar-ring: 210 100% 60%;
100
+ --logo-background: 252 100% 50%;
101
}
102
}
103