How arshakyan998/testtask works
This is a small React image-gallery and photo-editing UI. A visitor enters through the app bootstrap, reaches the router, and can browse the gallery into an image comparison view, then choose a gallery or camera action that navigates to the avatar screen. The routes also expose login and avatar screens; the main gallery can open login as a modal. The graph follows the sampled routing and component calls; several page implementations and layout behavior were not shown, so their internal links are omitted.
Main entry points: Main.tsx Gallery view · Routs.tsx Route definitions · Button.tsx Button control · Card.tsx Image comparison
Components 19
App and routing
- React bootstrap
src/main.tsx - App router host
src/App.tsx - Route definitions
src/routes/Routs.tsx - Route layout
src/routes/Layout.tsx - Page slider
src/components/HOC/Slider.tsx - Page components
src/pages
Gallery experience
- Main page
src/pages/Main.tsx - Gallery view
src/components/Main/Main.tsx - Gallery header
src/components/Main/Header/Header.tsx - Gallery image link
src/components/Main/Image/Image.tsx - Gallery footer
src/components/Main/Footer/Footer.tsx
Photo screens
- Card page
src/pages/Card.tsx - Image comparison
src/components/Card/Card.tsx - Photo actions
src/components/Card/Actions/Actions.tsx - Avatar page
src/pages/Avatar.tsx - Avatar screen
src/components/Avatar/Avatar.tsx
Shared UI
- Login form
src/components/Login/Login.tsx - Button control
src/components/Button/Button.tsx
Other components
- Visitor
Connections 16
- Visitor → React bootstrap: opens app
src/main.tsx - React bootstrap → App router host: renders
src/main.tsx - App router host → Route definitions: provides router
src/App.tsx - Route definitions → Route layout: sets layout
src/routes/Routs.tsx - Route definitions → Page components: routes to
src/routes/Routs.tsx - Route definitions → Page slider: wraps pages
src/routes/Routs.tsx - Main page → Gallery view: renders
src/pages/Main.tsx - Gallery view → Gallery header: renders
src/components/Main/Main.tsx - Gallery view → Gallery image link: renders
src/components/Main/Main.tsx - Gallery view → Gallery footer: renders
src/components/Main/Main.tsx - Gallery view → Login form: opens modal
src/components/Main/Main.tsx - Image comparison → Photo actions: renders
src/components/Card/Card.tsx - Photo actions → Avatar page: navigates to
src/components/Card/Actions/Actions.tsx - Image comparison → Button control: renders
src/components/Card/Card.tsx - Login form → Button control: renders
src/components/Login/Login.tsx - Avatar screen → Button control: renders
src/components/Avatar/Avatar.tsx