UCS2014 commited on
Commit
2db3382
·
verified ·
1 Parent(s): 1f38d0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -26,8 +26,8 @@ THEME: Dict[str, Any] = {
26
  "width": 340,
27
  "tagline": "We Deliver AI-Based Solutions For O&G Industry",
28
  "tagline_size": 22,
29
- "tagline_weight": 500, # lighter + italic looks premium
30
- "tagline_italic": True,
31
  "tagline_color": "#0B1220",
32
  "logo_bottom": 14,
33
  "block_bottom": 22,
@@ -52,16 +52,16 @@ THEME: Dict[str, Any] = {
52
  "title_color": "#0B1220",
53
  "title_size": 26,
54
  "title_weight": 900,
55
- "title_mt": 0, # <- space above title
56
- "title_mb": 2, # <- space below title
57
  "blurb_color": "#566275",
58
  "blurb_size": 16,
59
- "blurb_mt": 0, # <- space above blurb
60
- "blurb_mb": 8, # <- space below blurb
61
 
62
  # Card logo controls (no frame/border)
63
  "logo_max_w": 250,
64
- "logo_area_h": 160, # <- FIXED area so Space 1 == Space 2
65
  "logo_top": 6,
66
  "logo_bottom": 6,
67
  },
@@ -70,7 +70,7 @@ THEME: Dict[str, Any] = {
70
  "bg1": "#0B1220", "bg2": "#162338",
71
  "text": "#FFFFFF", "border": "rgba(11,18,32,.55)",
72
  "font_size": 16, "font_weight": 800,
73
- "btn_mt": 8, # <- space above the button
74
  },
75
  }
76
 
@@ -323,7 +323,7 @@ def build_card_vars(style: Dict[str, Any]) -> str:
323
  if "pad_v" in style: s.append(f"--c-pv:{int(style['pad_v'])}px")
324
  if "pad_h" in style: s.append(f"--c-ph:{int(style['pad_h'])}px")
325
  if "bg_top" in style: s.append(f"--c-bg-top:{style['bg_top']}")
326
- if "bg_bot" in style: s.append(f"--c-bg-bot:{style['bg_bot"]}")
327
  if "border" in style: s.append(f"--c-border:{style['border']}")
328
  if "border_width" in style: s.append(f"--c-bw:{int(style['border_width'])}px")
329
  if "title_color" in style: s.append(f"--c-title-color:{style['title_color']}")
 
26
  "width": 340,
27
  "tagline": "We Deliver AI-Based Solutions For O&G Industry",
28
  "tagline_size": 22,
29
+ "tagline_weight": 500, # lighter than bold
30
+ "tagline_italic": True, # italic tagline
31
  "tagline_color": "#0B1220",
32
  "logo_bottom": 14,
33
  "block_bottom": 22,
 
52
  "title_color": "#0B1220",
53
  "title_size": 26,
54
  "title_weight": 900,
55
+ "title_mt": 0, # space above title
56
+ "title_mb": 2, # space below title
57
  "blurb_color": "#566275",
58
  "blurb_size": 16,
59
+ "blurb_mt": 0, # space above blurb
60
+ "blurb_mb": 8, # space below blurb
61
 
62
  # Card logo controls (no frame/border)
63
  "logo_max_w": 250,
64
+ "logo_area_h": 160, # fixed area so top spacing is identical across cards
65
  "logo_top": 6,
66
  "logo_bottom": 6,
67
  },
 
70
  "bg1": "#0B1220", "bg2": "#162338",
71
  "text": "#FFFFFF", "border": "rgba(11,18,32,.55)",
72
  "font_size": 16, "font_weight": 800,
73
+ "btn_mt": 8, # space above the button
74
  },
75
  }
76
 
 
323
  if "pad_v" in style: s.append(f"--c-pv:{int(style['pad_v'])}px")
324
  if "pad_h" in style: s.append(f"--c-ph:{int(style['pad_h'])}px")
325
  if "bg_top" in style: s.append(f"--c-bg-top:{style['bg_top']}")
326
+ if "bg_bot" in style: s.append(f"--c-bg-bot:{style['bg_bot']}") # ← FIXED QUOTES
327
  if "border" in style: s.append(f"--c-border:{style['border']}")
328
  if "border_width" in style: s.append(f"--c-bw:{int(style['border_width'])}px")
329
  if "title_color" in style: s.append(f"--c-title-color:{style['title_color']}")