Skip to content

Commit c52b515

Browse files
raw html for navigation
1 parent da7a869 commit c52b515

9 files changed

Lines changed: 86 additions & 95 deletions

docs/source/_static/style.css

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,4 +300,59 @@ html[data-theme="dark"] .festim-ribbon-track img:hover {
300300
100% {
301301
transform: translateX(-50%);
302302
}
303+
}
304+
305+
/* =============================================================
306+
NAVIGATION CARDS
307+
============================================================= */
308+
.festim-nav-grid {
309+
display: grid;
310+
grid-template-columns: repeat(3, 1fr);
311+
gap: 1rem;
312+
max-width: 900px;
313+
margin: 0 auto 2rem;
314+
padding: 0 1rem;
315+
}
316+
317+
.festim-nav-card {
318+
display: flex;
319+
flex-direction: column;
320+
align-items: center;
321+
justify-content: center;
322+
gap: 0.75rem;
323+
padding: 2rem 1rem;
324+
border-radius: 0.5rem;
325+
border: 1px solid var(--pst-color-border);
326+
background-color: var(--pst-color-surface);
327+
text-decoration: none;
328+
color: var(--pst-color-text-base);
329+
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
330+
}
331+
332+
.festim-nav-card:hover {
333+
transform: translateY(-3px);
334+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
335+
border-color: var(--festim-primary);
336+
text-decoration: none;
337+
color: var(--pst-color-text-base);
338+
}
339+
340+
.festim-nav-card:visited {
341+
color: var(--pst-color-text-base);
342+
}
343+
344+
.festim-nav-card i {
345+
font-size: 2rem;
346+
color: var(--festim-primary);
347+
}
348+
349+
.festim-nav-card span {
350+
font-size: 1.05rem;
351+
font-weight: 600;
352+
}
353+
354+
@media (max-width: 600px) {
355+
.festim-nav-grid {
356+
grid-template-columns: repeat(2, 1fr);
357+
}
303358
}

docs/source/images/icons/book-2-svgrepo-com.svg

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/images/icons/check-square-svgrepo-com.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/source/images/icons/clapperboard-play-svgrepo-com.svg

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/source/images/icons/code-square-svgrepo-com.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/images/icons/graph-up-svgrepo-com.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/source/images/icons/keyboard-svgrepo-com.svg

Lines changed: 0 additions & 15 deletions
This file was deleted.

docs/source/images/icons/running-2-svgrepo-com.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/source/index.rst

Lines changed: 31 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -105,48 +105,39 @@
105105
============================================================ -->
106106
<h2 class="festim-section-heading">Explore the documentation</h2>
107107

108-
.. grid:: 3
109-
:gutter: 2
110-
111-
.. grid-item::
112-
113-
.. card:: Installation
114-
:img-top: images/icons/running-2-svgrepo-com.svg
115-
:link: installation
116-
:link-type: doc
117-
118-
.. grid-item::
119-
120-
.. card:: User guide
121-
:img-top: images/icons/book-2-svgrepo-com.svg
122-
:link: userguide/index
123-
:link-type: doc
124-
125-
.. grid-item::
126-
127-
.. card:: Tutorials
128-
:img-top: images/icons/clapperboard-play-svgrepo-com.svg
129-
:link: https://festim-workshop.readthedocs.io/
130-
131-
.. grid-item::
132-
133-
.. card:: Developer guide
134-
:img-top: images/icons/code-square-svgrepo-com.svg
135-
:link: devguide/index
136-
:link-type: doc
137-
138-
.. grid-item::
139-
140-
.. card:: V&V
141-
:img-top: images/icons/check-square-svgrepo-com.svg
142-
:link: https://festim-vv-report.readthedocs.io/en/latest/
108+
.. raw:: html
143109

144-
.. grid-item::
110+
<!-- ============================================================
111+
SECTION 3 - EXPLORE THE DOCUMENTATION
112+
============================================================ -->
113+
<h2 class="festim-section-heading">Explore the documentation</h2>
145114

146-
.. card:: Fellowship
147-
:img-top: images/icons/graph-up-svgrepo-com.svg
148-
:link: fellowship
149-
:link-type: doc
115+
<div class="festim-nav-grid">
116+
<a class="festim-nav-card" href="installation.html">
117+
<i class="fa-solid fa-download"></i>
118+
<span>Installation</span>
119+
</a>
120+
<a class="festim-nav-card" href="userguide/index.html">
121+
<i class="fa-solid fa-book"></i>
122+
<span>User guide</span>
123+
</a>
124+
<a class="festim-nav-card" href="https://festim-workshop.readthedocs.io/" target="_blank">
125+
<i class="fa-solid fa-graduation-cap"></i>
126+
<span>Tutorials</span>
127+
</a>
128+
<a class="festim-nav-card" href="devguide/index.html">
129+
<i class="fa-solid fa-code"></i>
130+
<span>Developer guide</span>
131+
</a>
132+
<a class="festim-nav-card" href="https://festim-vv-report.readthedocs.io/en/latest/" target="_blank">
133+
<i class="fa-solid fa-clipboard-check"></i>
134+
<span>V&amp;V</span>
135+
</a>
136+
<a class="festim-nav-card" href="fellowship.html">
137+
<i class="fa-solid fa-chart-line"></i>
138+
<span>Fellowship</span>
139+
</a>
140+
</div>
150141

151142

152143
.. raw:: html

0 commit comments

Comments
 (0)