Skip to content

Commit 778eba6

Browse files
authored
docs: improve text readability on examples page (#5182)
## Summary - Add darker overlay for image generation and document processing cards to improve text readability on light-colored cover images - Maintain same gradient positioning as base overlay while increasing opacity values ## Before/After Screenshots <img width="1070" height="945" alt="image" src="https://github.com/user-attachments/assets/7ef48940-fa07-4c14-a4a9-092d1e9bb274" /> <img width="1066" height="947" alt="image" src="https://github.com/user-attachments/assets/643bfbba-2b78-48ae-94ae-ae2039820cf8" /> ## Test plan - [x] Verify text is readable on all example cards - [x] Check overlay doesn't obscure image details unnecessarily - [x] Test responsive behavior on mobile ## Internal Closes https://linear.app/eventual/issue/EVE-875/darken-the-background-overlay-for-the-text-for-examples
1 parent 60f447f commit 778eba6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/examples/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<a href="./document-processing" class="example-image-link">
66
<div class="example-image">
77
<img src="../img/document-processing-cover.jpg" alt="Document Processing">
8-
<div class="example-overlay">
8+
<div class="example-overlay example-overlay-dark">
99
<h3>Document Processing</h3>
1010
<p>Load PDFs from S3, extract text, run layout analysis, and compute embeddings</p>
1111
</div>
@@ -62,7 +62,7 @@
6262
<div class="example-placeholder" style="display: none; background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);">
6363
<span>🎨</span>
6464
</div>
65-
<div class="example-overlay">
65+
<div class="example-overlay example-overlay-dark">
6666
<h3>Generate Images with Stable Diffusion</h3>
6767
<p>Using text prompts with deep learning models</p>
6868
</div>
@@ -219,6 +219,10 @@
219219
line-height: 1.4;
220220
}
221221

222+
.example-overlay-dark {
223+
background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 12%, rgba(0, 0, 0, 0.6) 35%, rgba(0, 0, 0, 0) 65%);
224+
}
225+
222226
@media (max-width: 768px) {
223227
.examples-grid {
224228
grid-template-columns: 1fr;

0 commit comments

Comments
 (0)