diff --git a/certificate-generator/package-lock.json b/certificate-generator/package-lock.json
index b0ee6d4..c28f204 100644
--- a/certificate-generator/package-lock.json
+++ b/certificate-generator/package-lock.json
@@ -11,7 +11,8 @@
"html2pdf.js": "^0.10.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
- "react-icons": "^5.2.1"
+ "react-icons": "^5.2.1",
+ "react-router-dom": "^6.24.1"
},
"devDependencies": {
"@types/react": "^18.3.3",
@@ -1006,6 +1007,14 @@
"node": ">=14"
}
},
+ "node_modules/@remix-run/router": {
+ "version": "1.17.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.17.1.tgz",
+ "integrity": "sha512-mCOMec4BKd6BRGBZeSnGiIgwsbLGp3yhVqAD8H+PxiRNEHgDpZb8J1TnrSDlg97t0ySKMQJTHCWBCmBpSmkF6Q==",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
"node_modules/@rollup/rollup-android-arm-eabi": {
"version": "4.18.0",
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz",
@@ -4378,6 +4387,36 @@
"node": ">=0.10.0"
}
},
+ "node_modules/react-router": {
+ "version": "6.24.1",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.24.1.tgz",
+ "integrity": "sha512-PTXFXGK2pyXpHzVo3rR9H7ip4lSPZZc0bHG5CARmj65fTT6qG7sTngmb6lcYu1gf3y/8KxORoy9yn59pGpCnpg==",
+ "dependencies": {
+ "@remix-run/router": "1.17.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8"
+ }
+ },
+ "node_modules/react-router-dom": {
+ "version": "6.24.1",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.24.1.tgz",
+ "integrity": "sha512-U19KtXqooqw967Vw0Qcn5cOvrX5Ejo9ORmOtJMzYWtCT4/WOfFLIZGGsVLxcd9UkBO0mSTZtXqhZBsWlHr7+Sg==",
+ "dependencies": {
+ "@remix-run/router": "1.17.1",
+ "react-router": "6.24.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8",
+ "react-dom": ">=16.8"
+ }
+ },
"node_modules/read-cache": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
diff --git a/certificate-generator/package.json b/certificate-generator/package.json
index 120e123..53a1ef7 100644
--- a/certificate-generator/package.json
+++ b/certificate-generator/package.json
@@ -13,7 +13,8 @@
"html2pdf.js": "^0.10.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
- "react-icons": "^5.2.1"
+ "react-icons": "^5.2.1",
+ "react-router-dom": "^6.24.1"
},
"devDependencies": {
"@types/react": "^18.3.3",
diff --git a/certificate-generator/src/App.jsx b/certificate-generator/src/App.jsx
index aa73b74..40deb2d 100644
--- a/certificate-generator/src/App.jsx
+++ b/certificate-generator/src/App.jsx
@@ -1,17 +1,27 @@
import React from "react";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
+import Navbar from "./Compenents/Navbar";
import Home from "./Home/HomePage";
import CertificateGenerator from "./Compenents/Certificate";
import ContactForm from "./Compenents/Contact";
+import Services from "./Compenents/Service";
+import About from "./Compenents/About";
const App = () => {
return (
Learn more about our company:
++ Description of your company's mission. +
++ Meet our dedicated team members. +
+This is to certify that ${employeeName} has worked as a ${designation} at ${companyName} for a duration of ${duration}.
+During their tenure, they have demonstrated excellent performance and contributed significantly to the success of our organization.
+We wish them all the best in their future endeavors.
+Signature
+1234 Elm Street, Suite 567, City, State, 12345
+CIN: ${generateRandomString(21)}
+Website: https://www.example.com
+Phone: +1 (123) 456-7890
+ + + `; + const blob = new Blob(['\ufeff', content], { type: "application/msword" }); + const link = document.createElement("a"); + link.href = URL.createObjectURL(blob); + link.download = "Experience_Certificate.doc"; + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); + }; + + const downloadAsTxt = () => { + const textContent = `Experience Certificate\n\n + This is to certify that ${employeeName} has worked as a ${designation} at ${companyName} for a duration of ${duration}.\n + During their tenure, they have demonstrated excellent performance and contributed significantly to the success of our organization.\n + We wish them all the best in their future endeavors.\n + \n + Signature\n + ${companyName} + \n\n + 1234 Elm Street, Suite 567, City, State, 12345 + \n + CIN: ${generateRandomString(21)} + \n + Website: https://www.example.com + \n + Phone: +1 (123) 456-7890 + `; + const blob = new Blob([textContent], { type: "text/plain" }); + const link = document.createElement("a"); + link.href = URL.createObjectURL(blob); + link.download = "Experience_Certificate.txt"; + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); }; return (- This is to certify that{" "} - - {employeeName} - {" "} - has worked as a{" "} - - {designation} - {" "} - at{" "} - - {companyName} - {" "} - for a duration of{" "} - - {duration} - - . -
-- During their tenure, they have demonstrated excellent performance and contributed - significantly to the success of our organization. -
-We wish them all the best in their future endeavors.
-- Signature -
-+ This is to certify that {employeeName} has worked as a {designation} at {companyName} for a duration of {duration}. + During their tenure, they have demonstrated excellent performance and contributed significantly to the success of our organization. + We wish them all the best in their future endeavors. +
++ Signature +
@@ -197,13 +239,32 @@ const CertificateGenerator = () => {