very basic support that works
All checks were successful
PR Check / lint-and-format (pull_request) Successful in 12m4s

This commit is contained in:
Mylloon 2025-02-21 15:16:17 +01:00
parent cddfb78721
commit 97db918a61
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 24 additions and 0 deletions

View file

@ -126,3 +126,17 @@ ul ul {
p[data-lang] {
margin: 0;
}
/* Filters */
div.filters:has(input[type="checkbox"]:checked) ~ ul li {
display: none;
}
div.filters:has(input[type="checkbox"][value="ts"]:checked)
~ ul
li:has(p[data-lang="ts"]),
div.filters:has(input[type="checkbox"][value="py"]:checked)
~ ul
li:has(p[data-lang="py"]) {
display: flex;
}

View file

@ -17,6 +17,16 @@
<p>{{location_apps}} {{err_msg}}</p>
{{/location_apps}} {{^location_apps}}
<div class="filters">
<label><input type="checkbox" value="ts" />TypeScript</label>
<label><input type="checkbox" value="rust" />Rust</label>
<label><input type="checkbox" value="py" />Python</label>
<label><input type="checkbox" value="ocaml" />OCaml</label>
<label><input type="checkbox" value="go" />Go</label>
<label><input type="checkbox" value="gdscript" />GDScript</label>
<label><input type="checkbox" value="tex" />LaTeX</label>
</div>
<h2>Projets</h2>
<ul>
{{#apps}} {{>portfolio/card.html}} {{/apps}}