m1m02530125 Claude Sonnet 4.6 commited on
Commit
8a5652e
ยท
1 Parent(s): 3ce2be9

improve: refined page header design with brand identity

Browse files

- Gradient background: #0f172a โ†’ #1e293b โ†’ #1a3a52 (depth + warmth)
- Subtle bottom border: rgba(148,163,184,.18) matching UOMAN silver palette
- Box shadow: 0 2px 16px rgba(0,0,0,.35) for layered depth
- Mobile: UOMAN logo injected into header via JS (hidden on desktop)
- Desktop: 'SKY DINING UOMAN' watermark text on right when no action buttons
- Typography: font-weight 700, letter-spacing .02em for refined look

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. templates/base.html +44 -4
templates/base.html CHANGED
@@ -86,11 +86,39 @@
86
 
87
  /* โ”€โ”€ ๅ…ฑ้€š โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
88
  .page-header {
89
- background: #1e293b; color: white;
90
- padding: .75rem 1rem; position: sticky; top: 0; z-index: 100;
91
- display: flex; align-items: center; gap: .5rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  }
93
- .page-header h1 { font-size: 1.1rem; margin: 0; font-weight: 600; }
94
  .content { padding: 1rem; }
95
  .card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-radius: 12px; }
96
  .btn-primary { background: #0ea5e9; border-color: #0ea5e9; }
@@ -289,6 +317,18 @@
289
  });
290
  });
291
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  // โ”€โ”€ PWA service worker โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
293
  if ('serviceWorker' in navigator) {
294
  navigator.serviceWorker.register('/static/sw.js').catch(() => {});
 
86
 
87
  /* โ”€โ”€ ๅ…ฑ้€š โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
88
  .page-header {
89
+ background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1a3a52 100%);
90
+ border-bottom: 1.5px solid rgba(148,163,184,.18);
91
+ box-shadow: 0 2px 16px rgba(0,0,0,.35);
92
+ color: white;
93
+ padding: .7rem 1rem;
94
+ position: sticky; top: 0; z-index: 100;
95
+ display: flex; align-items: center; gap: .65rem;
96
+ min-height: 54px;
97
+ }
98
+ .page-header h1 {
99
+ font-size: 1rem; margin: 0; font-weight: 700; letter-spacing: .02em;
100
+ }
101
+ /* ใƒขใƒใ‚คใƒซใฎใฟใƒ˜ใƒƒใƒ€ใƒผใซใƒญใ‚ด่กจ็คบ */
102
+ .page-header .header-brand-logo {
103
+ width: 30px; height: 30px; object-fit: contain;
104
+ border-radius: 6px; flex-shrink: 0; opacity: .92;
105
+ }
106
+ @media (min-width: 768px) {
107
+ .page-header .header-brand-logo { display: none; }
108
+ }
109
+ /* ใƒ˜ใƒƒใƒ€ใƒผๅณ็ซฏใฎใƒ–ใƒฉใƒณใƒ‰ๅ๏ผˆใƒ‡ใ‚นใ‚ฏใƒˆใƒƒใƒ—ใฎใฟ๏ผ‰ */
110
+ @media (min-width: 768px) {
111
+ .page-header::after {
112
+ content: 'SKY DINING UOMAN';
113
+ margin-left: auto;
114
+ font-size: .6rem; letter-spacing: .14em;
115
+ color: rgba(148,163,184,.35);
116
+ font-weight: 600; white-space: nowrap;
117
+ text-transform: uppercase; pointer-events: none;
118
+ }
119
+ /* ใ‚ขใ‚ฏใ‚ทใƒงใƒณ่ฆ็ด ใŒใ‚ใ‚‹ๅ ดๅˆใฏ after ใ‚’้ž่กจ็คบ */
120
+ .page-header:has(.ms-auto)::after { display: none; }
121
  }
 
122
  .content { padding: 1rem; }
123
  .card { border: none; box-shadow: 0 1px 3px rgba(0,0,0,.08); border-radius: 12px; }
124
  .btn-primary { background: #0ea5e9; border-color: #0ea5e9; }
 
317
  });
318
  });
319
 
320
+ // โ”€โ”€ ใƒขใƒใ‚คใƒซใƒ˜ใƒƒใƒ€ใƒผใซใƒญใ‚ดใ‚’ๆŒฟๅ…ฅ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
321
+ (function() {
322
+ if (window.innerWidth >= 768) return;
323
+ const hdr = document.querySelector('.page-header');
324
+ if (!hdr) return;
325
+ const img = document.createElement('img');
326
+ img.src = '/static/icons/apple-touch-icon.png';
327
+ img.alt = '';
328
+ img.className = 'header-brand-logo';
329
+ hdr.insertBefore(img, hdr.firstChild);
330
+ })();
331
+
332
  // โ”€โ”€ PWA service worker โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
333
  if ('serviceWorker' in navigator) {
334
  navigator.serviceWorker.register('/static/sw.js').catch(() => {});