Skip to content

Commit 837d9ae

Browse files
improved why FESTIM
1 parent 4d7bb98 commit 837d9ae

3 files changed

Lines changed: 81 additions & 51 deletions

File tree

docs/source/_static/style.css

Lines changed: 50 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ h3 {
205205
object-fit: contain;
206206
margin: 1rem auto;
207207
display: block;
208-
border-radius: 0.75rem;
209208
}
210209

211210
.festim-carousel-caption {
@@ -359,40 +358,67 @@ html[data-theme="dark"] .festim-ribbon-track img:hover {
359358
}
360359
}
361360

362-
363361
/* =============================================================
364-
FIX - REMOVE UNWANTED BACKGROUNDS (RTD dark mode)
362+
WHY FESTIM - FEATURE CARDS
365363
============================================================= */
364+
.festim-features {
365+
display: flex;
366+
flex-wrap: wrap;
367+
justify-content: center;
368+
gap: 1.5rem;
369+
max-width: 1100px;
370+
margin: 0 auto 2rem;
371+
padding: 0 1rem;
372+
}
366373

367-
/* Carousel image area */
368-
html[data-theme="dark"] .festim-hero-carousel .carousel,
369-
html[data-theme="dark"] .festim-hero-carousel .carousel-item,
370-
html[data-theme="dark"] .festim-hero-carousel .carousel-item img {
371-
background-color: transparent;
374+
.festim-feature-card {
375+
flex: 1 1 180px;
376+
max-width: 200px;
377+
text-align: center;
378+
padding: 1.5rem 1rem;
379+
border-radius: 0.75rem;
380+
border: 1px solid transparent;
381+
transition: border-color 0.3s ease, transform 0.2s ease;
372382
}
373383

374-
/* Navigation cards - remove the lighter band */
375-
html[data-theme="dark"] .festim-nav-card {
376-
background-color: transparent;
377-
border-color: var(--pst-color-border);
384+
.festim-feature-card:hover {
385+
border-color: var(--festim-primary);
386+
transform: translateY(-4px);
378387
}
379388

380-
html[data-theme="dark"] .festim-nav-card span {
381-
background-color: transparent;
389+
.festim-feature-icon {
390+
width: 56px;
391+
height: 56px;
392+
margin: 0 auto 1rem;
393+
display: flex;
394+
align-items: center;
395+
justify-content: center;
396+
border-radius: 50%;
397+
background-color: color-mix(in srgb, var(--festim-primary) 15%, transparent);
382398
}
383399

384-
/* sphinx-design cards (Why FESTIM section) */
385-
html[data-theme="dark"] .sd-card {
386-
background-color: transparent;
387-
border-color: var(--pst-color-border);
400+
.festim-feature-icon i {
401+
font-size: 1.4rem;
402+
color: var(--festim-primary);
388403
}
389404

390-
html[data-theme="dark"] .sd-card-body {
391-
background-color: transparent;
405+
.festim-feature-card h3 {
406+
font-size: 1rem;
407+
font-weight: 700;
408+
margin-bottom: 0.5rem;
409+
color: var(--pst-color-text-base);
392410
}
393411

394-
html[data-theme="dark"] .sd-card-header,
395-
html[data-theme="dark"] .sd-card-footer {
396-
background-color: transparent;
397-
border-color: var(--pst-color-border);
412+
.festim-feature-card p {
413+
font-size: 0.875rem;
414+
line-height: 1.5;
415+
color: var(--pst-color-text-muted);
416+
margin: 0;
417+
}
418+
419+
@media (max-width: 600px) {
420+
.festim-feature-card {
421+
max-width: 100%;
422+
flex: 1 1 100%;
423+
}
398424
}

docs/source/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
1515

1616
project = "FESTIM"
17-
copyright = "2022-2023, FESTIM contributors"
17+
copyright = "2022-2026, FESTIM contributors"
1818
author = "FESTIM-dev"
19-
release = "1.0.0"
20-
version = "1.0"
2119

2220

2321
# -- General configuration ---------------------------------------------------

docs/source/index.rst

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
<div class="carousel-item">
4141
<img src="_static/gallery/permeation.png" alt="Permeation">
42-
4342
<p class="festim-carousel-caption">Permeation through a multi-layer membrane</p>
4443
</div>
4544

@@ -85,34 +84,41 @@
8584
============================================================ -->
8685
<h2 class="festim-section-heading">Why FESTIM?</h2>
8786

88-
.. grid:: 5
89-
:gutter: 3
90-
91-
.. grid-item-card:: Multi-dimensional
92-
:text-align: center
93-
94-
Run simulations in 1D, 2D, or 3D to match your problem geometry.
95-
96-
.. grid-item-card:: Multi-material
97-
:text-align: center
87+
<div class="festim-features">
9888

99-
Model complex assemblies with multiple materials and hydrogen isotopes.
100-
101-
.. grid-item-card:: Flexible BCs
102-
:text-align: center
103-
104-
Choose from a wide range of boundary conditions adaptable to many use cases.
105-
106-
.. grid-item-card:: Python API
107-
:text-align: center
89+
<div class="festim-feature-card">
90+
<div class="festim-feature-icon">
91+
<i class="fa-solid fa-cubes"></i>
92+
</div>
93+
<h3>Multi-dimensional</h3>
94+
<p>Run simulations in 1D, 2D, or 3D to match your problem geometry.</p>
95+
</div>
10896

109-
Get started quickly with a clean, minimal Python interface.
97+
<div class="festim-feature-card">
98+
<div class="festim-feature-icon">
99+
<i class="fa-solid fa-layer-group"></i>
100+
</div>
101+
<h3>Multi-material</h3>
102+
<p>Model complex assemblies with multiple materials and hydrogen isotopes.</p>
103+
</div>
110104

111-
.. grid-item-card:: Built on FEniCS
112-
:text-align: center
105+
<div class="festim-feature-card">
106+
<div class="festim-feature-icon">
107+
<i class="fa-brands fa-python"></i>
108+
</div>
109+
<h3>Python API</h3>
110+
<p>Get started quickly with a clean, minimal Python interface.</p>
111+
</div>
113112

114-
Leverages the mature FEniCS finite element framework for robust, scalable simulations.
113+
<div class="festim-feature-card">
114+
<div class="festim-feature-icon">
115+
<i class="fa-solid fa-gears"></i>
116+
</div>
117+
<h3>Built on FEniCS</h3>
118+
<p>Leverages a mature finite element framework for robust, scalable simulations.</p>
119+
</div>
115120

121+
</div>
116122

117123
.. raw:: html
118124

0 commit comments

Comments
 (0)