Skip to content

Commit 83d4797

Browse files
committed
Figure style media query, placeholder imgs
1 parent 14bcc82 commit 83d4797

File tree

2 files changed

+30
-27
lines changed

2 files changed

+30
-27
lines changed

docs/src/overrides/assets/stylesheets/home.css

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ section + section {
156156
margin: 1rem 0;
157157
gap: 1rem;
158158
}
159+
.figure-collection figure img {
160+
max-width: 100%;
161+
}
159162

160163
.text-centered {
161164
text-align: center;
@@ -191,17 +194,6 @@ section + section {
191194
grid-template-columns: repeat(var(--cols), minmax(10px, 1fr));
192195
}
193196

194-
.figure-collection figure {
195-
flex-flow: row nowrap;
196-
}
197-
198-
.figure-collection figure > * {
199-
flex: 1;
200-
}
201-
202-
.figure-collection figure > :first-child {
203-
order: var(--figureOrder);
204-
}
205197

206198
.width-160 {
207199
max-width: 160ch;
@@ -212,7 +204,18 @@ section + section {
212204
.tx-hero {
213205
padding: 4rem 1rem 6rem;
214206
}
207+
.figure-collection figure {
208+
flex-flow: row nowrap;
209+
justify-content: flex-start;
210+
}
215211

212+
.figure-collection figure > * {
213+
flex: 1;
214+
}
215+
216+
.figure-collection figure > :first-child {
217+
order: var(--figureOrder);
218+
}
216219
.md-typeset h2 {
217220
font-size: 2rem;
218221
line-height: 2.5rem;

docs/src/overrides/home.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ <h1>Control and Customization
186186
<div class="figure-collection">
187187
<figure>
188188
<a href="how-to-guides/huggingface/pipeline/nlp/translation/">
189-
<img src="assets/images/examples/translate-app.png" alt="Built-in search" loading="lazy"
190-
width="500" height="327">
189+
<img src="https://placehold.co/600x300" alt="Alt text" loading="lazy">
191190
</a>
192191
<figcaption class="md-typeset">
193192
<h2>Ingest any STAC Collection</h2>
@@ -204,8 +203,7 @@ <h2>Ingest any STAC Collection</h2>
204203
<figure>
205204
<a href="how-to-guides/huggingface/pipeline/nlp/translation/" title="GUI"
206205
style="--figureOrder: 1;">
207-
<img src="assets/images/examples/translation-gui.png" alt="GUI" loading="lazy" width="500"
208-
height="327">
206+
<img src="https://placehold.co/600x300" alt="Alt text" loading="lazy">
209207
</a>
210208
<figcaption class="md-typeset">
211209
<h2>Download and Deploy</h2>
@@ -219,8 +217,7 @@ <h2>Download and Deploy</h2>
219217
</figure>
220218
<figure>
221219
<a href="reference/restapi/" title="swagger-ui" tabindex="-1">
222-
<img src="assets/images/swagger-ui.jpg" alt="swagger-ui" loading="lazy" width="500"
223-
height="327">
220+
<img src="https://placehold.co/600x300" alt="Alt text" loading="lazy">
224221
</a>
225222
<figcaption class="md-typeset">
226223
<h2>Raster Vector, faster connector</h2>
@@ -265,16 +262,19 @@ <h1><mark>We believe</mark> that the <mark>community</mark> of people who would
265262
<header class="md-typeset text-centered">
266263
<h5 id="eoapi-in-action" class="supheading">eoAPI in action</h5>
267264
</header>
268-
<figure>
269-
<figcaption class="md-typeset">
270-
<h3>NASA IMPACT’s VEDA Project</h3>
271-
<p>NASA IMPACT is leading the way for how NASA (and space agencies worldwide) can increase the
272-
societal impact of their data through cloud-optimized data distribution. They’ve invested
273-
significant resources in advancing modern public EO data standards, tools, and platforms.
274-
You
275-
can see eoAPI services in action across</p>
276-
</figcaption>
277-
</figure>
265+
<div class="figure-collection">
266+
<figure>
267+
<figcaption class="md-typeset">
268+
<h3>NASA IMPACT’s VEDA Project</h3>
269+
<p>NASA IMPACT is leading the way for how NASA (and space agencies worldwide) can increase the
270+
societal impact of their data through cloud-optimized data distribution. They’ve invested
271+
significant resources in advancing modern public EO data standards, tools, and platforms.
272+
You
273+
can see eoAPI services in action across</p>
274+
</figcaption>
275+
<img src="https://placehold.co/600x300" alt="Alt text" loading="lazy">
276+
</figure>
277+
</div>
278278
</div>
279279
</div>
280280
</section>

0 commit comments

Comments
 (0)