feat(customCursor.ts): add custom cursor functionality to improve user experience

feat(stage.ts): implement stage functionality to display images and handle mouse events
feat(stageNav.ts): add stage navigation functionality to navigate between images and close the stage
fix(main.ts): fix import paths for customCursor, stage, and stageNav modules
This commit is contained in:
Sped0n
2023-10-29 14:52:43 +08:00
parent 1dbc7eed4a
commit a60ff94c7c
5 changed files with 8 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import { incIndex, getState } from './state'
import { incIndex, getState } from '../state'
import { gsap, Power3 } from 'gsap'
import { ImageJSON } from './resources'
import { Watchable } from './utils'
import { ImageJSON } from '../resources'
import { Watchable } from '../utils'
// types

View File

@@ -1,6 +1,6 @@
import { setCustomCursor } from './customCursor'
import { decIndex, incIndex, getState } from './state'
import { increment, decrement } from './utils'
import { decIndex, incIndex, getState } from '../state'
import { increment, decrement } from '../utils'
import { cordHist, isOpen, isAnimating, active, minimizeImage } from './stage'
type NavItem = (typeof navItems)[number]

View File

@@ -1,9 +1,9 @@
import { initResources } from './resources'
import { initState } from './state'
import { initCustomCursor } from './customCursor'
import { initCustomCursor } from './desktop/customCursor'
import { initNav } from './nav'
import { initStage } from './stage'
import { initStageNav } from './stageNav'
import { initStage } from './desktop/stage'
import { initStageNav } from './desktop/stageNav'
initCustomCursor()
const ijs = initResources()

View File