Menixis Claude Opus 4.7 (1M context) commited on
Commit
76a4da0
Β·
1 Parent(s): d3137b1

Restyle hero as a ticket: transparent notch holes, bold perforation, balanced layout

Browse files

- Edge notches are now TRUE transparent holes (CSS mask, intersected) so the
page background shows through them exactly -- no colour-matching seam
- Bold, evenly-spaced dashed perforation via repeating-linear-gradient
(22px dashes, 16px gaps, 4px thick)
- Centered "PTT DOCUMENTS GENERATOR" pill in the stub; AUTO FORM title and
subtitle left-aligned; all hero content vertically balanced
- Sync note.md theme description

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files changed (2) hide show
  1. note.md +7 -2
  2. streamlit_app.py +25 -30
note.md CHANGED
@@ -17,8 +17,13 @@ vendor name, job title, etc., then renders a downloadable document.
17
  - **SDK:** Docker (see `Dockerfile`), Streamlit on **port 7860** (HF convention).
18
  - **Theme:** "Indigo Dusk" dark theme (deep indigo-purple bg, panel-purple cards) with a
19
  flat single-tone cream accent (`#EFD2A0`) on the hero card, primary/download/PO-search
20
- buttons and the active step β€” all with purple (`#4A3D78`) text/icons. Lavender is the
21
- secondary accent, mint = success. Minimalist: flat accents, no glow auras. No sidebar.
 
 
 
 
 
22
  Data loads silently
23
  β€” no data-source bar and no manual upload UI (the app does not tell users where the
24
  data comes from).
 
17
  - **SDK:** Docker (see `Dockerfile`), Streamlit on **port 7860** (HF convention).
18
  - **Theme:** "Indigo Dusk" dark theme (deep indigo-purple bg, panel-purple cards) with a
19
  flat single-tone cream accent (`#EFD2A0`) on the hero card, primary/download/PO-search
20
+ buttons and the active step β€” all with purple (`#4A3D78`) text/icons. The hero card is
21
+ styled as a **ticket/receipt**: a centered "PTT DOCUMENTS GENERATOR" pill in the stub,
22
+ a bold dashed perforation, and two semicircular edge notches punched as TRUE transparent
23
+ holes via CSS `mask` (so the page background shows through them exactly β€” no colour
24
+ seam). AUTO FORM title + subtitle are left-aligned; all content is vertically balanced.
25
+ Lavender is the secondary accent, mint = success. Minimalist: flat accents, no glow
26
+ auras. No sidebar.
27
  Data loads silently
28
  β€” no data-source bar and no manual upload UI (the app does not tell users where the
29
  data comes from).
streamlit_app.py CHANGED
@@ -271,54 +271,47 @@ st.markdown("""
271
  }
272
 
273
  /* ─── HERO ───────────────────────────────────────────────────── */
 
 
 
 
274
  .hero {
275
  position: relative;
276
  background: #EFD2A0;
277
- padding: 2.75rem 2.5rem;
278
  border-radius: 24px;
279
  color: #4A3D78;
280
  margin-bottom: 2rem;
281
  overflow: hidden;
282
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
 
 
 
 
 
 
 
 
283
  animation: fadeInUp 0.6s ease;
284
  }
285
- .hero::before {
286
- content: "";
287
- position: absolute;
288
- top: -120px;
289
- right: -80px;
290
- width: 360px;
291
- height: 360px;
292
- display: none;
293
- border-radius: 50%;
294
- animation: blob 14s ease-in-out infinite;
295
- }
296
- .hero::after {
297
- content: "";
298
- position: absolute;
299
- bottom: -100px;
300
- left: 30%;
301
- width: 300px;
302
- height: 300px;
303
- display: none;
304
- border-radius: 50%;
305
- animation: blob 18s ease-in-out infinite reverse;
306
- }
307
  .hero-pattern {
308
  position: absolute;
309
- inset: 0;
310
- background-image: none;
311
- background-size: 24px 24px;
312
- opacity: 0.6;
 
 
 
313
  pointer-events: none;
314
  }
315
- .hero-content { position: relative; z-index: 2; }
316
  .hero-badge {
317
  display: inline-flex;
318
  align-items: center;
319
  gap: 0.4rem;
320
  background: rgba(50, 44, 82, 0.92);
321
- backdrop-filter: blur(10px);
322
  border: 1px solid rgba(50, 44, 82, 0.5);
323
  color: #F5DEAC;
324
  padding: 0.4rem 0.9rem;
@@ -326,11 +319,12 @@ st.markdown("""
326
  font-size: 0.78rem;
327
  font-weight: 600;
328
  letter-spacing: 0.04em;
329
- margin-bottom: 1.25rem;
330
  text-transform: uppercase;
331
  }
332
  .hero .hero-title {
333
  color: #4A3D78 !important;
 
334
  font-size: 2.75rem !important;
335
  font-weight: 800 !important;
336
  margin: 0 0 0.75rem 0 !important;
@@ -340,6 +334,7 @@ st.markdown("""
340
  }
341
  .hero .hero-subtitle {
342
  color: rgba(74, 61, 120, 0.85) !important;
 
343
  font-size: 1.05rem !important;
344
  font-weight: 400 !important;
345
  max-width: 600px;
 
271
  }
272
 
273
  /* ─── HERO ───────────────────────────────────────────────────── */
274
+ /* Cream ticket card. The two edge notches are punched as TRUE transparent
275
+ holes via mask, so the page background shows through them exactly β€” no
276
+ colour-matching seam. Both mask layers are intersected so each circle
277
+ becomes a hole (default "add" would cancel them out). */
278
  .hero {
279
  position: relative;
280
  background: #EFD2A0;
281
+ padding: 0.7rem 2.5rem 1.5rem;
282
  border-radius: 24px;
283
  color: #4A3D78;
284
  margin-bottom: 2rem;
285
  overflow: hidden;
286
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
287
+ -webkit-mask:
288
+ radial-gradient(circle 15px at 0 56px, transparent 15px, #000 15.5px),
289
+ radial-gradient(circle 15px at 100% 56px, transparent 15px, #000 15.5px);
290
+ -webkit-mask-composite: source-in;
291
+ mask:
292
+ radial-gradient(circle 15px at 0 56px, transparent 15px, #000 15.5px),
293
+ radial-gradient(circle 15px at 100% 56px, transparent 15px, #000 15.5px);
294
+ mask-composite: intersect;
295
  animation: fadeInUp 0.6s ease;
296
  }
297
+ /* Ticket perforation β€” bold, widely-spaced dashes along the tear line. */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298
  .hero-pattern {
299
  position: absolute;
300
+ top: 54px;
301
+ left: 18px;
302
+ right: 18px;
303
+ height: 4px;
304
+ background-image: repeating-linear-gradient(to right,
305
+ #2A2342 0, #2A2342 22px,
306
+ transparent 22px, transparent 38px);
307
  pointer-events: none;
308
  }
309
+ .hero-content { position: relative; z-index: 2; text-align: center; }
310
  .hero-badge {
311
  display: inline-flex;
312
  align-items: center;
313
  gap: 0.4rem;
314
  background: rgba(50, 44, 82, 0.92);
 
315
  border: 1px solid rgba(50, 44, 82, 0.5);
316
  color: #F5DEAC;
317
  padding: 0.4rem 0.9rem;
 
319
  font-size: 0.78rem;
320
  font-weight: 600;
321
  letter-spacing: 0.04em;
322
+ margin-bottom: 2.2rem;
323
  text-transform: uppercase;
324
  }
325
  .hero .hero-title {
326
  color: #4A3D78 !important;
327
+ text-align: left !important;
328
  font-size: 2.75rem !important;
329
  font-weight: 800 !important;
330
  margin: 0 0 0.75rem 0 !important;
 
334
  }
335
  .hero .hero-subtitle {
336
  color: rgba(74, 61, 120, 0.85) !important;
337
+ text-align: left !important;
338
  font-size: 1.05rem !important;
339
  font-weight: 400 !important;
340
  max-width: 600px;