diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..936c6c2
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,11 @@
+{
+ "semi": true,
+ "singleQuote": true,
+ "tabWidth": 2,
+ "useTabs": false,
+ "trailingComma": "es5",
+ "printWidth": 80,
+ "bracketSpacing": true,
+ "arrowParens": "always",
+ "endOfLine": "lf"
+}
diff --git a/package-lock.json b/package-lock.json
index 7e1602b..5987ccb 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8,9 +8,13 @@
"name": "impresiones_front",
"version": "0.1.0",
"dependencies": {
+ "@zxing/library": "^0.21.3",
+ "bootstrap": "^5.3.6",
+ "bootstrap-icons": "^1.12.1",
"next": "15.3.2",
"react": "^19.0.0",
- "react-dom": "^19.0.0"
+ "react-dom": "^19.0.0",
+ "react-hot-toast": "^2.5.2"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
@@ -19,6 +23,7 @@
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.3.2",
+ "sass": "^1.32.13",
"typescript": "^5"
}
},
@@ -863,6 +868,17 @@
"node": ">=12.4.0"
}
},
+ "node_modules/@popperjs/core": {
+ "version": "2.11.8",
+ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
+ "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/popperjs"
+ }
+ },
"node_modules/@rtsao/scc": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz",
@@ -1431,6 +1447,28 @@
"win32"
]
},
+ "node_modules/@zxing/library": {
+ "version": "0.21.3",
+ "resolved": "https://registry.npmjs.org/@zxing/library/-/library-0.21.3.tgz",
+ "integrity": "sha512-hZHqFe2JyH/ZxviJZosZjV+2s6EDSY0O24R+FQmlWZBZXP9IqMo7S3nb3+2LBWxodJQkSurdQGnqE7KXqrYgow==",
+ "license": "MIT",
+ "dependencies": {
+ "ts-custom-error": "^3.2.1"
+ },
+ "engines": {
+ "node": ">= 10.4.0"
+ },
+ "optionalDependencies": {
+ "@zxing/text-encoding": "~0.9.0"
+ }
+ },
+ "node_modules/@zxing/text-encoding": {
+ "version": "0.9.0",
+ "resolved": "https://registry.npmjs.org/@zxing/text-encoding/-/text-encoding-0.9.0.tgz",
+ "integrity": "sha512-U/4aVJ2mxI0aDNI8Uq0wEhMgY+u4CNtEb0om3+y3+niDAsoTCOB33UF0sxpzqzdqXLqmvc+vZyAt4O8pPdfkwA==",
+ "license": "(Unlicense OR Apache-2.0)",
+ "optional": true
+ },
"node_modules/accepts": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
@@ -1501,6 +1539,20 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
+ "node_modules/anymatch": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+ "devOptional": true,
+ "license": "ISC",
+ "dependencies": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
@@ -1736,6 +1788,19 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/binary-extensions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
+ "devOptional": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/body-parser": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz",
@@ -1757,6 +1822,41 @@
"node": ">=18"
}
},
+ "node_modules/bootstrap": {
+ "version": "5.3.6",
+ "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.6.tgz",
+ "integrity": "sha512-jX0GAcRzvdwISuvArXn3m7KZscWWFAf1MKBcnzaN02qWMb3jpMoUX4/qgeiGzqyIb4ojulRzs89UCUmGcFSzTA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/twbs"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/bootstrap"
+ }
+ ],
+ "license": "MIT",
+ "peerDependencies": {
+ "@popperjs/core": "^2.11.8"
+ }
+ },
+ "node_modules/bootstrap-icons": {
+ "version": "1.12.1",
+ "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.12.1.tgz",
+ "integrity": "sha512-ekwupjsteHQmgGV+haQ0nNMoSyKCbJj5ou+06vFzb9uR2/bwN9isNEgXBaQzcT+fLzhKS3OaBNpwz8XdZlIgYQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/twbs"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/bootstrap"
+ }
+ ],
+ "license": "MIT"
+ },
"node_modules/brace-expansion": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
@@ -1772,7 +1872,7 @@
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"fill-range": "^7.1.1"
@@ -1899,6 +1999,44 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
+ "node_modules/chokidar": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/chokidar/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "devOptional": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/client-only": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
@@ -2033,7 +2171,6 @@
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
- "dev": true,
"license": "MIT"
},
"node_modules/damerau-levenshtein": {
@@ -3022,7 +3159,7 @@
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"to-regex-range": "^5.0.1"
@@ -3123,6 +3260,21 @@
"node": ">= 0.8"
}
},
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
"node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
@@ -3277,6 +3429,15 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/goober": {
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/goober/-/goober-2.1.16.tgz",
+ "integrity": "sha512-erjk19y1U33+XAMe1VTvIONHYoSqE4iS7BYUZfHaqeohLmnC0FdxEh7rQU+6MZ4OajItzjZFSRtVANrQwNq6/g==",
+ "license": "MIT",
+ "peerDependencies": {
+ "csstype": "^3.0.10"
+ }
+ },
"node_modules/gopd": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
@@ -3551,6 +3712,19 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/is-boolean-object": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz",
@@ -3646,7 +3820,7 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
@@ -3691,7 +3865,7 @@
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"is-extglob": "^2.1.1"
@@ -3717,7 +3891,7 @@
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=0.12.0"
@@ -4289,6 +4463,16 @@
}
}
},
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "devOptional": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
@@ -4573,7 +4757,7 @@
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">=8.6"
@@ -4760,6 +4944,23 @@
"react": "^19.1.0"
}
},
+ "node_modules/react-hot-toast": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/react-hot-toast/-/react-hot-toast-2.5.2.tgz",
+ "integrity": "sha512-Tun3BbCxzmXXM7C+NI4qiv6lT0uwGh4oAfeJyNOjYUejTsm35mK9iCaYLGv8cBz9L5YxZLx/2ii7zsIwPtPUdw==",
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "^3.1.3",
+ "goober": "^2.1.16"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "react": ">=16",
+ "react-dom": ">=16"
+ }
+ },
"node_modules/react-is": {
"version": "16.13.1",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
@@ -4767,6 +4968,19 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/readdirp": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
"node_modules/reflect.getprototypeof": {
"version": "1.0.10",
"resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz",
@@ -4987,6 +5201,22 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/sass": {
+ "version": "1.32.13",
+ "resolved": "https://registry.npmjs.org/sass/-/sass-1.32.13.tgz",
+ "integrity": "sha512-dEgI9nShraqP7cXQH+lEXVf73WOPCse0QlFzSD8k+1TcOxCMwVXfQlr0jtoluZysQOyJGnfr21dLvYKDJq8HkA==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "chokidar": ">=3.0.0 <4.0.0"
+ },
+ "bin": {
+ "sass": "sass.js"
+ },
+ "engines": {
+ "node": ">=8.9.0"
+ }
+ },
"node_modules/scheduler": {
"version": "0.26.0",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz",
@@ -5519,7 +5749,7 @@
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"is-number": "^7.0.0"
@@ -5551,6 +5781,15 @@
"typescript": ">=4.8.4"
}
},
+ "node_modules/ts-custom-error": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/ts-custom-error/-/ts-custom-error-3.3.1.tgz",
+ "integrity": "sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
"node_modules/tsconfig-paths": {
"version": "3.15.0",
"resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz",
diff --git a/package.json b/package.json
index af02785..acb0a59 100644
--- a/package.json
+++ b/package.json
@@ -9,17 +9,22 @@
"lint": "next lint"
},
"dependencies": {
+ "@zxing/library": "^0.21.3",
+ "bootstrap": "^5.3.6",
+ "bootstrap-icons": "^1.12.1",
+ "next": "15.3.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
- "next": "15.3.2"
+ "react-hot-toast": "^2.5.2"
},
"devDependencies": {
- "typescript": "^5",
+ "@eslint/eslintrc": "^3",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.3.2",
- "@eslint/eslintrc": "^3"
+ "sass": "^1.32.13",
+ "typescript": "^5"
}
}
diff --git a/public/file.svg b/public/file.svg
deleted file mode 100644
index 004145c..0000000
--- a/public/file.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/globe.svg b/public/globe.svg
deleted file mode 100644
index 567f17b..0000000
--- a/public/globe.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/logo-fes.png b/public/logo-fes.png
new file mode 100644
index 0000000..11e39c2
Binary files /dev/null and b/public/logo-fes.png differ
diff --git a/public/logo-unam.png b/public/logo-unam.png
new file mode 100644
index 0000000..9c169ee
Binary files /dev/null and b/public/logo-unam.png differ
diff --git a/public/next.svg b/public/next.svg
deleted file mode 100644
index 5174b28..0000000
--- a/public/next.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/unam.png b/public/unam.png
new file mode 100644
index 0000000..84f9d78
Binary files /dev/null and b/public/unam.png differ
diff --git a/public/vercel.svg b/public/vercel.svg
deleted file mode 100644
index 7705396..0000000
--- a/public/vercel.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/window.svg b/public/window.svg
deleted file mode 100644
index b2b2a44..0000000
--- a/public/window.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/app/globals.css b/src/app/globals.css
deleted file mode 100644
index e3734be..0000000
--- a/src/app/globals.css
+++ /dev/null
@@ -1,42 +0,0 @@
-:root {
- --background: #ffffff;
- --foreground: #171717;
-}
-
-@media (prefers-color-scheme: dark) {
- :root {
- --background: #0a0a0a;
- --foreground: #ededed;
- }
-}
-
-html,
-body {
- max-width: 100vw;
- overflow-x: hidden;
-}
-
-body {
- color: var(--foreground);
- background: var(--background);
- font-family: Arial, Helvetica, sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-* {
- box-sizing: border-box;
- padding: 0;
- margin: 0;
-}
-
-a {
- color: inherit;
- text-decoration: none;
-}
-
-@media (prefers-color-scheme: dark) {
- html {
- color-scheme: dark;
- }
-}
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 42fc323..8be07a5 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,20 +1,20 @@
+import BootstrapClient from "@/components/bootstrap-client";
+import Header from "@/components/header";
import type { Metadata } from "next";
-import { Geist, Geist_Mono } from "next/font/google";
-import "./globals.css";
+import { Roboto } from "next/font/google";
-const geistSans = Geist({
- variable: "--font-geist-sans",
- subsets: ["latin"],
-});
+import 'bootstrap-icons/font/bootstrap-icons.css';
+import '@/styles/sass/bootstrap.scss';
-const geistMono = Geist_Mono({
- variable: "--font-geist-mono",
+const roboto = Roboto({
+ variable: "--font-roboto",
subsets: ["latin"],
+ weight: ["400", "700"], // Specify weights if needed
});
export const metadata: Metadata = {
- title: "Create Next App",
- description: "Generated by create next app",
+ title: "Impresiones - FES Acatlán",
+ description: "Sistema de impresión de documentos para la FES Acatlán",
};
export default function RootLayout({
@@ -24,7 +24,9 @@ export default function RootLayout({
}>) {
return (
-
+
+
+
{children}
diff --git a/src/app/page.module.css b/src/app/page.module.css
deleted file mode 100644
index a11c8f3..0000000
--- a/src/app/page.module.css
+++ /dev/null
@@ -1,168 +0,0 @@
-.page {
- --gray-rgb: 0, 0, 0;
- --gray-alpha-200: rgba(var(--gray-rgb), 0.08);
- --gray-alpha-100: rgba(var(--gray-rgb), 0.05);
-
- --button-primary-hover: #383838;
- --button-secondary-hover: #f2f2f2;
-
- display: grid;
- grid-template-rows: 20px 1fr 20px;
- align-items: center;
- justify-items: center;
- min-height: 100svh;
- padding: 80px;
- gap: 64px;
- font-family: var(--font-geist-sans);
-}
-
-@media (prefers-color-scheme: dark) {
- .page {
- --gray-rgb: 255, 255, 255;
- --gray-alpha-200: rgba(var(--gray-rgb), 0.145);
- --gray-alpha-100: rgba(var(--gray-rgb), 0.06);
-
- --button-primary-hover: #ccc;
- --button-secondary-hover: #1a1a1a;
- }
-}
-
-.main {
- display: flex;
- flex-direction: column;
- gap: 32px;
- grid-row-start: 2;
-}
-
-.main ol {
- font-family: var(--font-geist-mono);
- padding-left: 0;
- margin: 0;
- font-size: 14px;
- line-height: 24px;
- letter-spacing: -0.01em;
- list-style-position: inside;
-}
-
-.main li:not(:last-of-type) {
- margin-bottom: 8px;
-}
-
-.main code {
- font-family: inherit;
- background: var(--gray-alpha-100);
- padding: 2px 4px;
- border-radius: 4px;
- font-weight: 600;
-}
-
-.ctas {
- display: flex;
- gap: 16px;
-}
-
-.ctas a {
- appearance: none;
- border-radius: 128px;
- height: 48px;
- padding: 0 20px;
- border: none;
- border: 1px solid transparent;
- transition:
- background 0.2s,
- color 0.2s,
- border-color 0.2s;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 16px;
- line-height: 20px;
- font-weight: 500;
-}
-
-a.primary {
- background: var(--foreground);
- color: var(--background);
- gap: 8px;
-}
-
-a.secondary {
- border-color: var(--gray-alpha-200);
- min-width: 158px;
-}
-
-.footer {
- grid-row-start: 3;
- display: flex;
- gap: 24px;
-}
-
-.footer a {
- display: flex;
- align-items: center;
- gap: 8px;
-}
-
-.footer img {
- flex-shrink: 0;
-}
-
-/* Enable hover only on non-touch devices */
-@media (hover: hover) and (pointer: fine) {
- a.primary:hover {
- background: var(--button-primary-hover);
- border-color: transparent;
- }
-
- a.secondary:hover {
- background: var(--button-secondary-hover);
- border-color: transparent;
- }
-
- .footer a:hover {
- text-decoration: underline;
- text-underline-offset: 4px;
- }
-}
-
-@media (max-width: 600px) {
- .page {
- padding: 32px;
- padding-bottom: 80px;
- }
-
- .main {
- align-items: center;
- }
-
- .main ol {
- text-align: center;
- }
-
- .ctas {
- flex-direction: column;
- }
-
- .ctas a {
- font-size: 14px;
- height: 40px;
- padding: 0 16px;
- }
-
- a.secondary {
- min-width: auto;
- }
-
- .footer {
- flex-wrap: wrap;
- align-items: center;
- justify-content: center;
- }
-}
-
-@media (prefers-color-scheme: dark) {
- .logo {
- filter: invert();
- }
-}
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 84af2cb..fa25f22 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,95 +1,173 @@
-import Image from "next/image";
-import styles from "./page.module.css";
+'use client';
+
+import React, { useState } from 'react';
+import Button from '@/components/button';
+import Input from '@/components/input';
+import toast from 'react-hot-toast';
+import MultiScanner from '@/components/scanner';
+
+export default function Page() {
+ const [numeroCuenta, setNumeroCuenta] = useState('');
+ const [numeroFolio, setNumeroFolio] = useState('');
+ const [scanningType, setScanningType] = useState<
+ 'credencial' | 'folio' | null
+ >(null);
+ const [enableScan, setEnableScan] = useState(false);
+ const [statusMessage, setStatusMessage] = useState('');
+
+ const handleScan = (rawValue: string) => {
+ setEnableScan(false);
+ if (scanningType === 'credencial') {
+ // Credencial solo texto plano
+ setNumeroCuenta(rawValue);
+ toast.success('✅ Credencial escaneada correctamente');
+ setScanningType(null);
+ return;
+ }
+
+ // Para folio, intentar JSON o texto plano
+ try {
+ const data = JSON.parse(rawValue);
+ if (scanningType === 'folio' && data.folio) {
+ setNumeroFolio(data.folio);
+ toast.success('✅ Folio escaneado correctamente');
+ } else {
+ throw new Error('No contiene folio');
+ }
+ } catch (err) {
+ console.log(err);
+ if (scanningType === 'folio') {
+ setNumeroFolio(rawValue);
+ toast.success('✅ Folio escaneado correctamente');
+ } else {
+ setStatusMessage(
+ '⚠️ El código escaneado no contiene los datos requeridos o está malformado'
+ );
+ }
+ } finally {
+ setScanningType(null);
+ }
+ };
-export default function Home() {
return (
-
-
-
-
- -
- Get started by editing
src/app/page.tsx.
-
- - Save and see your changes instantly.
-
+
+
Sistema de Impresiones
-
+
+
+
+
+
+ {/* Escáner ZXing */}
+ {enableScan && (
+
+
+
+
+
+
+ )}
+
+ {/* Resultados */}
+
+
Resultados
+
+
+
Nombres
+
Jorge Miguel
+
+
+
Apellidos
+
Alvarado Diaz
+
+
+
Numero de cuenta
+
{numeroCuenta}
+
+
+
+
+
+ {/* Formulario de registro de folio */}
+
+
+ {statusMessage &&
{statusMessage}
}
);
}
diff --git a/src/components/bootstrap-client.tsx b/src/components/bootstrap-client.tsx
new file mode 100644
index 0000000..f0f92f1
--- /dev/null
+++ b/src/components/bootstrap-client.tsx
@@ -0,0 +1,17 @@
+'use client';
+import { useEffect } from 'react';
+
+export default function BootstrapClient() {
+ useEffect(() => {
+ const loadBootstrap = async () => {
+ if (typeof document !== 'undefined') {
+ // @ts-expect-error: Bootstrap is loaded dynamically
+ await import('bootstrap/dist/js/bootstrap.bundle.min.js');
+ }
+ };
+
+ loadBootstrap();
+ }, []);
+
+ return null;
+}
diff --git a/src/components/button.tsx b/src/components/button.tsx
new file mode 100644
index 0000000..dd46dc3
--- /dev/null
+++ b/src/components/button.tsx
@@ -0,0 +1,72 @@
+import React from 'react';
+
+/**
+ * Botón reutilizable con soporte para variantes de Bootstrap y personalización de íconos.
+ *
+ * @component
+ */
+interface ButtonProps extends React.ButtonHTMLAttributes {
+ /**
+ * Variante Bootstrap o personalizada. Ej: `primary`, `danger`, `mi-clase-custom`.
+ * @default "primary"
+ */
+ variant?: string;
+
+ /**
+ * Si se usa variante `outline` (por ejemplo, `btn-outline-primary`).
+ * @default false
+ */
+ outline?: boolean;
+
+ /**
+ * Ícono Bootstrap (`string`, como `check-circle`) o componente React.
+ */
+ icon?: string | React.ReactNode;
+
+ /**
+ * Tamaño del botón: `sm` o `lg` para tamaños Bootstrap.
+ */
+ size?: 'sm' | 'lg';
+
+ /**
+ * Clases adicionales personalizadas para el botón.
+ */
+ className?: string;
+}
+
+/**
+ * Componente `Button` con estilos de Bootstrap y soporte para íconos.
+ */
+const Button: React.FC = ({
+ children,
+ type = 'button',
+ icon,
+ className = '',
+ variant = 'primary',
+ outline = false,
+ disabled = false,
+ size,
+ ...rest
+}) => {
+ const btnVariant = outline ? `btn-outline-${variant}` : `btn-${variant}`;
+ const sizeClass = size ? `btn-${size}` : '';
+ const combinedClasses = `btn ${btnVariant} ${sizeClass} ${className}`.trim();
+
+ return (
+
+ );
+};
+
+export default Button;
diff --git a/src/components/checkbox-option-group.tsx b/src/components/checkbox-option-group.tsx
new file mode 100644
index 0000000..ccaf435
--- /dev/null
+++ b/src/components/checkbox-option-group.tsx
@@ -0,0 +1,58 @@
+import React from "react";
+
+export interface CheckboxOption {
+ label: string;
+ value: T;
+ disabled?: boolean;
+}
+
+interface CheckboxOptionGroupProps {
+ name: string;
+ options: CheckboxOption[];
+ selectedValues: T[];
+ onChange: (option: CheckboxOption) => void;
+ maxSelected?: number;
+ disabled?: boolean;
+ className?: string;
+}
+
+export default function CheckboxOptionGroup({
+ name,
+ options,
+ selectedValues,
+ onChange,
+ maxSelected,
+ disabled = false,
+ className = "",
+}: CheckboxOptionGroupProps) {
+ const isSelected = (value: T) => selectedValues.includes(value);
+
+ return (
+
+ {options.map((option, index) => {
+ const checked = isSelected(option.value);
+ const limitReached =
+ maxSelected !== undefined &&
+ selectedValues.length >= maxSelected &&
+ !checked;
+
+ return (
+
+ );
+ })}
+
+ );
+}
diff --git a/src/components/component-card.tsx b/src/components/component-card.tsx
new file mode 100644
index 0000000..ecdce45
--- /dev/null
+++ b/src/components/component-card.tsx
@@ -0,0 +1,30 @@
+import Image from "next/image";
+import Link from "next/link";
+import React from "react";
+
+interface ComponentCardProps {
+ title: string;
+ src: string;
+ href: string;
+}
+
+export default function ComponentCard({
+ title,
+ src,
+ href,
+}: ComponentCardProps) {
+ return (
+
+
+
{title}
+
+
+
+ );
+}
diff --git a/src/components/content-index.tsx b/src/components/content-index.tsx
new file mode 100644
index 0000000..069d313
--- /dev/null
+++ b/src/components/content-index.tsx
@@ -0,0 +1,23 @@
+interface IndiceContenidoProps {
+ items: {
+ id: string;
+ label: string;
+ }[];
+}
+
+export default function IndiceContenido({ items }: IndiceContenidoProps) {
+ return (
+
+ );
+}
diff --git a/src/components/header.tsx b/src/components/header.tsx
new file mode 100644
index 0000000..a766c96
--- /dev/null
+++ b/src/components/header.tsx
@@ -0,0 +1,32 @@
+import Image from 'next/image';
+import React from 'react';
+import Link from 'next/link';
+
+export default function Header({ small = false }: { small?: boolean }) {
+ return (
+
+ );
+}
diff --git a/src/components/input.tsx b/src/components/input.tsx
new file mode 100644
index 0000000..5097ec7
--- /dev/null
+++ b/src/components/input.tsx
@@ -0,0 +1,80 @@
+'use client';
+import React, { useState } from "react";
+
+export interface InputProps
+ extends Omit, "className"> {
+ label?: string;
+ className?: {
+ container?: string;
+ label?: string;
+ input?: string;
+ };
+}
+
+/**
+ * Componente de entrada (`Input`) reutilizable en React.
+ *
+ * Este componente renderiza un campo de entrada (``) con una etiqueta opcional y
+ * funcionalidad para mostrar u ocultar contraseñas cuando el tipo es `password`.
+ * También permite personalizar clases CSS y es accesible mediante `aria-label` y `htmlFor`.
+ *
+ * @component
+ * @param {Object} props - Propiedades del componente.
+ * @param {string} [props.label] - Etiqueta visible asociada al campo de entrada.
+ * @param {Object} [props.className] - Clases CSS personalizables para distintos elementos.
+ * @param {string} [props.className.container] - Clases para el contenedor del input.
+ * @param {string} [props.className.label] - Clases para la etiqueta del input.
+ * @param {string} [props.className.input] - Clases para el input en sí.
+ * @param {string} [props.type] - Tipo del input (`text`, `password`, `email`, etc.).
+ * @param {string} [props.name] - Nombre del input (útil para formularios).
+ * @param {string} [props.id] - ID personalizado para el input (para accesibilidad).
+ * @param {string} [props.value] - Valor del input (para uso controlado).
+ * @param {function} [props.onChange] - Manejador del cambio de valor del input.
+ * @param {React.InputHTMLAttributes} [rest] - Atributos adicionales compatibles con ``.
+ */
+export default function Input(props: InputProps) {
+ const { className, label, type, name, id, ...rest } = props;
+ const [showPassword, setShowPassword] = useState(false);
+
+ const isPassword = type === "password";
+ const inputType = isPassword && showPassword ? "text" : type;
+ const inputId =
+ id || name || (label ? `input-${label.replace(/\s+/g, "-")}` : undefined);
+
+ const togglePasswordVisibility = () => setShowPassword(!showPassword);
+
+ return (
+
+ {label && inputId && (
+
+ )}
+
+
+ {isPassword && (
+
+ )}
+
+
+ );
+}
diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx
new file mode 100644
index 0000000..18c9c3f
--- /dev/null
+++ b/src/components/navbar.tsx
@@ -0,0 +1,74 @@
+import React from "react";
+import Link from "next/link";
+
+const Navbar: React.FC = () => {
+ return (
+
+ );
+};
+
+export default Navbar;
diff --git a/src/components/pagination.tsx b/src/components/pagination.tsx
new file mode 100644
index 0000000..19a2ac2
--- /dev/null
+++ b/src/components/pagination.tsx
@@ -0,0 +1,105 @@
+import React, { useMemo } from "react";
+
+interface PaginationProps {
+ totalPages: number;
+ currentPage: number;
+ onPageChange: (page: number) => void;
+ delta?: number;
+}
+
+export default function Pagination({
+ currentPage,
+ onPageChange,
+ totalPages,
+ delta = 1,
+}: PaginationProps) {
+ const handlePageChange = (page: number) => {
+ if (page >= 1 && page <= totalPages && page !== currentPage) {
+ onPageChange(page);
+ }
+ };
+
+ const visiblePages = useMemo(() => {
+ const pages: (number | -1)[] = [];
+
+ if (totalPages <= 5 + delta * 2) {
+ return Array.from({ length: totalPages }, (_, i) => i + 1);
+ }
+
+ const left = Math.max(2, currentPage - delta);
+ const right = Math.min(totalPages - 1, currentPage + delta);
+
+ pages.push(1);
+ if (left > 2) pages.push(-1);
+
+ for (let i = left; i <= right; i++) {
+ pages.push(i);
+ }
+
+ if (right < totalPages - 1) pages.push(-1);
+ pages.push(totalPages);
+
+ return pages;
+ }, [currentPage, totalPages, delta]);
+
+ return (
+
+ );
+}
diff --git a/src/components/radio-option-group.tsx b/src/components/radio-option-group.tsx
new file mode 100644
index 0000000..c4464d0
--- /dev/null
+++ b/src/components/radio-option-group.tsx
@@ -0,0 +1,46 @@
+import React from "react";
+
+export interface RadioOption {
+ label: string;
+ value: T;
+ disabled?: boolean;
+}
+
+interface RadioOptionGroupProps {
+ name: string;
+ options: RadioOption[];
+ selectedValue?: T;
+ onChange: (option: RadioOption) => void;
+ disabled?: boolean;
+ className?: string;
+}
+
+export default function RadioOptionGroup({
+ name,
+ options,
+ selectedValue,
+ onChange,
+ disabled = false,
+ className = "",
+}: RadioOptionGroupProps) {
+ return (
+
+ {options.map((option, index) => (
+
+ ))}
+
+ );
+}
diff --git a/src/components/scanner.jsx b/src/components/scanner.jsx
new file mode 100644
index 0000000..a878b8e
--- /dev/null
+++ b/src/components/scanner.jsx
@@ -0,0 +1,22 @@
+import React, { useEffect, useRef } from 'react';
+import { BrowserMultiFormatReader } from '@zxing/library';
+
+export default function MultiScanner({ onDetected }) {
+ const videoRef = useRef(null);
+
+ useEffect(() => {
+ const codeReader = new BrowserMultiFormatReader();
+ codeReader
+ .decodeFromVideoDevice(null, videoRef.current, (result, err) => {
+ if (result) {
+ console.log(result);
+ onDetected(result.getText());
+ }
+ })
+ .catch((err) => console.error(err));
+
+ return () => codeReader.reset();
+ }, [onDetected]);
+
+ return ;
+}
diff --git a/src/components/select.tsx b/src/components/select.tsx
new file mode 100644
index 0000000..364d43c
--- /dev/null
+++ b/src/components/select.tsx
@@ -0,0 +1,103 @@
+import React, { useId } from 'react';
+
+interface Option {
+ value: string | number;
+ label: string;
+}
+
+interface SelectProps
+ extends Omit, 'className'> {
+ label: string;
+ className?: {
+ container?: string;
+ label?: string;
+ input?: string;
+ };
+ options: Option[];
+ placeholder?: string;
+}
+
+/**
+ * Componente `Select` reutilizable en React.
+ *
+ * Este componente renderiza un elemento `