Skip to content

Commit 242ef12

Browse files
committed
adding challenges
1 parent 1f4ba48 commit 242ef12

File tree

2 files changed

+33
-14
lines changed

2 files changed

+33
-14
lines changed

src/pages/Journal.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,6 @@ const Journal: React.FC = () => {
179179
</div>
180180

181181
<div className="flex items-center gap-2">
182-
<Button
183-
variant="ghost"
184-
size="icon"
185-
onClick={toggleTheme}
186-
className={currentTheme === 'light' ? 'text-slate-800' : 'text-white'}
187-
>
188-
{currentTheme === 'light' ? <Moon className="h-5 w-5" /> : <Sun className="h-5 w-5" />}
189-
</Button>
190-
191182
<Button
192183
variant="ghost"
193184
className={currentTheme === 'light' ? 'text-slate-800' : 'text-white'}

src/pages/Referrals.tsx

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,41 @@
11

22
import React from 'react';
3+
import { motion } from 'framer-motion';
4+
import ReferralProgram from '@/components/ReferralProgram';
5+
import { useIsMobile } from "@/hooks/use-mobile";
36

47
const Referrals: React.FC = () => {
8+
const isMobile = useIsMobile();
9+
510
return (
6-
<div className="container py-8">
7-
<h1 className="text-3xl font-bold mb-4">Referrals</h1>
8-
<p>Referral program details will go here</p>
9-
</div>
11+
<motion.div
12+
className="container py-8 pb-16"
13+
initial={{ opacity: 0 }}
14+
animate={{ opacity: 1 }}
15+
transition={{ duration: 0.5 }}
16+
>
17+
<div className="mb-8">
18+
<motion.h1
19+
className="text-3xl font-bold mb-2"
20+
initial={{ opacity: 0, y: -20 }}
21+
animate={{ opacity: 1, y: 0 }}
22+
transition={{ duration: 0.3 }}
23+
>
24+
Referral Program
25+
</motion.h1>
26+
<motion.p
27+
className="text-muted-foreground"
28+
initial={{ opacity: 0, y: -20 }}
29+
animate={{ opacity: 1, y: 0 }}
30+
transition={{ duration: 0.3, delay: 0.1 }}
31+
>
32+
Invite friends and earn rewards together
33+
</motion.p>
34+
</div>
35+
36+
<ReferralProgram className="w-full" />
37+
</motion.div>
1038
);
1139
};
1240

13-
export default Referrals;
41+
export default Referrals;

0 commit comments

Comments
 (0)