After adding the logo to the application1

This commit is contained in:
Your Name 2026-07-27 19:55:16 +02:00
parent 9d033bf40f
commit 75e252173e
24 changed files with 207 additions and 50 deletions

View File

@ -100,6 +100,23 @@ function resolveFromAddress(): string {
return from;
}
/** Shared Prediqo HTML shell (no external image — works in all mail clients). */
function brandEmailHtml(title: string, bodyHtml: string): string {
return `
<div style="font-family:system-ui,-apple-system,Segoe UI,sans-serif;max-width:520px;margin:0 auto;padding:24px;background:#0B0F1A;color:#F8FAFC;border-radius:12px;">
<div style="font-weight:900;font-size:20px;letter-spacing:0.3px;color:#10B981;margin:0 0 16px;">Prediqo</div>
<h2 style="color:#F8FAFC;margin:0 0 16px;font-size:22px;">${title}</h2>
${bodyHtml}
<p style="font-size:11px;color:#64748B;margin:28px 0 0;border-top:1px solid #1E2740;padding-top:14px;">
Prediqo — premium prediction platform
</p>
</div>
`;
}
const CTA_STYLE =
'background:#10B981;color:#0B0F1A;text-decoration:none;padding:12px 24px;border-radius:8px;font-weight:700;display:inline-block;';
/**
* @param to - Recipient email address
* @param verifyUrl - Full URL opened by the user to confirm ownership
@ -116,19 +133,17 @@ export async function sendVerificationEmail(to: string, verifyUrl: string): Prom
'If you did not create an account, you can ignore this email.',
].join('\n');
const html = `
<div style="font-family:system-ui,sans-serif;max-width:520px;margin:0 auto;padding:24px;">
<h2 style="color:#D6B25E;margin:0 0 16px;">Verify your email</h2>
<p>Thanks for joining <strong>Prediqo</strong>. Confirm your email address to secure your account.</p>
const html = brandEmailHtml(
'Verify your email',
`
<p style="color:#94A3B8;line-height:1.5;">Thanks for joining <strong style="color:#F8FAFC;">Prediqo</strong>. Confirm your email address to secure your account.</p>
<p style="margin:24px 0;">
<a href="${verifyUrl}" style="background:#D6B25E;color:#0B0E14;text-decoration:none;padding:12px 24px;border-radius:8px;font-weight:700;display:inline-block;">
Verify email
</a>
<a href="${verifyUrl}" style="${CTA_STYLE}">Verify email</a>
</p>
<p style="font-size:13px;color:#666;">Or copy this link:<br/><a href="${verifyUrl}">${verifyUrl}</a></p>
<p style="font-size:12px;color:#888;">Link expires in ${config.email.verificationExpiryHours} hours.</p>
</div>
`;
<p style="font-size:13px;color:#64748B;">Or copy this link:<br/><a href="${verifyUrl}" style="color:#34D399;">${verifyUrl}</a></p>
<p style="font-size:12px;color:#64748B;">Link expires in ${config.email.verificationExpiryHours} hours.</p>
`
);
if (config.email.transport === 'console') {
console.log('[email] Verification message (console transport)');
@ -167,19 +182,17 @@ export async function sendPasswordResetEmail(to: string, resetUrl: string): Prom
'If you did not request this, you can ignore this email.',
].join('\n');
const html = `
<div style="font-family:system-ui,sans-serif;max-width:520px;margin:0 auto;padding:24px;">
<h2 style="color:#D6B25E;margin:0 0 16px;">Reset your password</h2>
<p>We received a request to reset the password for your <strong>Prediqo</strong> account.</p>
const html = brandEmailHtml(
'Reset your password',
`
<p style="color:#94A3B8;line-height:1.5;">We received a request to reset the password for your <strong style="color:#F8FAFC;">Prediqo</strong> account.</p>
<p style="margin:24px 0;">
<a href="${resetUrl}" style="background:#D6B25E;color:#0B0E14;text-decoration:none;padding:12px 24px;border-radius:8px;font-weight:700;display:inline-block;">
Reset password
</a>
<a href="${resetUrl}" style="${CTA_STYLE}">Reset password</a>
</p>
<p style="font-size:13px;color:#666;">Or copy this link:<br/><a href="${resetUrl}">${resetUrl}</a></p>
<p style="font-size:12px;color:#888;">Link expires in ${config.email.passwordResetExpiryHours} hour(s). If you did not request this, ignore this email.</p>
</div>
`;
<p style="font-size:13px;color:#64748B;">Or copy this link:<br/><a href="${resetUrl}" style="color:#34D399;">${resetUrl}</a></p>
<p style="font-size:12px;color:#64748B;">Link expires in ${config.email.passwordResetExpiryHours} hour(s). If you did not request this, ignore this email.</p>
`
);
if (config.email.transport === 'console') {
console.log('[email] Password reset message (console transport)');

BIN
brand/prediqo-app-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 831 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
brand/prediqo-lockup.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

16
brand/prediqo-lockup.svg Normal file
View File

@ -0,0 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 420 128" role="img" aria-label="Prediqo">
<!-- Mark -->
<g transform="translate(0,0)">
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
<line x1="48" y1="44" x2="48" y2="92" stroke="#F8FAFC" stroke-width="2.5" stroke-linecap="round"/>
<rect x="38" y="56" width="20" height="28" rx="3" fill="#10B981"/>
<line x1="76" y1="28" x2="76" y2="88" stroke="#F8FAFC" stroke-width="2.5" stroke-linecap="round"/>
<rect x="66" y="36" width="20" height="44" rx="3" fill="#34D399"/>
<path d="M32 84 C 44 72, 60 48, 92 32" fill="none" stroke="#D4AF37" stroke-width="4" stroke-linecap="round"/>
<path d="M84 28 L96 28 L90 40 Z" fill="#D4AF37"/>
<path d="M104 24 L106.4 29.6 L112 32 L106.4 34.4 L104 40 L101.6 34.4 L96 32 L101.6 29.6 Z" fill="#D4AF37"/>
</g>
<!-- Wordmark -->
<text x="152" y="82" font-family="Inter, Segoe UI, system-ui, sans-serif" font-size="64" font-weight="800" fill="#F8FAFC" letter-spacing="-1.5">Prediqo</text>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 KiB

BIN
brand/prediqo-mark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 KiB

15
brand/prediqo-mark.svg Normal file
View File

@ -0,0 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-label="Prediqo mark">
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
<!-- Left candle -->
<line x1="48" y1="44" x2="48" y2="92" stroke="#F8FAFC" stroke-width="2.5" stroke-linecap="round"/>
<rect x="38" y="56" width="20" height="28" rx="3" fill="#10B981"/>
<!-- Right candle -->
<line x1="76" y1="28" x2="76" y2="88" stroke="#F8FAFC" stroke-width="2.5" stroke-linecap="round"/>
<rect x="66" y="36" width="20" height="44" rx="3" fill="#34D399"/>
<!-- Prediction arc + arrow -->
<path d="M32 84 C 44 72, 60 48, 92 32" fill="none" stroke="#D4AF37" stroke-width="4" stroke-linecap="round"/>
<path d="M84 28 L96 28 L90 40 Z" fill="#D4AF37"/>
<!-- Spark -->
<path d="M104 24 L106.4 29.6 L112 32 L106.4 34.4 L104 40 L101.6 34.4 L96 32 L101.6 29.6 Z" fill="#D4AF37"/>
</svg>

After

Width:  |  Height:  |  Size: 980 B

View File

@ -3,6 +3,9 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" href="/brand/prediqo-mark.png" />
<link rel="apple-touch-icon" href="/brand/prediqo-app-icon.png" />
<meta name="theme-color" content="#0B0F1A" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Prediqo</title>
</head>

Binary file not shown.

After

Width:  |  Height:  |  Size: 831 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -0,0 +1,16 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 420 128" role="img" aria-label="Prediqo">
<!-- Mark -->
<g transform="translate(0,0)">
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
<line x1="48" y1="44" x2="48" y2="92" stroke="#F8FAFC" stroke-width="2.5" stroke-linecap="round"/>
<rect x="38" y="56" width="20" height="28" rx="3" fill="#10B981"/>
<line x1="76" y1="28" x2="76" y2="88" stroke="#F8FAFC" stroke-width="2.5" stroke-linecap="round"/>
<rect x="66" y="36" width="20" height="44" rx="3" fill="#34D399"/>
<path d="M32 84 C 44 72, 60 48, 92 32" fill="none" stroke="#D4AF37" stroke-width="4" stroke-linecap="round"/>
<path d="M84 28 L96 28 L90 40 Z" fill="#D4AF37"/>
<path d="M104 24 L106.4 29.6 L112 32 L106.4 34.4 L104 40 L101.6 34.4 L96 32 L101.6 29.6 Z" fill="#D4AF37"/>
</g>
<!-- Wordmark -->
<text x="152" y="82" font-family="Inter, Segoe UI, system-ui, sans-serif" font-size="64" font-weight="800" fill="#F8FAFC" letter-spacing="-1.5">Prediqo</text>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 KiB

View File

@ -0,0 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-label="Prediqo mark">
<rect width="128" height="128" rx="28" fill="#0B0F1A"/>
<rect x="8" y="8" width="112" height="112" rx="24" fill="none" stroke="#D4AF37" stroke-width="3.5"/>
<!-- Left candle -->
<line x1="48" y1="44" x2="48" y2="92" stroke="#F8FAFC" stroke-width="2.5" stroke-linecap="round"/>
<rect x="38" y="56" width="20" height="28" rx="3" fill="#10B981"/>
<!-- Right candle -->
<line x1="76" y1="28" x2="76" y2="88" stroke="#F8FAFC" stroke-width="2.5" stroke-linecap="round"/>
<rect x="66" y="36" width="20" height="44" rx="3" fill="#34D399"/>
<!-- Prediction arc + arrow -->
<path d="M32 84 C 44 72, 60 48, 92 32" fill="none" stroke="#D4AF37" stroke-width="4" stroke-linecap="round"/>
<path d="M84 28 L96 28 L90 40 Z" fill="#D4AF37"/>
<!-- Spark -->
<path d="M104 24 L106.4 29.6 L112 32 L106.4 34.4 L104 40 L101.6 34.4 L96 32 L101.6 29.6 Z" fill="#D4AF37"/>
</svg>

After

Width:  |  Height:  |  Size: 980 B

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 958 B

View File

@ -9,11 +9,11 @@ import { normalizeLocale } from '../../shared/i18n';
const baseThemeOptions: ThemeOptions = {
palette: {
mode: 'dark',
primary: { main: '#D6B25E' }, // gold accent
secondary: { main: '#7C5CFF' },
primary: { main: '#10B981' }, // emerald — aligned with mobile + brand mark
secondary: { main: '#7C5CFF' }, // bonus / accent purple
background: {
default: '#0B0E14',
paper: '#121724',
default: '#0B0F1A',
paper: '#12182B',
},
},
shape: { borderRadius: 14 },
@ -43,7 +43,7 @@ const baseThemeOptions: ThemeOptions = {
};
/**
* Builds the application MUI theme with a dark palette, gold accent, and shared component styling.
* Builds the application MUI theme with a dark palette, emerald brand primary, and shared component styling.
*
* @returns A configured MUI theme instance for the admin console.
*/

View File

@ -12,6 +12,7 @@ import { api } from '../../shared/services/api';
import { useAuth } from '../../shared/auth/AuthContext';
import { LanguageSwitcher } from '../../shared/i18n/LanguageSwitcher';
import { apiErrorMessage } from '../../shared/utils/apiError';
import { PrediqoLogo } from '../../shared/brand/PrediqoLogo';
import { TurnstileWidget } from './components/TurnstileWidget';
type LoginResponse = {
@ -155,10 +156,8 @@ export function LoginPage() {
</Box>
<Card sx={{ width: '100%', maxWidth: 520 }}>
<CardContent>
<Typography variant="h4" sx={{ fontWeight: 900 }}>
Prediqo
</Typography>
<Typography sx={{ opacity: 0.75, mt: 0.5 }}>{t('auth.brandSubtitle')}</Typography>
<PrediqoLogo size={48} />
<Typography sx={{ opacity: 0.75, mt: 1.25 }}>{t('auth.brandSubtitle')}</Typography>
<Stack spacing={2} sx={{ mt: 3 }}>
{verifyHint && <Alert severity="info">{t('auth.verifyEmailHint')}</Alert>}

View File

@ -21,6 +21,7 @@ import { GenderSelect } from '../../shared/components/GenderSelect';
import type { UserGender } from '../../shared/constants/userGender';
import { api } from '../../shared/services/api';
import { LanguageSwitcher } from '../../shared/i18n/LanguageSwitcher';
import { PrediqoLogo } from '../../shared/brand/PrediqoLogo';
import { apiErrorMessage } from '../../shared/utils/apiError';
type RegisterResponse = {
@ -133,7 +134,8 @@ export function RegisterPage() {
</Box>
<Card sx={{ width: '100%', maxWidth: 560 }}>
<CardContent>
<Typography variant="h4" sx={{ fontWeight: 900 }}>
<PrediqoLogo size={40} />
<Typography variant="h5" sx={{ fontWeight: 900, mt: 1.5 }}>
{t('auth.createAccount')}
</Typography>
<Typography sx={{ opacity: 0.75, mt: 0.5 }}>{t('auth.registerSubtitle')}</Typography>

View File

@ -22,6 +22,7 @@ import { Link as RouterLink, useNavigate } from 'react-router-dom';
import { Trans, useTranslation } from 'react-i18next';
import { api } from '../../shared/services/api';
import { LanguageSwitcher } from '../../shared/i18n/LanguageSwitcher';
import { PrediqoLogo } from '../../shared/brand/PrediqoLogo';
import { apiErrorMessage } from '../../shared/utils/apiError';
type SetupTab = 'create' | 'promote';
@ -151,6 +152,7 @@ export function SetupPage() {
</Box>
<Card sx={{ width: '100%', maxWidth: 560 }}>
<CardContent>
<PrediqoLogo size={36} sx={{ mb: 1.5 }} />
<Stack direction="row" spacing={1} sx={{ alignItems: 'center', mb: 1 }}>
<AdminPanelSettingsRoundedIcon color="primary" />
<Typography variant="h4" sx={{ fontWeight: 900 }}>

View File

@ -18,6 +18,7 @@ import { Link as RouterLink, useSearchParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { api } from '../../shared/services/api';
import { LanguageSwitcher } from '../../shared/i18n/LanguageSwitcher';
import { PrediqoLogo } from '../../shared/brand/PrediqoLogo';
import { apiErrorMessage } from '../../shared/utils/apiError';
type Status = 'loading' | 'success' | 'error' | 'missing';
@ -80,9 +81,7 @@ export function VerifyEmailPage() {
}}
>
<Stack spacing={2.5} sx={{ alignItems: 'center', textAlign: 'center' }}>
<Typography variant="h5" sx={{ fontWeight: 900 }}>
Prediqo
</Typography>
<PrediqoLogo size={40} />
{status === 'loading' && (
<>

View File

@ -18,6 +18,7 @@ import ThumbUpAltOutlinedIcon from '@mui/icons-material/ThumbUpAltOutlined';
import ThumbDownAltOutlinedIcon from '@mui/icons-material/ThumbDownAltOutlined';
import HelpOutlineRoundedIcon from '@mui/icons-material/HelpOutlineRounded';
import TrendingUpRoundedIcon from '@mui/icons-material/TrendingUpRounded';
import { PrediqoLogo } from '../../shared/brand/PrediqoLogo';
import { useQuery, useMutation } from '@tanstack/react-query';
import { useMemo, useState } from 'react';
import { Link as RouterLink } from 'react-router-dom';
@ -164,14 +165,13 @@ export function FaqPage({ showPublicHeader = false }: FaqPageProps) {
direction="row"
sx={{ mb: 3, flexWrap: 'wrap', gap: 1, alignItems: 'center', justifyContent: 'space-between' }}
>
<Typography
<Box
component={RouterLink}
to={isLoggedIn ? '/home' : '/login'}
variant="h6"
sx={{ fontWeight: 900, textDecoration: 'none', color: 'inherit' }}
sx={{ textDecoration: 'none', color: 'inherit', display: 'inline-flex' }}
>
Prediqo
</Typography>
<PrediqoLogo size={28} />
</Box>
<Stack direction="row" spacing={1}>
{!isLoggedIn && (
<>

View File

@ -39,7 +39,7 @@ export function notifySupportMessage(options: {
const n = new Notification(options.title, {
body: options.body,
tag: options.tag ?? 'prediqo-support',
icon: '/favicon.ico',
icon: '/brand/prediqo-mark.png',
});
n.onclick = () => {
window.focus();

View File

@ -0,0 +1,63 @@
/**
* Prediqo brand mark / lockup for web chrome and auth surfaces.
*/
import { Box, Stack, Typography, type SxProps, type Theme } from '@mui/material';
type PrediqoLogoProps = {
/** `mark` = icon only; `wordmark`/`lockup` = icon + wordmark */
variant?: 'mark' | 'lockup' | 'wordmark';
size?: number;
showWordmark?: boolean;
wordmarkSx?: SxProps<Theme>;
sx?: SxProps<Theme>;
};
export function PrediqoLogo({
variant = 'wordmark',
size = 40,
showWordmark,
wordmarkSx,
sx,
}: PrediqoLogoProps) {
const withText =
showWordmark ?? (variant === 'lockup' || variant === 'wordmark');
return (
<Stack
direction="row"
spacing={1.25}
sx={[
{ alignItems: 'center' },
...(Array.isArray(sx) ? sx : sx ? [sx] : []),
]}
>
<Box
component="img"
src="/brand/prediqo-mark.svg"
alt=""
aria-hidden
sx={{
width: size,
height: size,
display: 'block',
flexShrink: 0,
borderRadius: `${Math.round(size * 0.22)}px`,
}}
/>
{withText ? (
<Typography
component="span"
sx={{
fontWeight: 900,
fontSize: size * 0.55,
letterSpacing: 0.2,
lineHeight: 1,
...(wordmarkSx as object),
}}
>
Prediqo
</Typography>
) : null}
</Stack>
);
}

View File

@ -13,7 +13,6 @@ import {
IconButton,
Stack,
Toolbar,
Typography,
} from '@mui/material';
import SettingsOutlinedIcon from '@mui/icons-material/SettingsOutlined';
import PeopleOutlineRoundedIcon from '@mui/icons-material/PeopleOutlineRounded';
@ -28,6 +27,7 @@ import AssessmentRoundedIcon from '@mui/icons-material/AssessmentRounded';
import SecurityRoundedIcon from '@mui/icons-material/SecurityRounded';
import HeadsetMicRoundedIcon from '@mui/icons-material/HeadsetMicRounded';
import GavelRoundedIcon from '@mui/icons-material/GavelRounded';
import { PrediqoLogo } from '../brand/PrediqoLogo';
import HelpOutlineRoundedIcon from '@mui/icons-material/HelpOutlineRounded';
import Badge from '@mui/material/Badge';
import { useQuery, useQueryClient } from '@tanstack/react-query';
@ -183,7 +183,9 @@ export function AppShell() {
const drawer = (
<Box sx={{ width: 280, px: 1.5, py: 2 }}>
<Typography sx={{ fontWeight: 900, px: 1.5, pb: 1 }}>Prediqo</Typography>
<Box sx={{ px: 1.5, pb: 1.25 }}>
<PrediqoLogo size={32} />
</Box>
<Divider sx={{ opacity: 0.2, mb: 1 }} />
<List>
{navItems.map((it) => {
@ -260,15 +262,13 @@ export function AppShell() {
<MenuRoundedIcon fontSize="small" />
</IconButton>
)}
<Typography
variant="h6"
sx={{ fontWeight: 800, letterSpacing: 0.2, whiteSpace: 'nowrap' }}
<Box
component={RouterLink}
to="/home"
style={{ textDecoration: 'none', color: 'inherit' }}
sx={{ textDecoration: 'none', color: 'inherit', display: 'inline-flex' }}
>
Prediqo
</Typography>
<PrediqoLogo size={28} />
</Box>
<Box sx={{ flex: 1, minWidth: 16 }} />