Skip to content

Commit b0af2f4

Browse files
authored
Add language links to docs index (testcontainers#6067)
1 parent 46b6cd9 commit b0af2f4

File tree

9 files changed

+157
-1
lines changed

9 files changed

+157
-1
lines changed

docs/css/extra.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,42 @@ h1, h2, h3, h4, h5, h6 {
99
--md-accent-fg-color: #291A3F;
1010
--md-typeset-a-color: #0C94AA;
1111
}
12+
13+
.card-grid {
14+
display: grid;
15+
gap: 10px;
16+
}
17+
18+
@media (min-width: 680px) {
19+
.card-grid {
20+
grid-template-columns: repeat(3, 1fr);
21+
}
22+
}
23+
24+
body .card-grid-item {
25+
display: flex;
26+
align-items: center;
27+
gap: 20px;
28+
border: 1px solid #C3BEDE;
29+
border-radius: 6px;
30+
padding: 16px;
31+
font-weight: 600;
32+
color: #9991B5;
33+
background: #F2F4FE;
34+
}
35+
36+
body .card-grid-item:hover,
37+
body .card-grid-item:focus {
38+
color: #9991B5;
39+
}
40+
41+
.card-grid-item[href] {
42+
color: var(--md-primary-fg-color);
43+
background: transparent;
44+
}
45+
46+
.card-grid-item[href]:hover,
47+
.card-grid-item[href]:focus {
48+
background: #F2F4FE;
49+
color: var(--md-primary-fg-color);
50+
}

docs/index.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
# Testcontainers
22

33
<!-- allow aspect ratio computation to reduce layout shift. CSS enforces max-width: 100% -->
4-
<img src="logo.png" alt="Testcontainers logo" width="1024" height="512"/>
4+
<img src="logo.png" alt="Testcontainers logo" width="1024" height="512"/>
5+
6+
## Test dependencies as code for your entire stack
7+
Get lightweight and throwaway containers during your tests that let you test against any container image (database, broker, browser, etc..) using one of the several supported languages.
8+
9+
10+
<p align=center><strong>Select your language</strong></p>
11+
<div class="card-grid">
12+
<a class="card-grid-item"><img src="language-logos/java.svg"/>Java</a>
13+
<a href="https://golang.testcontainers.org/" class="card-grid-item"><img src="language-logos/go.svg"/>Go</a>
14+
<a href="https://dotnet.testcontainers.org/" class="card-grid-item"><img src="language-logos/dotnet.svg"/>.NET</a>
15+
<a href="https://testcontainers-python.readthedocs.io/en/latest/" class="card-grid-item"><img src="language-logos/python.svg"/>Python</a>
16+
<a href="https://github.com/testcontainers/testcontainers-node" class="card-grid-item"><img src="language-logos/javascript.svg"/>JavaScript<wbr>/Node.js</a>
17+
<a href="https://docs.rs/testcontainers/latest/testcontainers/" class="card-grid-item"><img src="language-logos/rust.svg"/>Rust</a>
18+
</div>
519

620
## About
721

docs/language-logos/dotnet.svg

Lines changed: 7 additions & 0 deletions
Loading

docs/language-logos/go.svg

Lines changed: 10 additions & 0 deletions
Loading

docs/language-logos/java.svg

Lines changed: 17 additions & 0 deletions
Loading

docs/language-logos/javascript.svg

Lines changed: 4 additions & 0 deletions
Loading

docs/language-logos/python.svg

Lines changed: 8 additions & 0 deletions
Loading

docs/language-logos/rust.svg

Lines changed: 57 additions & 0 deletions
Loading

docs/logo.png

-17.2 KB
Loading

0 commit comments

Comments
 (0)