feat(ui/ux): add timeline, hero, and NeoFetch components + data/hooks
- Add timeline route helper
- src/app/timeline/route.ts
- simple helper to navigate to #timeline
- Add NeoFetch component (client)
- src/components/NeoFetch.tsx
- Displays avatar iframe, uptime calculation, experience count, WakaTime stats, terminal/ip, locale and colour palette
- Uses custom hooks useIpData and useWakaTimeData, and events data
- Add Top (hero) component (client)
- src/components/Top.tsx
- Full-screen hero with randomized background, parallax on mouse, device orientation & motion handlers, requestPermission trigger on image click
- Includes Sidebar import and optimized Image usage
- Add Timeline UI component (client)
- src/components/timeline.tsx
- Year selector + filtered event list with links and icons
- Handles initial selection and rendering grouped by year
- Add reusable Timeline primitives (client)
- src/components/ui/timeline.tsx
- Timeline context and composable parts: Timeline, TimelineItem, Indicator, Separator, Date, Title, Content, Header
- Orientation support and controlled/uncontrolled API
- Add data & hooks
- src/lib/events.ts
- Seeded events array (education/awards/conference entries) used by timeline and NeoFetch
- src/hooks/use-ip-data.ts
- Fetches terminal/ip info from https://api.imnya.ng/ip
- src/hooks/use-wakatime-data.ts
- Fetches WakaTime summary from https://api.imnya.ng/wakatime
Notes:
- All new components are client-side ("use client")
- Adds device motion/orientation listeners with cleanup
- Provides basic error handling for network hooks
- Improves homepage/UX with interactive hero and timeline data visualization
BIN
public/background/1.avif
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
public/background/10.avif
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
public/background/11.avif
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
public/background/12.avif
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
public/background/13.avif
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
public/background/14.avif
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/background/2.avif
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/background/3.avif
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
public/background/4.avif
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
public/background/5.avif
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
public/background/6.avif
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
public/background/7.avif
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/background/8.avif
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
public/background/9.avif
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/bg.avif
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
public/bg.png
Normal file
|
After Width: | Height: | Size: 333 KiB |
BIN
public/char.avif
Normal file
|
After Width: | Height: | Size: 309 KiB |