Skip to content

Commit

Permalink
chore: add previews to overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovareiro29 committed Oct 30, 2024
1 parent 5b2ce01 commit 36fac52
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
{
name: 'Dataset Detail',
variants: [
{ href: './dataset', label: 'Default '},
{ href: './dataset-with-chart', label: 'With chart '},
{ href: './dataset-tables', label: 'Dataset tables '},
{ href: './dataset', label: 'Default ', thumbnail: 'dataset.webp', thumbnail_dark: 'dataset-dark.webp'},
{ href: './dataset-with-chart', label: 'With chart ', thumbnail: 'dataset-with-chart.webp', thumbnail_dark: 'dataset-with-chart-dark.webp'},
{ href: './dataset-tables', label: 'Dataset tables ', thumbnail: 'dataset-tables.webp', thumbnail_dark: 'dataset-tables-dark.webp'},
]
},
{
Expand Down
14 changes: 14 additions & 0 deletions src/styles/base/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,17 @@
}
}
}

.dark-mode-only {
display: none;
}

[data-bs-theme='dark'] {
.light-mode-only {
display: none;
}

.dark-mode-only {
display: initial;
}
}

0 comments on commit 36fac52

Please sign in to comment.