This is documentation for the Syntesa Web application, which is built using Vite and React Router.
The project has the following file structure:
├── app
│ ├── assets
│ │ ├── intern-company
│ │ └── logo
│ ├── components
│ │ ├── home
│ │ └── ui
│ ├── constants
│ ├── contexts
│ ├── hooks
│ ├── imagetools.d.ts
│ ├── routes
│ ├── routes.ts
│ ├── tailwind.css
│ ├── types
│ └── utils
├── biome.json
├── commitlint.config.js
├── package.json
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
├── public
├── react-router.config.ts
├── README.md
├── tsconfig.json
└── vite.config.ts
To add a new route, follow these steps:
- Create a new file in the
app/routes/directory, for examplenewroute.tsx. - Define your route component in the new file.
- Add the new route to the
route.tsfile example:route("newroute", "routes/newroute.tsx").
Components are located in the app/components/ directory. You can create new components or modify existing ones to change the UI of the application.
- To create a new component, create a new file in the
app/components/directory, for exampleNewComponent.tsx. - Define your component in the new file.
- Import and use the new component in the appropriate route or layout file.
Assets such as images and logos are located in the app/assets/ directory. You can add new assets or modify existing ones as needed.
- To add a new asset, place the file in the appropriate subdirectory within
app/assets/, for exampleapp/assets/logo/newlogo.png. - Import and use the new asset in your components as needed.
Content for pages is configured in app/constants/index_contents.ts. You can modify the content there to update the text, images, and other data displayed on the pages.
- Open
app/constants/index_contents.ts. - Update the content as needed. The file contains structured data for different sections of the website, such as the interest groups, infrastructure, and more.
Social media links are configured in app/constants/socialLinks.ts. You can update the URLs information for the various social media platforms.
- Open
app/constants/socialLinks.ts. - Update the social media links as needed. This will ensure that users can find and follow the organization on the correct platforms.
Start the development server:
npm run devThe application will be available at http://localhost:5173.
Create a production build:
npm run buildPreview the production build locally:
npm run previewThe optimized files will be in the dist/ directory.