This is a small frontend prototype for a modernized library login experience inspired by Biblioteken i Goteborg. The project uses plain HTML, JavaScript, and Sass, with each page rendered through DOM creation in JavaScript modules and styled through compiled CSS files.
HTML/login.htmlloads the main login view and quick navigation options.HTML/register.htmlcontains the temporary library card registration flow.HTML/password.htmlcontains the forgot PIN/password view.HTML/cookies.htmlshows information about personal data and cookies.
- HTML for page entry points
- Vanilla JavaScript for rendering UI and page behavior
- Sass for styling
HTML/ Page entry files
JS/ UI rendering and page logic
src/ Sass source files
dist/ Compiled CSS output
img/ Images used in the interface
- Install dependencies:
npm install- Build the Sass files:
npm run build- To keep styles compiling while you work:
npm run watch- Open one of the HTML files in the
HTML/folder in your browser, for exampleHTML/login.html.
npm run buildcompiles all Sass files fromsrc/intodist/.npm run watchwatches Sass files and recompiles automatically during development.
- A login screen built dynamically with JavaScript
- Navigation links to register, password recovery, cookies, and the external Gotlib site
- A registration form prototype with a success alert and redirect back to login
- A password help page with a back button
- A cookies and privacy information page
- The login flow currently uses hardcoded credentials in
JS/loggin.js. - Form handling is frontend-only and does not save data to a backend.
- Compiled CSS is generated from the Sass files in
src/.