Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 16 additions & 16 deletions src/components/splash/WelcomeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ export function WelcomeModal({ show, onAccept }: WelcomeModalProps) {
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
className="fixed inset-0 bg-black/80 backdrop-blur-md flex items-center justify-center z-60 p-4"
className="fixed inset-0 bg-white/80 dark:bg-black/80 backdrop-blur-md flex items-center justify-center z-60 p-4"
>
<motion.div
initial={{ scale: 0.9, opacity: 0, y: 30 }}
animate={{ scale: 1, opacity: 1, y: 0 }}
exit={{ scale: 0.9, opacity: 0, y: 30 }}
transition={{ type: 'spring', duration: 0.5 }}
className="relative w-full max-w-lg bg-linear-to-b from-neutral-900 to-black border border-orange-500/20 rounded-3xl shadow-2xl shadow-orange-500/10 overflow-hidden"
className="relative w-full max-w-lg bg-linear-to-b from-neutral-100 to-white dark:from-neutral-900 dark:to-black border border-orange-500/20 rounded-3xl shadow-2xl shadow-orange-500/10 overflow-hidden"
>
{/* Glow effect */}
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-3/4 h-32 bg-orange-500/10 blur-3xl pointer-events-none" />
Expand All @@ -62,10 +62,10 @@ export function WelcomeModal({ show, onAccept }: WelcomeModalProps) {
<div className="inline-flex items-center justify-center w-16 h-16 rounded-full bg-linear-to-br from-orange-500 to-orange-600 mb-4">
<Shield className="w-8 h-8 text-white" />
</div>
<h2 className="text-2xl md:text-3xl font-bold text-white mb-2">
<h2 className="text-2xl md:text-3xl font-bold text-neutral-900 dark:text-white mb-2">
Welcome Aboard
</h2>
<p className="text-neutral-400 text-sm md:text-base">
<p className="text-neutral-500 dark:text-neutral-400 text-sm md:text-base">
Infrastructure for a free Internet
</p>
</motion.div>
Expand All @@ -75,9 +75,9 @@ export function WelcomeModal({ show, onAccept }: WelcomeModalProps) {
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ delay: 0.2 }}
className="bg-neutral-800/50 border border-neutral-700/50 rounded-2xl p-4 mb-6"
className="bg-neutral-200/50 dark:bg-neutral-800/50 border border-neutral-300/50 dark:border-neutral-700/50 rounded-2xl p-4 mb-6"
>
<p className="text-neutral-300 text-sm md:text-base text-center italic">
<p className="text-neutral-600 dark:text-neutral-300 text-sm md:text-base text-center italic">
"Privacy isn't a feature. It's the foundation of freedom."
</p>
</motion.div>
Expand All @@ -95,10 +95,10 @@ export function WelcomeModal({ show, onAccept }: WelcomeModalProps) {
initial={{ opacity: 0, scale: 0.9 }}
animate={{ opacity: 1, scale: 1 }}
transition={{ delay: 0.4 + index * 0.1 }}
className="flex flex-col items-center text-center p-3 rounded-xl bg-neutral-800/30 border border-neutral-700/30"
className="flex flex-col items-center text-center p-3 rounded-xl bg-neutral-200/30 dark:bg-neutral-800/30 border border-neutral-300/30 dark:border-neutral-700/30"
>
<feature.icon className="w-6 h-6 text-orange-500 mb-2" />
<span className="text-white text-xs font-medium">{feature.title}</span>
<span className="text-neutral-900 dark:text-white text-xs font-medium">{feature.title}</span>
<span className="text-neutral-500 text-[10px] mt-0.5">{feature.description}</span>
</motion.div>
))}
Expand All @@ -113,14 +113,14 @@ export function WelcomeModal({ show, onAccept }: WelcomeModalProps) {
>
<div className="flex items-start gap-2 p-3 bg-amber-500/10 border border-amber-500/20 rounded-xl">
<AlertTriangle className="w-5 h-5 text-amber-500 shrink-0 mt-0.5" />
<p className="text-amber-200/80 text-xs">
<p className="text-amber-700 dark:text-amber-200/80 text-xs">
This platform involves financial transactions and prediction markets.
You are solely responsible for your actions.
</p>
</div>

{/* Age verification */}
<label className="flex items-center gap-3 p-3 bg-neutral-800/50 rounded-xl cursor-pointer group">
<label className="flex items-center gap-3 p-3 bg-neutral-200/50 dark:bg-neutral-800/50 rounded-xl cursor-pointer group">
<div className="relative">
<input
type="checkbox"
Expand All @@ -131,7 +131,7 @@ export function WelcomeModal({ show, onAccept }: WelcomeModalProps) {
<div className={`w-5 h-5 rounded border-2 transition-colors ${
ageConfirmed
? 'bg-orange-500 border-orange-500'
: 'border-neutral-600 group-hover:border-neutral-500'
: 'border-neutral-400 dark:border-neutral-600 group-hover:border-neutral-500'
}`}>
{ageConfirmed && (
<motion.svg
Expand All @@ -148,13 +148,13 @@ export function WelcomeModal({ show, onAccept }: WelcomeModalProps) {
)}
</div>
</div>
<span className="text-neutral-300 text-sm">
<span className="text-neutral-600 dark:text-neutral-300 text-sm">
I confirm that I am at least 18 years old
</span>
</label>

{/* Terms acceptance */}
<label className="flex items-center gap-3 p-3 bg-neutral-800/50 rounded-xl cursor-pointer group">
<label className="flex items-center gap-3 p-3 bg-neutral-200/50 dark:bg-neutral-800/50 rounded-xl cursor-pointer group">
<div className="relative">
<input
type="checkbox"
Expand All @@ -165,7 +165,7 @@ export function WelcomeModal({ show, onAccept }: WelcomeModalProps) {
<div className={`w-5 h-5 rounded border-2 transition-colors ${
termsAccepted
? 'bg-orange-500 border-orange-500'
: 'border-neutral-600 group-hover:border-neutral-500'
: 'border-neutral-400 dark:border-neutral-600 group-hover:border-neutral-500'
}`}>
{termsAccepted && (
<motion.svg
Expand All @@ -182,7 +182,7 @@ export function WelcomeModal({ show, onAccept }: WelcomeModalProps) {
)}
</div>
</div>
<span className="text-neutral-300 text-sm">
<span className="text-neutral-600 dark:text-neutral-300 text-sm">
I understand that I use this platform at my own risk
</span>
</label>
Expand All @@ -202,7 +202,7 @@ export function WelcomeModal({ show, onAccept }: WelcomeModalProps) {
className={`w-full py-4 rounded-xl font-semibold text-white flex items-center justify-center gap-2 transition-all ${
canProceed
? 'bg-linear-to-r from-orange-500 to-orange-600 hover:from-orange-400 hover:to-orange-500 shadow-lg shadow-orange-500/25'
: 'bg-neutral-700 cursor-not-allowed opacity-50'
: 'bg-neutral-400 dark:bg-neutral-700 cursor-not-allowed opacity-50'
}`}
>
<span>Enter the Sphere</span>
Expand Down
3 changes: 3 additions & 0 deletions src/components/wallet/L3/views/L3WalletView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { AnimatePresence, motion } from 'framer-motion';
import { AssetRow } from '../../shared/components';
import { AggregatedAsset } from '../data/model';
import { useEffect, useMemo, useRef, useState, useCallback } from 'react';
import { useNavigate } from 'react-router-dom';
import { useWallet } from '../hooks/useWallet';
import { CreateWalletFlow } from '../../onboarding/CreateWalletFlow';
import { TokenRow } from '../../shared/components';
Expand Down Expand Up @@ -45,6 +46,7 @@ export function L3WalletView({
setIsSettingsOpen,
setIsL1WalletOpen,
}: L3WalletViewProps) {
const navigate = useNavigate();
const { identity, assets, tokens, isLoadingAssets, isLoadingIdentity, nametag, getSeedPhrase } = useWallet();
const { exportTxf, importTxf, isExportingTxf, isImportingTxf, isSyncing, isEnabled: isIpfsEnabled } = useIpfsStorage();
const { totalBalance: l1TotalBalance, deleteWallet } = useL1Wallet();
Expand Down Expand Up @@ -215,6 +217,7 @@ export function L3WalletView({
const handleLogout = async () => {
try {
await deleteWallet();
navigate('/');
} catch (err) {
console.error('Failed to logout:', err);
}
Expand Down
5 changes: 4 additions & 1 deletion src/config/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ export const agents: AgentConfig[] = [
greetingMessage: "Welcome to the P2P Prediction Marketplace! 🏟️ Right now I'm only able to help you make predictions on sports games. I can help you check odds, make a prediction and show you what your active predictions are. What are we looking at ? English Premier League ? IPL ? Let me know and we can have some fun.",
backendActivityId: 'sports',
quickActions: [
{ label: 'Live odds', message: 'Show me live odds' },
{ label: 'Basketball', message: 'Show me basketball' },
{ label: 'Soccer', message: 'Show me soccer' },
{ label: 'Tennis', message: 'Show me tennis' },
{ label: 'Cricket', message: 'Show me cricket' },
{ label: 'My bets', message: 'Show my bets' },
],
contentType: 'match',
Expand Down