mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-11-16 01:21:16 +01:00
logo on loading
This commit is contained in:
parent
abbe209c38
commit
cde8f4ca6a
@ -2,11 +2,13 @@ import { useEffect } from 'react';
|
|||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import { useAuth } from '@app/auth/UseSession';
|
import { useAuth } from '@app/auth/UseSession';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { useLogoPath } from '@app/hooks/useLogoPath';
|
||||||
|
|
||||||
export default function LoggedInState() {
|
export default function LoggedInState() {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const { user } = useAuth();
|
const { user } = useAuth();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const logoPath = useLogoPath();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const timer = setTimeout(() => {
|
const timer = setTimeout(() => {
|
||||||
@ -34,7 +36,13 @@ export default function LoggedInState() {
|
|||||||
padding: '32px'
|
padding: '32px'
|
||||||
}}>
|
}}>
|
||||||
<div style={{ textAlign: 'center', marginBottom: '24px' }}>
|
<div style={{ textAlign: 'center', marginBottom: '24px' }}>
|
||||||
<div style={{ fontSize: '48px', marginBottom: '16px' }}>✅</div>
|
<div style={{ marginBottom: '16px', display: 'flex', justifyContent: 'center' }}>
|
||||||
|
<img
|
||||||
|
src={logoPath}
|
||||||
|
alt="Stirling PDF Logo"
|
||||||
|
style={{ width: '64px', height: '64px', objectFit: 'contain' }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<h1 style={{ fontSize: '24px', fontWeight: 'bold', color: '#059669', marginBottom: '8px' }}>
|
<h1 style={{ fontSize: '24px', fontWeight: 'bold', color: '#059669', marginBottom: '8px' }}>
|
||||||
{t('login.youAreLoggedIn')}
|
{t('login.youAreLoggedIn')}
|
||||||
</h1>
|
</h1>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user