Commit Graph

15 Commits

Author SHA1 Message Date
Lucien Cartier-Tilet 291fc9111b
[dart] Upgrade to Dart 2.12 and its null-safety features 2021-03-30 18:54:31 +02:00
Lucien Cartier-Tilet 16f23c08c6
[Dart] Cleaner code, force the web page to reload on modifier code
The code in `navbar.dart' is now more declarative and cleaner.

If the `lastUpdate' variable’s content change, then it will force the
user to reload the page, bypassing their cache. This can be useful in
case of an update with which the cache could break the website.
2020-08-28 22:23:35 +02:00
Lucien Cartier-Tilet e710c594f1
[Style] Add Nord theme, break up SCSS code
This commit adds the Nord theme into the list of available themes. The
Nord theme is now the default theme for dark-based systems.

Theme buttons now have their own class to make it easier to change
them without too much work.

The `style.scss' file has been split up in three different files:
- main.scss, the new file to load from the HTML page, imports the two
    other files
- themes.scss, containing all the theming of the websites
- style.scss, containing the rest

All websites loading the theme will now need to load it from
`main.scss' instead of `style.scss', likewise with the `.css'
extension
2020-08-28 22:19:42 +02:00
Lucien Cartier-Tilet f99d45e8ab
Simplify code, remove html dependency
This commit removes the `html' package dependency, speeding up the
compile time of the Dart code.

It also simplifies the code and removes some unused code. For instance
the sun, moon, and lightbulb icons is removed, the `Theme' class is
removed, and the `switchTheme' function is now merged into the
`setTheme' function. The `makeThemeItem' function has also had its
second argument removed.
2020-08-25 03:34:55 +02:00
Lucien Cartier-Tilet 8b984e301f
Fix #1
Also make website more mobile-friendly for smaller devices. And ignore
temporary scssc files from cache SCSS compiling.
2020-07-27 00:18:42 +02:00
Lucien Cartier-Tilet 272bd93ed8
Finally fix issue #9 2020-07-26 21:22:06 +02:00
Lucien Cartier-Tilet 659e406c5e
Removed some leftover from previous version 2020-06-23 11:14:36 +02:00
Lucien Cartier-Tilet 26b198d485
Code style 2020-05-26 00:52:05 +02:00
Lucien Cartier-Tilet 06994305ac
Code style, updated code for better icon handling 2020-05-26 00:35:34 +02:00
Lucien Cartier-Tilet 99c2127cc8
Fixes #7
Fontawesome was removed from the source code and is a dependency no
longer needed by websites running with OWB
2020-05-22 01:51:55 +02:00
Lucien Cartier-Tilet c9d263b12c
Simplified file, removed unused import 2020-05-21 07:32:47 +02:00
Lucien Cartier-Tilet 8ca55cb710
Better coding style 2020-05-10 12:37:22 +02:00
Lucien Cartier-Tilet aa4600b588
Sitemap query now fully asynchronous
Sitemap generation is now independent from the navbar generation, and
it will be added to the navbar only once the navbar has been created.

Also, better style for code.
2020-05-10 12:00:47 +02:00
Lucien Cartier-Tilet cc6519c302
Link best practices, and removed font for faster loading time 2020-05-06 11:48:51 +02:00
Lucien Cartier-Tilet 8b85ea5952
Initial commit, added all backend files 2020-05-05 14:49:26 +02:00