Skip to content

Commit

Permalink
feat: some CSS (#102)
Browse files Browse the repository at this point in the history
* Add some CSS to off.html to verify styling is possible and make it demo-able.
* use a template element for the template to avoid showing it
  • Loading branch information
alexgarel authored Apr 24, 2024
1 parent 3b254eb commit 2b3ae2d
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 209 deletions.
4 changes: 3 additions & 1 deletion frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ The project is currently composed of several widgets
* searchalicious-bar is at the core, it represent the search bar, but also handle the search logic (see searchalicious-ctl.ts)
* searchalicious-button is a simple button to launch the search
* searchalicious-results is the component that displays the search results
* you must provide an element with attribute `slot="result"` that contains a template to display a single search result
* you must provide an element with attribute `slot="result"` that contains a template to display a single search result.
It's a good idea to use a `template` as enclosing element with `style="display: none"`
so that it does not try to fetch images with non resolved expressions in them and do not display weird content
* a `before-search` slot is also available to display something before first search launch
* as well as a `no-results` slot to display something when no results are found
* searchalicious-pages is the component that displays the pagination
Expand Down
Loading

0 comments on commit 2b3ae2d

Please sign in to comment.