Deploy ProFlo UI revamp: shop, admin, cashier + API
Browse filesFiles changed (3)
48 unmodified lines49505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811948 unmodified linesreturn (<main className="opsHqPage">{/* Background Hexagon Pattern */}<div className="opsHqPage__hexBg"><svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="hexGrid" width="60" height="103.923" patternUnits="userSpaceOnUse"><path d="M30 0 L60 17.32 L60 51.96 L30 69.28 L0 51.96 L0 17.32 Z" fill="none" stroke="#0052FF" strokeWidth="0.75" strokeOpacity="0.06" /><path d="M30 51.96 L60 69.28 L60 103.92 L30 121.24 L0 103.92 L0 69.28 Z" fill="none" stroke="#0052FF" strokeWidth="0.75" strokeOpacity="0.06" /></pattern></defs><rect width="100%" height="100%" fill="url(#hexGrid)" /></svg></div><div className="opsHqPage__content">{/* Top Brand Tagline */}<div className="opsHqPage__header"><ProFloLogo size={42} showText /><span className="opsHqPage__tagline">SMART CHECKOUT. SMOOTH FLOW.</span></div>{/* Hero Section */}<div className="opsHqPage__hero"><h1 className="opsHqPage__title">Operations HQ</h1><p className="opsHqPage__sub">Catalogue, inventory, counter tokens, receipts, and store KPIs—one console for your ProFlo deployment.</p>{/* Form Card */}<div className="opsHqCard"><form onSubmit={(e) => void onSubmit(e)} className="opsHqForm"><div className="opsHqForm__grid"><div className="opsHqField"><label htmlFor="username-input">Username</label><inputid="username-input"className="opsHqInput"autoComplete="username"value={username}onChange={(e) => setUsername(e.target.value)}placeholder="Enter username"/></div><div className="opsHqField"><label htmlFor="password-input">Password</label><inputid="password-input"ref={passwordRef}className="opsHqInput"type="password"autoComplete="current-password"value={password}onChange={(e) => setPassword(e.target.value)}placeholder="Enter password"/></div></div>{error ? <p className="opsHqError">{error}</p> : null}<button type="submit" className="opsHqSubmitBtn" disabled={busy}>{busy ? "Authenticating…" : "Sign in to admin"} <ArrowRight className="w-4 h-4 inline ml-1.5" /></button></form></div></div></div></main>48 unmodified lines49505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613748 unmodified linesreturn (<main className="opsHqPage">{/* Left Pane: Decorative Brand & Illustration Area */}<div className="opsHqPage__brandPane">{/* Background Hexagon Pattern */}<div className="opsHqPage__hexBg"><svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="hexGrid" width="60" height="103.923" patternUnits="userSpaceOnUse"><path d="M30 0 L60 17.32 L60 51.96 L30 69.28 L0 51.96 L0 17.32 Z" fill="none" stroke="#0052FF" strokeWidth="0.75" strokeOpacity="0.06" /><path d="M30 51.96 L60 69.28 L60 103.92 L30 121.24 L0 103.92 L0 69.28 Z" fill="none" stroke="#0052FF" strokeWidth="0.75" strokeOpacity="0.06" /></pattern></defs><rect width="100%" height="100%" fill="url(#hexGrid)" /></svg></div><div className="opsHqPage__brandContent"><ProFloLogo size={54} showText /><span className="opsHqPage__brandTagline">SMART CHECKOUT. SMOOTH FLOW.</span><h2 className="opsHqPage__brandTitle">Operations HQ</h2><p className="opsHqPage__brandSub">Catalogue, inventory, counter tokens, receipts, and store KPIs—one console for your ProFlo deployment.</p><div className="opsHqPage__artWrapper">{/* Elegant light vector graphic representing checkout flow */}<svg viewBox="0 0 400 200" className="w-full max-w-[340px] opacity-90 mx-auto" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="20" y="40" width="100" height="120" rx="12" fill="white" stroke="#E2E8F0" strokeWidth="2" /><rect x="280" y="40" width="100" height="120" rx="12" fill="white" stroke="#E2E8F0" strokeWidth="2" /><path d="M130 100 H270" stroke="#0052FF" strokeWidth="2.5" strokeLinecap="round" strokeDasharray="6 6" /><circle cx="120" cy="100" r="10" fill="#0052FF" /><circle cx="280" cy="100" r="10" fill="#10B981" /><rect x="40" y="65" width="60" height="6" rx="3" fill="#F1F5F9" /><rect x="40" y="80" width="40" height="6" rx="3" fill="#F1F5F9" /><rect x="300" y="65" width="60" height="6" rx="3" fill="#F1F5F9" /><rect x="300" y="80" width="40" height="6" rx="3" fill="#F1F5F9" /></svg></div></div></div>{/* Right Pane: Login Form Area */}<div className="opsHqPage__formPane"><div className="opsHqPage__formWrapper"><div className="opsHqPage__formHeader"><h3 className="opsHqPage__formTitle">Welcome Back</h3><p className="opsHqPage__formSub">Please sign in to your administrator account.</p></div><form onSubmit={(e) => void onSubmit(e)} className="opsHqForm"><div className="opsHqForm__grid"><div className="opsHqField"><label htmlFor="username-input">Username</label><inputid="username-input"className="opsHqInput"autoComplete="username"value={username}onChange={(e) => setUsername(e.target.value)}placeholder="Enter username"/></div><div className="opsHqField"><label htmlFor="password-input">Password</label><inputid="password-input"ref={passwordRef}className="opsHqInput"type="password"autoComplete="current-password"value={password}onChange={(e) => setPassword(e.target.value)}placeholder="Enter password"/></div></div>{error ? <p className="opsHqError">{error}</p> : null}<button type="submit" className="opsHqSubmitBtn" disabled={busy}>{busy ? "Authenticating…" : "Sign in to admin"} <ArrowRight className="w-4 h-4 inline ml-1.5" /></button></form></div></div></main>
2091 unmodified lines20922093209420952096209720982099210021012102210321042105210621072108210921103 unmodified lines211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382091 unmodified lines.opsHqPage {min-height: 100vh;background:radial-gradient(circle at 15% 15%, rgba(0, 82, 255, 0.15) 0%, transparent 45%),radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),#050B1B;color: #F8FAFC;font-family: var(--font);position: relative;overflow: hidden;display: flex;flex-direction: column;align-items: center;justify-content: center;padding: 48px 20px;}.opsHqPage__hexBg {3 unmodified lineswidth: 100%;height: 100%;pointer-events: none;opacity: 0.55;mix-blend-mode: plus-lighter;}.opsHqPage__content {max-width: 960px;width: 100%;margin: 0 auto;position: relative;z-index: 2;text-align: center;}.opsHqPage__header {display: flex;flex-direction: column;align-items: center;gap: 6px;margin-bottom: 24px;}.opsHqPage__tagline {font-family: var(--font-display);font-size: 11px;font-weight: 800;letter-spacing: 0.15em;color: #94A3B8;text-transform: uppercase;margin-top: 4px;}.opsHqPage__hero {margin-bottom: 36px;}.opsHqPage__title {font-family: var(--font-display);font-size: clamp(2.4rem, 4vw, 3.2rem);font-weight: 800;color: #FFFFFF;letter-spacing: -0.03em;margin: 0 0 12px;}.opsHqPage__sub {font-size: 15.5px;color: #94A3B8;max-width: 580px;margin: 0 auto 32px;line-height: 1.55;}.opsHqCard {max-width: 520px;margin: 0 auto;background: rgba(15, 23, 42, 0.45);backdrop-filter: blur(24px);-webkit-backdrop-filter: blur(24px);border: 1px solid rgba(255, 255, 255, 0.08);border-radius: 20px;padding: 32px;box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);}.opsHqForm {display: flex;flex-direction: column;gap: 16px;}.opsHqForm__grid {display: grid;grid-template-columns: 1fr 1fr;gap: 12px;}.opsHqField {display: flex;flex-direction: column;gap: 5px;text-align: left;}.opsHqField label {font-size: 11px;font-weight: 700;color: #94A3B8;text-transform: uppercase;letter-spacing: 0.06em;}.opsHqInput {width: 100%;height: 44px;padding: 0 14px;border-radius: 10px;border: 1px solid rgba(255, 255, 255, 0.12);font-size: 14.5px;font-family: var(--font);background: rgba(255, 255, 255, 0.04);color: #FFFFFF;outline: none;transition: all 150ms ease;}.opsHqInput:focus {border-color: #0052FF;background: rgba(255, 255, 255, 0.08);box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.3);}.opsHqError {font-size: 12.5px;color: #F87171;margin: 0;font-weight: 600;}.opsHqSubmitBtn {height: 46px;background: #0052FF;2091 unmodified lines2092209320942095209620972098209921002101210221033 unmodified lines2107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592091 unmodified lines.opsHqPage {min-height: 100vh;display: flex;background: #FFFFFF;color: #0F172A;font-family: var(--font);position: relative;overflow: hidden;}.opsHqPage__hexBg {3 unmodified lineswidth: 100%;height: 100%;pointer-events: none;opacity: 0.75;}.opsHqPage__brandPane {flex: 1.25;background: linear-gradient(135deg, #F5F8FF 0%, #E8EFFF 100%);display: flex;align-items: center;justify-content: center;position: relative;padding: 48px;border-right: 1px solid rgba(0, 82, 255, 0.08);}.opsHqPage__brandContent {max-width: 440px;position: relative;z-index: 2;text-align: left;}.opsHqPage__brandTagline {font-family: var(--font-display);font-size: 11px;font-weight: 800;letter-spacing: 0.15em;color: #0052FF;text-transform: uppercase;margin-top: 12px;display: inline-block;}.opsHqPage__brandTitle {font-family: var(--font-display);font-size: clamp(2.4rem, 4.5vw, 3.4rem);font-weight: 800;color: #0A1931;letter-spacing: -0.02em;margin: 16px 0 8px;}.opsHqPage__brandSub {font-size: 15px;color: #475569;line-height: 1.6;margin-bottom: 32px;}.opsHqPage__artWrapper {margin-top: 40px;background: rgba(255, 255, 255, 0.6);border: 1px solid rgba(0, 82, 255, 0.06);border-radius: 20px;padding: 24px;box-shadow: 0 10px 30px rgba(0, 82, 255, 0.03);}.opsHqPage__formPane {flex: 1;display: flex;align-items: center;justify-content: center;padding: 48px;background: #FFFFFF;position: relative;z-index: 5;}.opsHqPage__formWrapper {width: 100%;max-width: 380px;}.opsHqPage__formHeader {margin-bottom: 32px;text-align: left;}.opsHqPage__formTitle {font-family: var(--font-display);font-size: 1.85rem;font-weight: 800;color: #0A1931;margin-bottom: 6px;}.opsHqPage__formSub {font-size: 14px;color: #64748B;}.opsHqForm {display: flex;flex-direction: column;gap: 20px;}.opsHqForm__grid {display: flex;flex-direction: column;gap: 16px;}.opsHqField {display: flex;flex-direction: column;gap: 6px;text-align: left;}.opsHqField label {font-size: 11px;font-weight: 700;color: #475569;text-transform: uppercase;letter-spacing: 0.05em;}.opsHqInput {width: 100%;height: 46px;padding: 0 14px;border-radius: 10px;border: 1px solid #E2E8F0;font-size: 14.5px;font-family: var(--font);background: #FAFCFF;color: #0F172A;outline: none;transition: all 150ms ease;}.opsHqInput:focus {border-color: #0052FF;background: #FFFFFF;box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);}.opsHqError {font-size: 12.5px;color: #EF4444;margin: 0;font-weight: 600;}.opsHqSubmitBtn {height: 46px;background: #0052FF;
49 unmodified lines505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612749 unmodified linesreturn (<main className="opsHqPage">{/* Background Hexagon Pattern */}<div className="opsHqPage__hexBg"><svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="hexGridRoot" width="60" height="103.923" patternUnits="userSpaceOnUse"><path d="M30 0 L60 17.32 L60 51.96 L30 69.28 L0 51.96 L0 17.32 Z" fill="none" stroke="#0052FF" strokeWidth="0.8" strokeOpacity="0.08" /><path d="M30 51.96 L60 69.28 L60 103.92 L30 121.24 L0 103.92 L0 69.28 Z" fill="none" stroke="#0052FF" strokeWidth="0.8" strokeOpacity="0.08" /></pattern></defs><rect width="100%" height="100%" fill="url(#hexGridRoot)" /></svg></div>{/* Decorative Retail Background Glow Accents */}<div className="absolute top-10 left-10 w-96 h-96 bg-blue-400/10 rounded-full blur-3xl pointer-events-none" /><div className="absolute top-1/3 right-10 w-96 h-96 bg-indigo-500/10 rounded-full blur-3xl pointer-events-none" /><div className="opsHqPage__content">{/* Top Brand Tagline */}<div className="opsHqPage__header"><ProFloLogo size={46} showText /><span className="opsHqPage__tagline">SMART CHECKOUT. SMOOTH FLOW.</span></div>{/* Hero Headline Section */}<div className="opsHqPage__hero"><h1 className="opsHqPage__title">Operations HQ</h1><p className="opsHqPage__sub">Catalogue, inventory, counter tokens, receipts, and store KPIs—one unified command console for your retail deployment.</p>{/* Quick Sign-In Form Box */}<div className="opsHqCard"><form onSubmit={(e) => void onSubmit(e)} className="opsHqForm"><div className="opsHqForm__grid"><div className="opsHqField"><label htmlFor="user-in">Username</label><inputid="user-in"className="opsHqInput"autoComplete="username"value={username}onChange={(e) => setUsername(e.target.value)}placeholder="Enter username"/></div><div className="opsHqField"><label htmlFor="pass-in">Password</label><inputid="pass-in"ref={passwordRef}className="opsHqInput"type="password"autoComplete="current-password"value={password}onChange={(e) => setPassword(e.target.value)}placeholder="Enter password"/></div></div>{error ? <p className="opsHqError">{error}</p> : null}<button type="submit" className="opsHqSubmitBtn" disabled={busy}>{busy ? "Authenticating…" : "Sign in to admin"} <ArrowRight className="w-4 h-4 inline ml-1.5" /></button></form></div></div></div></main>);}49 unmodified lines505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914049 unmodified linesreturn (<main className="opsHqPage">{/* Left Pane: Decorative Brand & Illustration Area */}<div className="opsHqPage__brandPane">{/* Background Hexagon Pattern */}<div className="opsHqPage__hexBg"><svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="hexGridRoot" width="60" height="103.923" patternUnits="userSpaceOnUse"><path d="M30 0 L60 17.32 L60 51.96 L30 69.28 L0 51.96 L0 17.32 Z" fill="none" stroke="#0052FF" strokeWidth="0.8" strokeOpacity="0.08" /><path d="M30 51.96 L60 69.28 L60 103.92 L30 121.24 L0 103.92 L0 69.28 Z" fill="none" stroke="#0052FF" strokeWidth="0.8" strokeOpacity="0.08" /></pattern></defs><rect width="100%" height="100%" fill="url(#hexGridRoot)" /></svg></div><div className="opsHqPage__brandContent"><ProFloLogo size={54} showText /><span className="opsHqPage__brandTagline">SMART CHECKOUT. SMOOTH FLOW.</span><h2 className="opsHqPage__brandTitle">Operations HQ</h2><p className="opsHqPage__brandSub">Catalogue, inventory, counter tokens, receipts, and store KPIs—one unified command console for your retail deployment.</p><div className="opsHqPage__artWrapper">{/* Elegant light vector graphic representing checkout flow */}<svg viewBox="0 0 400 200" className="w-full max-w-[340px] opacity-90 mx-auto" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="20" y="40" width="100" height="120" rx="12" fill="white" stroke="#E2E8F0" strokeWidth="2" /><rect x="280" y="40" width="100" height="120" rx="12" fill="white" stroke="#E2E8F0" strokeWidth="2" /><path d="M130 100 H270" stroke="#0052FF" strokeWidth="2.5" strokeLinecap="round" strokeDasharray="6 6" /><circle cx="120" cy="100" r="10" fill="#0052FF" /><circle cx="280" cy="100" r="10" fill="#10B981" /><rect x="40" y="65" width="60" height="6" rx="3" fill="#F1F5F9" /><rect x="40" y="80" width="40" height="6" rx="3" fill="#F1F5F9" /><rect x="300" y="65" width="60" height="6" rx="3" fill="#F1F5F9" /><rect x="300" y="80" width="40" height="6" rx="3" fill="#F1F5F9" /></svg></div></div></div>{/* Right Pane: Login Form Area */}<div className="opsHqPage__formPane"><div className="opsHqPage__formWrapper"><div className="opsHqPage__formHeader"><h3 className="opsHqPage__formTitle">Welcome Back</h3><p className="opsHqPage__formSub">Please sign in to your administrator account.</p></div><form onSubmit={(e) => void onSubmit(e)} className="opsHqForm"><div className="opsHqForm__grid"><div className="opsHqField"><label htmlFor="user-in">Username</label><inputid="user-in"className="opsHqInput"autoComplete="username"value={username}onChange={(e) => setUsername(e.target.value)}placeholder="Enter username"/></div><div className="opsHqField"><label htmlFor="pass-in">Password</label><inputid="pass-in"ref={passwordRef}className="opsHqInput"type="password"autoComplete="current-password"value={password}onChange={(e) => setPassword(e.target.value)}placeholder="Enter password"/></div></div>{error ? <p className="opsHqError">{error}</p> : null}<button type="submit" className="opsHqSubmitBtn" disabled={busy}>{busy ? "Authenticating…" : "Sign in to admin"} <ArrowRight className="w-4 h-4 inline ml-1.5" /></button></form></div></div></main>);}
apps/admin-web/app/admin/page.tsx+74-56
apps/admin-web/app/globals.css+86-65
apps/admin-web/app/page.tsx+74-61