mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-17 03:29:31 -07:00
feat(container.ts): create container module to handle scrollable behavior and add/remove disableScroll class fix(customCursor.ts): update append target for cursor element to use container instead of main fix(stage.ts): update append target for stage element to use container instead of main fix(stageNav.ts): update append target for navOverlay element to use container instead of main feat(main.ts): initialize container module and conditionally initialize stage and stageNav modules based on device type fix(nav.ts): update references to state module functions to use state.get() instead of getState()
26 lines
646 B
TypeScript
26 lines
646 B
TypeScript
import { initContainer } from './container'
|
|
import { initCustomCursor } from './desktop/customCursor'
|
|
import { initStage } from './desktop/stage'
|
|
import { initStageNav } from './desktop/stageNav'
|
|
import { initCollection } from './mobile/collection'
|
|
import { initGallery } from './mobile/gallery'
|
|
import { initNav } from './nav'
|
|
import { initResources } from './resources'
|
|
import { initState } from './state'
|
|
import { isMobile } from './utils'
|
|
|
|
initContainer()
|
|
initCustomCursor()
|
|
const ijs = initResources()
|
|
initState(ijs.length)
|
|
|
|
initNav()
|
|
|
|
if (!isMobile()) {
|
|
initStage(ijs)
|
|
initStageNav()
|
|
} else {
|
|
initCollection(ijs)
|
|
initGallery(ijs)
|
|
}
|