UCS2014 commited on
Commit
50e6982
·
verified ·
1 Parent(s): a7476c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -50,6 +50,8 @@ st.markdown(
50
  --top-spacer: {TOP_SPACER}px;
51
  --card-width: {CARD_WIDTH}px;
52
  --grid-gap: {GRID_GAP}px;
 
 
53
  }}
54
 
55
  html, body, [data-testid="stAppViewContainer"] {{ height: 100%; }}
@@ -70,16 +72,23 @@ st.markdown(
70
  display:block; margin: 0 auto 8px;
71
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.12));
72
  }}
73
- .hero h1 {{ font-size: 2.3rem; margin: .4rem 0 .2rem; }}
74
- .hero p {{ color: #5a5f6a; margin: 0 auto; max-width: 720px; }}
 
 
 
 
 
 
75
 
76
- /* GRID: precise card width */
77
  .grid {{
78
  display: flex;
79
  gap: var(--grid-gap);
80
  justify-content: center;
81
  align-items: stretch;
82
  flex-wrap: nowrap;
 
83
  }}
84
  @media (max-width: calc(2 * var(--card-width) + var(--grid-gap) + 64px)) {{
85
  .grid {{ flex-wrap: wrap; }}
@@ -108,7 +117,6 @@ st.markdown(
108
  .card h3 {{ margin:6px 0 2px; }}
109
  .card p {{ color:#5a5f6a; min-height:30px; margin:0 8px 2px; }}
110
 
111
- /* Light button with dark text */
112
  .btn {{
113
  display:inline-block; padding:10px 14px; border-radius:12px;
114
  border:1px solid #e5e7eb; text-decoration:none;
@@ -116,7 +124,6 @@ st.markdown(
116
  }}
117
  .btn:hover {{ background:#e5e7eb; }}
118
 
119
- /* Compact footer; no extra vertical space */
120
  .footer {{ text-align:center; color:#6b7280; font-size:1.0em; margin-top: 6px; }}
121
  .footer hr {{ margin: 6px 0; }}
122
  </style>
 
50
  --top-spacer: {TOP_SPACER}px;
51
  --card-width: {CARD_WIDTH}px;
52
  --grid-gap: {GRID_GAP}px;
53
+ --tagline-gap: 2px; /* distance between H1 and tagline */
54
+ --grid-top-space: 8px; /* space above the cards */
55
  }}
56
 
57
  html, body, [data-testid="stAppViewContainer"] {{ height: 100%; }}
 
72
  display:block; margin: 0 auto 8px;
73
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.12));
74
  }}
75
+ /* Make tagline closer to the company name */
76
+ .hero h1 {{ font-size: 2.3rem; margin: .2rem 0 0; }}
77
+ .hero p {{
78
+ color: #5a5f6a;
79
+ margin: var(--tagline-gap) auto 0; /* top margin = small gap to H1 */
80
+ max-width: 720px;
81
+ font-style: italic; /* ← italic tagline */
82
+ }}
83
 
84
+ /* GRID: precise card width + extra space above cards */
85
  .grid {{
86
  display: flex;
87
  gap: var(--grid-gap);
88
  justify-content: center;
89
  align-items: stretch;
90
  flex-wrap: nowrap;
91
+ margin-top: var(--grid-top-space); /* ← space above cards */
92
  }}
93
  @media (max-width: calc(2 * var(--card-width) + var(--grid-gap) + 64px)) {{
94
  .grid {{ flex-wrap: wrap; }}
 
117
  .card h3 {{ margin:6px 0 2px; }}
118
  .card p {{ color:#5a5f6a; min-height:30px; margin:0 8px 2px; }}
119
 
 
120
  .btn {{
121
  display:inline-block; padding:10px 14px; border-radius:12px;
122
  border:1px solid #e5e7eb; text-decoration:none;
 
124
  }}
125
  .btn:hover {{ background:#e5e7eb; }}
126
 
 
127
  .footer {{ text-align:center; color:#6b7280; font-size:1.0em; margin-top: 6px; }}
128
  .footer hr {{ margin: 6px 0; }}
129
  </style>