mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-17 03:29:31 -07:00
9fa1b718b85ef1eb6d9dbc16f8b4b4ea55c758e8
* feat: add new CSS rule for hiding elements - Add a new CSS rule for the class "hide" with a display property set to "none". * feat: refactor image loading and navigation logic on desktop - Add a line of code in `assets/ts/desktop/stage.ts` to reset the `src` of `elc` and add a class `hide` to it - Add a line of code in `assets/ts/desktop/stage.ts` to call the `loader` function with `elc` as an argument - Add a function `loader` in `assets/ts/desktop/stage.ts` to handle image loading and error events - Modify the `initStageNav` function in `assets/ts/desktop/stageNav.ts` to watch the `isLoading` state and set custom cursor accordingly - Modify the `initStageNav` function in `assets/ts/desktop/stageNav.ts` to handle close click events by calling the `handleClick` function and setting `isLoading` state to false - Modify the `initStageNav` function in `assets/ts/desktop/stageNav.ts` to handle previous/next click events by calling the `handleClick` function only if `isLoading` is false - Modify the `initStageNav` function in `assets/ts/desktop/stageNav.ts` to handle previous/next hover events by setting `loadedText` and updating custom cursor depending on `isLoading` state * feat: refactor createGallery function and enhance loading functionality on mobile - Add a loading text element to the gallery.scss file - Add a loading indicator to the createGallery function in gallery.ts - Modify the createGallery function in gallery.ts to hide the loading text element on image load - Move the image element append logic to the parent container in the createGallery function in gallery.ts * feat: update translations and add new loading translation in i18n files * chore: remove css source map * chore: modify build command to ignore css source map * refactor: remove unnecessary style * fix: fix desktop cursor text transition bug
Bridget
Bridget is a minimal Hugo theme designed for photographers / visual artists.
It’s based on the https://github.com/tylermcrobert/bridget-pictures-www.
Demo Site
To see this theme in action, here is a live demo site which is rendered with Bridget theme.
Getting Started
Head to this documentation for a complete guidance to get started with the Bridget theme.
Features
-
Blazingly fast: 99/100 on mobile and 100/100 on desktop in Google PageSpeed Insights
-
JS dynamic loading (powered by ES6 syntax)
-
JS code splitting by rollup.js
-
Image Preloading/Lazy loading
-
Dynamic resolution based on view mode
-
Multiple analytics services supported
-
Search engine verification supported (Google, Bind, Yandex and Baidu)
Multilingual and i18n
Bridget supports the following languages:
- English
- Simplified Chinese
- Traditional Chinese
- Japanese
- Korean
- Deutsch
- Spanish
- Italian
- Contribute with a new language
Credits
Languages
TypeScript
63.5%
HTML
18.5%
SCSS
12.5%
JavaScript
3%
Shell
1.5%
Other
1%
