Skip to content

alpha2420/SafeNext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SafeNext - Manpower Services Website

This is a React.js-based website for SafeNext, a company providing security, housekeeping, and manpower services.

Features

  • Responsive design using Bootstrap
  • Multiple pages (Home, Services, About, Contact)
  • Clean and professional UI
  • Contact form with validation

Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Installation

  1. Clone the repository
  2. Install dependencies:
    npm install
  3. Start the development server:
    npm start

Image Requirements

For this website to display correctly, you need to add the following images to the /public folder:

Logo

  • /logo.png - Company logo (200x80px, with transparent background)

Banner Images

  • /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)

Service Images

  • /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)

About Page Images

  • /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)

Contact Page Images

  • /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)

Handling Missing Images

The website has been designed to work even if you don't add all the required images immediately. Here's what happens:

  1. Placeholder Styling: The website will use gradient backgrounds and placeholder elements where images would normally appear.
  2. Placeholder Script: You can use the script in /public/placeholders/create-placeholders.sh to generate placeholder images quickly if you have ImageMagick installed.
  3. Adding Your Own Images: When you're ready, simply add your own images to the /public directory with the names listed above, and they will automatically replace the placeholders.

Technology Stack

  • React.js
  • React Router
  • Bootstrap 5
  • JavaScript ES6+
  • HTML5 & CSS3

Build for Production

To build the app for production, run:

npm run build

The built files will be in the build folder.

License

This project is licensed under the MIT License.

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

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.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

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.

npm run eject

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.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published