feat: add dynamic navbar to scenes

Introduced a new CSS file for styling a fixed navbar in scenes,
enhancing user navigation within the virtual environment. Modified
scene.js to include fetching categories and generating a navbar with
scene options dynamically based on the category of the current scene.
This allows users to switch scenes more intuitively. The `nonavbar`
attribute was added for scenes where the navbar should be omitted,
providing flexibility in scene presentation. Additionally, streamlined
CSS and SCSS imports across JS files for consistency and removed an
unnecessary SCSS import from editor.js, optimizing load times and
project structure.

This update significantly improves user experience by facilitating
easier navigation and scene exploration within the application.
This commit is contained in:
Kumi 2024-03-15 16:41:37 +01:00
parent 2e819ba0a6
commit e3cff5b9b7
Signed by: kumi
GPG key ID: ECBCC9082395383F
4 changed files with 77 additions and 2 deletions

View file

@ -1,7 +1,6 @@
import { getScene, getSceneElement, getCategory } from "./api";
import { populateDestinationDropdown } from "./editor/teleport";
import "../scss/frontend.scss";
import "../css/editor.css";
let clickTimestamp = 0;