Compare commits

..

No commits in common. "d3765ceaf8d87c93a6b8a4051087edd80c157928" and "37693556b371c68e375a4c6282e5391a56836566" have entirely different histories.

13 changed files with 23 additions and 6 deletions

View File

@ -3,6 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" sizes="48x48" /> <link rel="icon" href="/favicon.ico" sizes="48x48" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<meta name="theme-color" content="#0B1B3B" /> <meta name="theme-color" content="#0B1B3B" />
<meta name="mobile-web-app-capable" content="yes" /> <meta name="mobile-web-app-capable" content="yes" />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 684 B

10
public/favicon.svg Normal file
View File

@ -0,0 +1,10 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="sunrise" x1="128" y1="140" x2="384" y2="372" gradientUnits="userSpaceOnUse">
<stop stop-color="#F26B3A"/>
<stop offset="1" stop-color="#FBA94C"/>
</linearGradient>
</defs>
<rect width="512" height="512" rx="112" fill="#0B1B3B"/>
<text x="256" y="256" font-family="'Inter Tight','Inter',system-ui,sans-serif" font-size="230" font-weight="800" fill="url(#sunrise)" text-anchor="middle" dominant-baseline="central" letter-spacing="-8">KS</text>
</svg>

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 KiB

10
public/logo.svg Normal file
View File

@ -0,0 +1,10 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="sunrise" x1="128" y1="140" x2="384" y2="372" gradientUnits="userSpaceOnUse">
<stop stop-color="#F26B3A"/>
<stop offset="1" stop-color="#FBA94C"/>
</linearGradient>
</defs>
<rect width="512" height="512" rx="112" fill="#0B1B3B"/>
<text x="256" y="256" font-family="'Inter Tight','Inter',system-ui,sans-serif" font-size="230" font-weight="800" fill="url(#sunrise)" text-anchor="middle" dominant-baseline="central" letter-spacing="-8">KS</text>
</svg>

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 560 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 368 KiB

View File

@ -6,7 +6,6 @@ import { useAuth } from '../auth/context';
import { onAuthErrorAll, orderBookingClient } from '../api/clients'; import { onAuthErrorAll, orderBookingClient } from '../api/clients';
import { SCREENS } from './tabs'; import { SCREENS } from './tabs';
import { routeConfig } from '../routesConfig'; import { routeConfig } from '../routesConfig';
import logoUrl from '../assets/logo.png';
import './screen.css'; import './screen.css';
const canAccessScreen = (key: string, isAdmin: boolean, roles: string[]) => { const canAccessScreen = (key: string, isAdmin: boolean, roles: string[]) => {
@ -114,10 +113,7 @@ export function ConsoleLayout() {
)} )}
> >
<div className="h-14 flex items-center justify-between px-4 border-b border-border-subtle pt-[env(safe-area-inset-top)] shrink-0"> <div className="h-14 flex items-center justify-between px-4 border-b border-border-subtle pt-[env(safe-area-inset-top)] shrink-0">
<div className="flex items-center gap-2.5"> <span className="font-semibold text-foreground">Krishna Field Sales</span>
<img src={logoUrl} alt="Krishna" className="w-7 h-7 rounded-full object-cover shadow-sm" />
<span className="font-bold text-foreground tracking-tight">Krishna Field Sales</span>
</div>
<button <button
type="button" type="button"
onClick={() => setIsMenuOpen(false)} onClick={() => setIsMenuOpen(false)}

View File

@ -13,7 +13,7 @@ export default defineConfig({
tailwindcss(), tailwindcss(),
VitePWA({ VitePWA({
registerType: 'autoUpdate', registerType: 'autoUpdate',
pwaAssets: { image: 'public/logo.png' }, pwaAssets: { image: 'public/logo.svg' },
manifest: { manifest: {
name: 'Krishna Sales', name: 'Krishna Sales',
short_name: 'Krishna', short_name: 'Krishna',