I've added an announcement using Gitea styling:
- Date of switchover (still needs to be determined)
- Commands to update Git Remote
- Link to DevTalk announcement post
- JavaScript to be able to dismiss the banner indefinitely (using Key-Value saved in browser LocalStorage)
Reviewed-on: https://projects.blender.org/infrastructure/gitea-custom/pulls/15
This pull request upgrades navigation global's markup and styles to Web Assets v2 pre-compiled _nav-global_ component, to improve visual consistency with other sites.
The Web Assets v2 _nav-global_ component brings UI fixes, spacing improvements and variable naming changes and cleanup to the navigation bar.
Co-authored-by: Pablo Vazquez <pablo@blender.org>
Co-authored-by: Thomas Dinges <thomas@blender.org>
Co-authored-by: Bastien Montagne <bastien@blender.org>
Reviewed-on: https://projects.blender.org/infrastructure/gitea-custom/pulls/9
In line with the code blog and other dev sites (Wiki, DevTalk)
Everything is pretty much copied from the one in blender.org (_navbar_developer.php),
with some additions to make it work in Gitea.
The styling additions are in the <style> block with the comment "/* Custom styling for Gitea */"
The link to "Projects" is projects.blender.org (since it makes sense here but
not yet in the Code blog).
On the Gitea side, two custom templates have changed:
* head_navbar.tpml was changed to add the mobile navbar expand toggle.
* body_inner_pre.tpml contains the actual navbar, copied from the blender.org repo
with the following changes:
* Added <style> block custom for Gitea.
* Added custom notifications code from head_navbar.tpml
* Added user buttons (notif, create, register, sign in, etc),
See the area around "{{/* Here starts the custom styling for gitea. */}}"
* In order to style the buttons as such, the class `navbardev-btn` was added
to the Register, Sign In, Notifications, Create, and User dropdown buttons.