Skip to content

Commit

Permalink
Add language links to docs index (#6067)
Browse files Browse the repository at this point in the history
  • Loading branch information
leocross committed Oct 27, 2022
1 parent 46b6cd9 commit b0af2f4
Show file tree
Hide file tree
Showing 9 changed files with 157 additions and 1 deletion.
39 changes: 39 additions & 0 deletions docs/css/extra.css
Expand Up @@ -9,3 +9,42 @@ h1, h2, h3, h4, h5, h6 {
--md-accent-fg-color: #291A3F;
--md-typeset-a-color: #0C94AA;
}

.card-grid {
display: grid;
gap: 10px;
}

@media (min-width: 680px) {
.card-grid {
grid-template-columns: repeat(3, 1fr);
}
}

body .card-grid-item {
display: flex;
align-items: center;
gap: 20px;
border: 1px solid #C3BEDE;
border-radius: 6px;
padding: 16px;
font-weight: 600;
color: #9991B5;
background: #F2F4FE;
}

body .card-grid-item:hover,
body .card-grid-item:focus {
color: #9991B5;
}

.card-grid-item[href] {
color: var(--md-primary-fg-color);
background: transparent;
}

.card-grid-item[href]:hover,
.card-grid-item[href]:focus {
background: #F2F4FE;
color: var(--md-primary-fg-color);
}
16 changes: 15 additions & 1 deletion docs/index.md
@@ -1,7 +1,21 @@
# Testcontainers

<!-- allow aspect ratio computation to reduce layout shift. CSS enforces max-width: 100% -->
<img src="logo.png" alt="Testcontainers logo" width="1024" height="512"/>
<img src="logo.png" alt="Testcontainers logo" width="1024" height="512"/>

## Test dependencies as code for your entire stack
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.


<p align=center><strong>Select your language</strong></p>
<div class="card-grid">
<a class="card-grid-item"><img src="language-logos/java.svg"/>Java</a>
<a href="https://golang.testcontainers.org/" class="card-grid-item"><img src="language-logos/go.svg"/>Go</a>
<a href="https://dotnet.testcontainers.org/" class="card-grid-item"><img src="language-logos/dotnet.svg"/>.NET</a>
<a href="https://testcontainers-python.readthedocs.io/en/latest/" class="card-grid-item"><img src="language-logos/python.svg"/>Python</a>
<a href="https://github.com/testcontainers/testcontainers-node" class="card-grid-item"><img src="language-logos/javascript.svg"/>JavaScript<wbr>/Node.js</a>
<a href="https://docs.rs/testcontainers/latest/testcontainers/" class="card-grid-item"><img src="language-logos/rust.svg"/>Rust</a>
</div>

## About

Expand Down
7 changes: 7 additions & 0 deletions docs/language-logos/dotnet.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/language-logos/go.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions docs/language-logos/java.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions docs/language-logos/javascript.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/language-logos/python.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions docs/language-logos/rust.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b0af2f4

Please sign in to comment.