commit e28f75a280067bf13c7f6207848cc3e4b3ffe9ed Author: LaxmiB Date: Thu Dec 25 17:53:02 2025 +0530 Add frontend project files diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5e195f0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# production +/build + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Ignore large video +*.mp4 diff --git a/README.md b/README.md new file mode 100644 index 0000000..58beeac --- /dev/null +++ b/README.md @@ -0,0 +1,70 @@ +# Getting Started with Create React App + +This project was bootstrapped with [Create React App](https://github.com/facebook/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](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](https://facebook.github.io/create-react-app/docs/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](https://facebook.github.io/create-react-app/docs/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](https://facebook.github.io/create-react-app/docs/getting-started). + +To learn React, check out the [React documentation](https://reactjs.org/). + +### Code Splitting + +This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](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](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](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](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](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](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..c0b712a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "lcepl-frontend", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..bb73d36 --- /dev/null +++ b/package.json @@ -0,0 +1,64 @@ +{ + "name": "lcepl-website", + "version": "0.1.0", + "private": true, + "proxy": "", + "dependencies": { + "@testing-library/dom": "^10.4.0", + "@testing-library/jest-dom": "^6.6.3", + "@testing-library/react": "^16.3.0", + "@testing-library/user-event": "^13.5.0", + "axios": "^1.11.0", + "cors": "^2.8.5", + "express": "^5.1.0", + "framer-motion": "^12.23.12", + "helmet": "^8.1.0", + "morgan": "^1.10.1", + "react": "^19.1.0", + "react-countup": "^6.5.3", + "react-dom": "^19.1.0", + "react-helmet": "^6.1.0", + "react-icons": "^5.5.0", + "react-router-dom": "^7.7.1", + "react-scripts": "^5.0.1", + "react-simple-maps": "^3.0.0", + "react-toastify": "^11.0.5", + "web-vitals": "^2.1.4", + "webpack-dev-server": "^5.2.2" + }, + "scripts": { + "start": "react-scripts start", + "build": "react-scripts build", + "test": "react-scripts test", + "eject": "react-scripts eject", + "server": "node server.js", + "server:dev": "nodemon server.js", + "dev": "concurrently -k -n server,client -p \"[{name}]\" \"npm:server:dev\" \"npm:start\"" + }, + "eslintConfig": { + "extends": [ + "react-app", + "react-app/jest" + ] + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] + }, + "devDependencies": { + "@tailwindcss/postcss": "^4.1.11", + "autoprefixer": "^10.4.21", + "concurrently": "*", + "nodemon": "*", + "postcss": "^8.5.6", + "tailwindcss": "^3.4.17" + } +} diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..edccba5 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/gallery/cert1.jpg b/public/gallery/cert1.jpg new file mode 100644 index 0000000..e774273 --- /dev/null +++ b/public/gallery/cert1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6151d682778ae9a8794065adc611381fda940841aacbc1aa9aeb6d5dea51ffea +size 771090 diff --git a/public/gallery/cert2.jpg b/public/gallery/cert2.jpg new file mode 100644 index 0000000..71e5215 --- /dev/null +++ b/public/gallery/cert2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c498106d312c3e6df6b7cee5575dc4c535bc6f2c965dc7338abf93fc16863125 +size 945980 diff --git a/public/gallery/cert3.jpg b/public/gallery/cert3.jpg new file mode 100644 index 0000000..65af34d --- /dev/null +++ b/public/gallery/cert3.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aebbabebc80ebf16465b20f24b3ce88153c6c9d8fbb0b042cb492d2ad959a185 +size 387688 diff --git a/public/gallery/cert4.jpg b/public/gallery/cert4.jpg new file mode 100644 index 0000000..4d4b6b1 --- /dev/null +++ b/public/gallery/cert4.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6756c2a1f395f71f0bea7b12fec08f0e6c39a74e4ce41beac8e40bd32cdd71d +size 653272 diff --git a/public/gallery/cert5.jpg b/public/gallery/cert5.jpg new file mode 100644 index 0000000..999f2ff --- /dev/null +++ b/public/gallery/cert5.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00f9b20bb8f70db9d7ccd87a223729c8bfca846f8def0e3084448b0a0a564734 +size 203639 diff --git a/public/gallery/cert6.jpg b/public/gallery/cert6.jpg new file mode 100644 index 0000000..7fb22d0 --- /dev/null +++ b/public/gallery/cert6.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35d31b3aadbcfae40b3dba305cd501ed994e76c797ef27e977868f787804be75 +size 61054 diff --git a/public/gallery/cert7.jpg b/public/gallery/cert7.jpg new file mode 100644 index 0000000..ad0c189 --- /dev/null +++ b/public/gallery/cert7.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e8b393b7f4278e5584cdde6579574980c685a561a72b269132e91d01622ff82 +size 151321 diff --git a/public/gallery/cert8.jpg b/public/gallery/cert8.jpg new file mode 100644 index 0000000..338d3ef --- /dev/null +++ b/public/gallery/cert8.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3b9897d820f46be4bf2166dd72017a9ad54bb1bc0fd63c92ceb4e7960cf7aee +size 226604 diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..28aa9c3 --- /dev/null +++ b/public/index.html @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + Laxmi Civil Engineering Services Pvt. Ltd. (LCEPL) + + + + + + + + + + Laxmi Civil Engineering Services Pvt. Ltd. (LCEPL) + + + +
+ + diff --git a/public/logo192.png b/public/logo192.png new file mode 100644 index 0000000..7a9acbe --- /dev/null +++ b/public/logo192.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3090d5d57128fe707c6021b851437e1f0a084f5f65e5b81528fe30305ae717d1 +size 38136 diff --git a/public/logo512.png b/public/logo512.png new file mode 100644 index 0000000..7a9acbe --- /dev/null +++ b/public/logo512.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3090d5d57128fe707c6021b851437e1f0a084f5f65e5b81528fe30305ae717d1 +size 38136 diff --git a/public/manifest.json b/public/manifest.json new file mode 100644 index 0000000..e189fec --- /dev/null +++ b/public/manifest.json @@ -0,0 +1,25 @@ +{ + "short_name": "LCEPL", + "name": "Laxmi Civil Engineering Services Pvt. Ltd.", + "icons": [ + { + "src": "favicon_large.ico", + "sizes": "256x256 128x128 70x70 34x34 26x26 18x18", + "type": "image/x-icon" + }, + { + "src": "logo192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "logo512.png", + "type": "image/png", + "sizes": "512x512" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..e9e57dc --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/src/App.css b/src/App.css new file mode 100644 index 0000000..74b5e05 --- /dev/null +++ b/src/App.css @@ -0,0 +1,38 @@ +.App { + text-align: center; +} + +.App-logo { + height: 40vmin; + pointer-events: none; +} + +@media (prefers-reduced-motion: no-preference) { + .App-logo { + animation: App-logo-spin infinite 20s linear; + } +} + +.App-header { + background-color: #282c34; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: calc(10px + 2vmin); + color: white; +} + +.App-link { + color: #61dafb; +} + +@keyframes App-logo-spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +} diff --git a/src/App.js b/src/App.js new file mode 100644 index 0000000..406ef56 --- /dev/null +++ b/src/App.js @@ -0,0 +1,171 @@ +// src/App.js +import React, { useEffect } from 'react'; +import './index.css'; +import { Routes, Route, useLocation } from 'react-router-dom'; +import Header from './components/Header'; +import Footer from './components/Footer'; + +import Home from './pages/Home'; +import AboutUs from './pages/AboutUs'; +import Careers from './pages/Careers'; +import Office from './pages/Office'; +import ContactUs from './pages/ContactUs'; +import Gallery from './pages/Gallery'; +import Projects from './pages/Projects'; +import AddProjects from './pages/AddProjects'; +import GalleryAdmin from './pages/GalleryAdmin'; +import BlogList from './pages/BlogList'; +import BlogDetail from './pages/BlogDetail'; + +// Admin +import ProtectedRoute from './components/ProtectedRoute'; +import AdminLogin from './pages/AdminLogin'; +import AdminLayout from './components/AdminLayout'; +import HRAdmin from './pages/HRAdmin'; + +import { ToastContainer } from 'react-toastify'; +import 'react-toastify/dist/ReactToastify.css'; + +// ScrollToTop component +const ScrollToTop = () => { + const { pathname } = useLocation(); + useEffect(() => { + window.scrollTo(0, 0); + }, [pathname]); + return null; +}; + +const App = () => { + return ( + <> + {/* ensures scroll starts at top on route change */} + + + {/* Admin Login */} + } /> + + {/* Protected Admin Routes with Layout */} + + + + } + > + } /> + } /> + } /> + + + {/* Public Routes */} + +
+ +