Skip to content

Commit 3767967

Browse files
committed
Create a more appealing docs landing page - improved UI & responsive-friendly
1 parent 52c087c commit 3767967

File tree

2 files changed

+54
-31
lines changed

2 files changed

+54
-31
lines changed

docs/index.md

+12-7
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@ hide:
1414
<img class="mascot-image" src="./assets/robot_mascot.jpeg"/>
1515
<div class="mascot-text-container">
1616
<div class="mascot-text">
17-
Mesop
17+
Build delightful web apps quickly in Python
1818
<div class="mascot-subtext">
19-
Build delightful demos quickly in Python
19+
Used at Google for rapid internal app development
2020
</div>
2121
</div>
2222
</div>
2323
</div>
2424

2525
<div class="mascot-image-spacer"></div>
2626

27-
Mesop is a Python-based UI framework that allows you to rapidly build web demos:
28-
27+
Mesop is a Python-based UI framework that allows you to rapidly build web apps like demos and internal apps:
2928

3029
<div class="box-row">
3130
<div class="reason-box">
@@ -52,13 +51,19 @@ Mesop is a Python-based UI framework that allows you to rapidly build web demos:
5251
</div>
5352
</div>
5453

54+
<div class="video-card">
55+
<div style="text-align: center; font-size: 18px; font-weight: 500; margin-bottom: 12px;">
56+
Edit your UI directly in the browser using the Visual Editor
57+
</div>
58+
5559
<div class="video-container">
5660

57-
<iframe width="560" height="315" src="https://www.youtube.com/embed/tvbO-Lqq_TA?si=bf5pTMneieRLisMc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe><!-- <div>Visual Editor</div>
58-
</div>!-->
61+
<iframe width="560" height="315" src="https://www.youtube.com/embed/tvbO-Lqq_TA?si=bf5pTMneieRLisMc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
62+
</div>
63+
5964
</div>
6065

61-
## Demo
66+
## Write your first Mesop app in less than 10 lines of code...
6267

6368
=== "Demo & Code"
6469

docs/stylesheets/extra.css

+42-24
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,23 @@ p {
166166
}
167167

168168
.mascot-image-container {
169+
border-radius: 12px;
169170
display: flex;
170-
margin: -16px -16px 12px;
171-
padding: 0 16px;
171+
padding: 0 24px;
172172
background: #d1cab8;
173-
position: absolute;
174-
left: 0;
175-
width: calc(100% + 16px);
173+
min-height: 240px;
174+
align-items: center;
176175
}
177176

178177
.mascot-image {
179-
width: 360px;
180-
margin-left: 80px;
178+
width: 280px;
179+
margin-left: 16px;
180+
}
181+
182+
@media (max-width: 768px) {
183+
.mascot-image {
184+
width: 200px;
185+
}
181186
}
182187

183188
.mascot-text-container {
@@ -188,38 +193,33 @@ p {
188193

189194
.mascot-text {
190195
letter-spacing: 0.17px;
191-
position: absolute;
192-
top: 50%;
193-
left: 50%;
194-
transform: translate(-50%, -50%);
195-
color: white;
196-
font-size: 3rem;
197-
letter-spacing: 0.25px;
198-
font-weight: bold;
199-
width: 100%;
200-
text-shadow: 0 0 0.075rem #211d2dcc;
201-
}
202-
203-
.mascot-subtext {
204-
text-shadow: 0 0 0.02rem #211d2dcc;
196+
color: rgba(0, 0, 0, 0.87);
205197
font-size: 1.5rem;
198+
line-height: 1.25;
206199
font-weight: 500;
207200
}
208201

209-
.mascot-image-spacer {
210-
height: 360px;
202+
.mascot-subtext {
203+
margin-top: 12px;
204+
text-shadow: 0 0 0.02rem #211d2dcc;
205+
font-size: 1rem;
206+
font-weight: normal;
211207
}
212208

213209
.box-row {
214210
display: flex;
215211
flex-direction: row;
216212
flex-wrap: wrap;
217213
justify-content: space-around;
218-
margin: 0 auto 24px;
214+
margin: 0 auto;
219215
width: min(100%, 1024px);
220216
}
221217

222218
.reason-box {
219+
box-shadow:
220+
0 10px 20px #0000000a,
221+
0 2px 6px #0000000a,
222+
0 0 1px #0000000a;
223223
background: var(--md-code-hl-color--light);
224224
width: min(100%, 280px);
225225
padding: 16px;
@@ -228,6 +228,12 @@ p {
228228
margin-right: 24px;
229229
}
230230

231+
@media (max-width: 768px) {
232+
.reason-box {
233+
width: 100%;
234+
}
235+
}
236+
231237
.reason-title {
232238
font-weight: 500;
233239
}
@@ -260,6 +266,18 @@ p {
260266
border: 0;
261267
}
262268

269+
.video-card {
270+
box-shadow:
271+
0 10px 20px #0000000a,
272+
0 2px 6px #0000000a,
273+
0 0 1px #0000000a;
274+
border: 1px solid rgb(243, 244, 246);
275+
border-radius: 12px;
276+
padding: 16px;
277+
margin: 0 auto;
278+
width: min(100%, 640px);
279+
}
280+
263281
.video-container {
264282
display: flex;
265283
justify-content: center;

0 commit comments

Comments
 (0)