Owner Link: Vero Casa
Deployment Link: DEMO
- Destructuring pages, each section is a separate component;
- Module.scss is used;
- Style files are placed in a folder next to the component;
- Naming:
- Components: CamelCase + index.ts for import.
- Folders: folders of components with a CamelCase, for the rest kebab‑case.
- CSS classes: CamelCase is used - className: blockName__elementName.
- If the component is not reused, then it is placed in the folder of the parent component.
- The functional component is declaratively defined using an arrow function and prop type generics.
- SVG images for interface decoration are stored in a folder
src/assets/icon
- Samples of user pictures are stored in a folder
public/images/componentName
This is an example of how you can run a project locally. Follow these simple steps as an example.
- Clone the repo
git clone https://gitlab.com/DmytroRd/surfing-website.git
- Install NPM packages
npm install
To run the application, use the following command:
npm run dev
The application will be launched in development mode and can be accessed at http://localhost:5173.
To create an optimized production build of the project, use the following command:
npm run build
Before running the preview, make sure you have a production build ready by running the
npm run build
command.
To preview the build and see how the application works in production mode, use the following command:
npm run preview
test