This is a React.js-based website for SafeNext, a company providing security, housekeeping, and manpower services.
- Responsive design using Bootstrap
- Multiple pages (Home, Services, About, Contact)
- Clean and professional UI
- Contact form with validation
- Node.js (v14 or higher)
- npm (v6 or higher)
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
npm start
For this website to display correctly, you need to add the following images to the /public folder:
/logo.png- Company logo (200x80px, with transparent background)
/hero-banner.jpg- Home page hero section background (1920x800px)/services-banner.jpg- Services page header background (1920x500px)/about-banner.jpg- About page header background (1920x500px)/contact-banner.jpg- Contact page header background (1920x500px)/cta-background.jpg- Call-to-action section background (1920x500px)/services-cta.jpg- Services page CTA background (1920x500px)/about-cta.jpg- About page CTA background (1920x500px)
/security-service.jpg- Security services thumbnail (600x400px)/cleaning-service.jpg- Cleaning services thumbnail (600x400px)/labor-service.jpg- Labor services thumbnail (600x400px)/security-detail.jpg- Detailed security service image (800x500px)/cleaning-detail.jpg- Detailed cleaning service image (800x500px)/labor-detail.jpg- Detailed labor service image (800x500px)
/company-history.jpg- Company history image (800x500px)/mission-icon.jpg- Mission icon (120x120px)/vision-icon.jpg- Vision icon (120x120px)/integrity-icon.jpg- Integrity icon (100x100px)/excellence-icon.jpg- Excellence icon (100x100px)/reliability-icon.jpg- Reliability icon (100x100px)
/location-icon.jpg- Location icon (50x50px)/phone-icon.jpg- Phone icon (50x50px)/email-icon.jpg- Email icon (50x50px)/clock-icon.jpg- Business hours icon (50x50px)/map.jpg- Map image (1200x400px)
The website has been designed to work even if you don't add all the required images immediately. Here's what happens:
- Placeholder Styling: The website will use gradient backgrounds and placeholder elements where images would normally appear.
- Placeholder Script: You can use the script in
/public/placeholders/create-placeholders.shto generate placeholder images quickly if you have ImageMagick installed. - Adding Your Own Images: When you're ready, simply add your own images to the
/publicdirectory with the names listed above, and they will automatically replace the placeholders.
- React.js
- React Router
- Bootstrap 5
- JavaScript ES6+
- HTML5 & CSS3
To build the app for production, run:
npm run buildThe built files will be in the build folder.
This project is licensed under the MIT License.
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify