Skip to content

Commit 356466c

Browse files
committed
Update terms and privacy
1 parent f9702a5 commit 356466c

File tree

5 files changed

+642
-206
lines changed

5 files changed

+642
-206
lines changed

src/pages/Account/Account.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,21 @@
553553
transform: translateY(0);
554554
}
555555

556+
.mobile-subscription-notice {
557+
padding: 1rem;
558+
background: rgba(59, 130, 246, 0.1);
559+
border: 1px solid #3b82f6;
560+
border-radius: 0.5rem;
561+
text-align: center;
562+
}
563+
564+
.mobile-notice-text {
565+
margin: 0;
566+
color: #93c5fd;
567+
font-size: 0.875rem;
568+
line-height: 1.4;
569+
}
570+
556571
/* Enterprise Card */
557572
.enterprise-info {
558573
display: flex;

src/pages/Account/Account.tsx

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -359,23 +359,19 @@ const Account: React.FC = () => {
359359
<span className="feature-text">{planOption.runnerLimit} runners</span>
360360
</div>
361361
</div>
362-
{!isCurrentPlan && (
363-
<button
364-
className="upgrade-button"
365-
style={{
366-
backgroundColor: getTierColor(planOption.id),
367-
borderColor: getTierColor(planOption.id)
368-
}}
369-
onClick={() => {
370-
if (planOption.id === 'pro') {
371-
window.open('https://buy.stripe.com/00w9AU6UNei60rlbMreIw00', '_blank');
372-
} else {
373-
alert('Plan upgrade functionality coming soon!');
374-
}
375-
}}
376-
>
377-
{planOption.priceInCents === 0 ? 'Downgrade' : 'Upgrade'} to {planOption.name}
378-
</button>
362+
{isCurrentPlan && planOption.priceInCents > 0 && (
363+
<div className="mobile-subscription-notice">
364+
<p className="mobile-notice-text">
365+
You can manage your subscription within the mobile app.
366+
</p>
367+
</div>
368+
)}
369+
{!isCurrentPlan && planOption.priceInCents > 0 && (
370+
<div className="mobile-subscription-notice">
371+
<p className="mobile-notice-text">
372+
To subscribe to {planOption.name}, please use our iOS or Android app.
373+
</p>
374+
</div>
379375
)}
380376
</div>
381377
);

src/pages/Pricing/Pricing.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Footer from '../../components/Footer';
44
import Header from '../../components/Header';
55
import { db } from '../../config/firebase';
66
import { collection, getDocs } from 'firebase/firestore';
7-
import { useAuth } from '../../contexts/AuthContext';
87

98
interface Plan {
109
id: string;
@@ -20,21 +19,14 @@ const Pricing: React.FC = () => {
2019
const [plans, setPlans] = useState<Plan[]>([]);
2120
const [loading, setLoading] = useState(true);
2221
const [error, setError] = useState<string | null>(null);
23-
const { user } = useAuth();
2422

2523
const handlePlanClick = (plan: Plan) => {
2624
if (plan.priceInCents === 0) {
2725
// Free plan - go to learn more
2826
window.location.hash = 'learn-more';
2927
} else {
30-
// Pro plan
31-
if (user) {
32-
// User is logged in - open Stripe checkout
33-
window.open('https://buy.stripe.com/00w9AU6UNei60rlbMreIw00', '_blank');
34-
} else {
35-
// User not logged in - go to auth
36-
window.location.hash = 'auth';
37-
}
28+
// Pro plan - redirect to mobile app subscription info
29+
alert('To subscribe to Pro, please download our iOS or Android app where you can manage your subscription.');
3830
}
3931
};
4032

@@ -157,7 +149,7 @@ const Pricing: React.FC = () => {
157149
className="btn btn-primary"
158150
onClick={() => handlePlanClick(plan)}
159151
>
160-
{plan.priceInCents === 0 ? 'Get Started' : 'Get Pro'}
152+
{plan.priceInCents === 0 ? 'Get Started' : 'Subscribe via Mobile App'}
161153
</button>
162154
</div>
163155
</div>

0 commit comments

Comments
 (0)