diff --git a/app/ActivosMantenimiento/Page.module.css b/app/ActivosMantenimiento/Page.module.css new file mode 100644 index 0000000..8f3544d --- /dev/null +++ b/app/ActivosMantenimiento/Page.module.css @@ -0,0 +1,71 @@ +.tableContainer { + margin-top: 10px; + overflow-y: auto; + overflow-x: auto; + border-radius: 4px; + border: 1px solid #cfcfcf; + max-height: 430px; + scrollbar-color: rgb(1, 92, 184) rgba(0, 0, 0, 0); + background-color: #f9f9f9; + width: 100%; +} + +.machineTable { + width: 100%; + border-collapse: collapse; + table-layout: auto; +} + +.machineTable th, +.machineTable td { + padding: 10px; + text-align: center; + border-bottom: 1px solid #cfcfcf; + word-wrap: break-word; + overflow-wrap: break-word; +} + +.machineTable th { + position: sticky; + top: 0px; + background-color: rgb(1, 92, 184); + color: white; +} + +.machineTable tr { + min-width: 400px; +} + +.disponible { + display: flex; + width: 100%; + height: 100%; + background-color: green; + color: green; + font-weight: bold; +} + +.ocupado { + color: red; + font-weight: bold; +} + + +.actions { + text-align: center; +} + +.resetButton { + padding: 8px 16px; + background-color: #ff4d4d; + color: white; + border: none; + border-radius: 6px; + cursor: pointer; + font-weight: bold; + transition: 0.3s; +} + +.resetButton:hover { + background-color: #cc0000; +} \ No newline at end of file diff --git a/app/ActivosMantenimiento/page.tsx b/app/ActivosMantenimiento/page.tsx index e440840..11ddc6f 100644 --- a/app/ActivosMantenimiento/page.tsx +++ b/app/ActivosMantenimiento/page.tsx @@ -1,12 +1,203 @@ -import SearchUser from "../Components/SearchUser/searchUser"; +"use client"; +import { useState } from "react"; +import Toggle from "../Components/Toggle/Toggle"; +import styles from "./Page.module.css"; // importamos el css export default function Page() { + const [machines] = useState([ + { + ubicacion: "1", + nombre: "PCD108", + plataforma: "Windows", + area: "PCNET1", + activo: true, + }, + ]); + + const [tables] = useState([ + { + mesa: "1", + activo: false, + }, + ]); + + const [area, setArea] = useState(""); + return ( -
-

ACTIVOS Y EN MANTENIMIENTO

+
+

ACTIVOS Y EN MANTENIMIENTO

+ +
+ + +
+ + + + + + + + + + + + + {machines.map((machine, index) => ( + + + + + + + + ))} + +
UbicacionNombrePlataformaAreaActivo
{machine.ubicacion}{machine.nombre}{machine.plataforma}{machine.area} + {" "} + +
+ + ), + }, + { + key: "2", + label: "Areas", + content: <>, + }, + { + key: "3", + label: "Mesas", + content: ( + <> + + + + + + + + + {tables.map((table, index) => ( + + + + + ))} + +
MesaActivo
{table.mesa} + {" "} + +
+ + ), + }, + ]} + />
- ); } -//IO \ No newline at end of file +//IO + +// +// +// .:--===--::. +// .-+*%%%%%%#%%%%%%%#+=: +// :=#%############%%%%%%@@@+ +// .-*#######********##%%%%%%@%% +// .=######********+++**##%%%%%%@@: +// .=#####**********++++**##%%%%%%%@= +// -####**************+++**##%%%%%%%@+ +// :*################***+***##%%%%%%%%%# +// =%#######%%%%%%%%##******###%%%%%%%%@% +// .+%###%%%%%%%%%%%%%##******##%%%%%%%%%%% +// .:::----:::.. .#%%%%%%@@@%%%%%%%%##******###%%%%%%%%%%# +// .-=+++++++++********+=-:. .#%%%%@@@@@@%%%%%%%##*******##%%%%%%%%%%%* +// .-+#*++++++***###%%#%########*+- .#%%%%@@@@@@@%%%%%%%#***+++**##%%%%%%%%%@%= +// :+##++===+++*#%%%%%%%%%%%%%%%%%%%%%+: .#%%%@@@@@@@@%%%%%%%%%#**+++**#%%%%%%%%%%%@: +// :*%#++=====+++*#%%%%%%%%%%%%%%@@%%%%@@@#=. +@@@@@@@@@@@@@%%%%%%%%#**++***##%%%%%%%%%%# +// #%#**++=====+++*##%%%%%%%%%%%%@@@@@%@@@@@%= ..:@@@@@@@@@@@@@@%%%%%%%%##**+***##%%%%%%%%%%- +// *%##**+++===++++**##%%%%%%%%%%@@@@@@@@@@@@@#+*#%%@@@@@@@@@@@@@@%%%%%%%%##**+***##%%%%%%%%%# +// +%%###**++===+++++*##%%%%%%%%%@@@@@@@@@@@@@%*+*%@@@@@@@@@@@@@@%%%%%%%%##**+++**##%%%%%%%%%- +// :%%%###**++===+++++*#%%%%%%%%%@@@@@@@@@@@@@%**%%@@@@@@@@@@@@@@%%%#####***++++**##%%%%%%%%* +// *%%%%##**+++++++++*#%%%%%%%%%@@@@@@@@@@@@@@%%@@@@@@@@@@@@@@@@@@@%%%%%##***++**##%%%%%%%%. +// .%%%%%##*+++==+++*#%%%%%%%%%%%%%%%@@@@@@@@@@@@@@%=-=++++*#%@@@@@@@%%%%%%%%####%%%%%%%%%= +// +%%%%%#**++=+++*##%%%%%%%%%##%%%%@@@@@%%%%%%%%%#-=--=====++#%@@@@@@%%%%%%%%%%%%%%%%@@* +// .#%%%%%**++==++*##%%%%%#####%%%@@@%%%%%%%%%%%%%*------=======*%@@@@@%%%%%%%%%%%%%%@@#. +// :%%%%%**++==+++**########%%%@@@%%%%%%%%%%%%%%%*------:----====+%@@%%%%%%#%%@@@@@@@#. +// -%%%%#*++===++++****##%%%@@@@%%%%%%%%%%%%%%%%*-::--:-::--------*@%%%%%#####**%@@%. +// +%%%#*++===+++***##%%@@@@@@%%%%%%%%%%%%%%%%%*::::::::::::::-:::=%%%%%%###+. .=#: +// +%%%**+++++***#%%%@%@@@@@%%%%%%%%%%%%%%%%%%*:::::::::..:.::::.::%%%%###= +// +%%#*******#%%%%%%%@@@@@%###########%%%%%%+....................-%%%##= +// +%%######%%%@%#%%%@@@@@##################+ .. .. . *%##- +// -#%%%%%%%%@#*#%%%@@@@%##################= :%*: +// .*%%%%%@#:+*#%%%%@@%###################+ -. +// :+#%@+ .=##%%%%**###################+ +// .: -#%%#-:####################+ ..... +// .==.:#####################* .......... +// .###%##################* . .............. +// .#%##%%%%##########%#%%%# ......................... +// *%%%%%%%%%%%%%%%%%%%%%%%# ......................... +// =%%%%%%%%%%%%%%%%%%%%%%%%%........................... +// .%%%%%%%%%%%%%%%%%%%%%%%%%%............................ +// +%%%%%%%%%%%%%%%%%%%%%%%%%%.........................:.:. +// %%%%%%%%%%%%%%%%%%%#*+++===::::::::.................:.:: +// -%%%%%%%%%%%%%%*==::::::-=+=+=-:::::::::............:::::. +// *%%%%%%%%%%%%%%=:::.:-**+*******+:....:-::.......::::::::- +// #%%%%%%%%%%%%%%+::....-++=====+=.....::=.......:.:::::-:-- +// .%%%%%%%%%%%%%%%*-::.....::--:::.....:-++....::.::::::----= +// .%%%%%%%%%%%%%%%%%*=:..............:-=++=...::::::::------= +// :%%%%%%%%%%%%%%%%%%%%*-.........::-+++++=:::::::::-----=-=: +// .+%%%%%%%%%%%%%%%%%%#=-=-:::::-----:-=++-:::::::-:-::-==-. +// :#%%%%%%%%%%%%%#=. :------------ :-----------::::. +// :*%%%%%%%%%%%= .--------------. .--------=-. +// .+%%#%%%%%%# :+#::::--------:*%*=-----==--: +// --#%%%%%%#%@=:::::::::::::=@%#*==+*+-:. .=+=: +// .:-=+++++=- .-*%%%%%%#::....:::::::.-@@%%%%%%%%%%#*+-.=%%%%%%+. +// .-*%#*+=--==*%%++*#%%%%%%%%@@-:...........:+@@@%%%%%%###**##%%%*--=*#%=. +// .#%#==:. :=*#%%##****###%%%%@@*::::.....::::*@@@%%%%%###########%%*=.:=##: +// -%%+-.:=#%%%#####******##%%@@@@-:::::.::::::#@@@%%%%###########%%%%%%=.=%%. +// :. .#%#*+#%%%###############%%@@@@*::::::::::::@@@@%%%%%%%%%%%%%%####%%%%*.##. +// :+*#%%+*%%%%%%%%%%%%%%%%%%%%%%@@@@%::::..:::::=@@@@@%%%%%%%%%%*++***+=-=+#-*+:. +// -#=#%%%#*+======+++==#%%%%%@%@@@=:....:::::+@@@%@%%%%%%%%#+#%%%%%%%%#+=+%#: +// ---+++++*##%%%%%%+:=#%%%%%%%%@@@*:....:...:-@@@@%%%%%%%%%#+%%%%%%%%%%%%%%% +// .#%%%%%%%%%%%%%+:+%%%%%%%%%%%@@@#:........::+@@@%%%%%%%%%%#*%%%%%%%%%%%%%# +// -%%%%%%%%%%%#:=#%%%%%%%%%%%%@@@=:.........::#@@%%%%%%%%%%%%+#%%%%%%%%%%%= +// *%%%%%%%%%*:*%%%%%%%%%%%%%%@@%:...........:=@@@%%%%%%%%%%%%#+#%%%%%%%%#. +// .%%%%%@%%+:#%###%%%%%%%%%%%@@#:...........::#@@%%%%%%#######%*+#@%%%@@= +// .#%%@@%%*-#%##########%%%%%@@%:.............+@@%%#############%+=%@%%@% +// .+%@%%%-#%##############%%@@@:.............-@@%###############%#-+@%#: +// :#%%*=%%###############%@@@+....::.:.....:@@%################%%+=+. +// -#=*%%%##%%%%%%%##%%%%@@@%....::::.....:@@%%###%%%%%%%%##%%%%%#-. +// -+%%%%%%%%%%%%%%%%%%%@@@*...::::.....:@@%%%%%%%%%%%%%%%%%%%%%%= +// ::#%%%%%%%%%%%%%%%%%%%@@@+..:::::....=@@%%%%%%%%%%%%%%%%%%%%%#+. +// .::+%%%%%%%%%%%%%%%%%%@@@@+:::--:....#@@%%%%%%%%%%%%%%%#*+-:.... +// .:-=*%%%%%%%%%%%%%%%%%@@@@+::--::..+@@@%%%%%%%%%%%%#+:. +// ::+#%%%%%%%%%%%%%%%@@@@+----::=@@@%%%%%%%%%%%*: +// .:+*%%%%%%%%%%%%%@@@@+----+@@@%%%%%%%%%%+. +// .-+#%%%%%%%%%%%@@@@===*@@@%%%%%%%%%#: +// .-=*%%%%%%%%%@@@@#=#@@@@%%%%%%%%*. +// .-+*%%%%%%%%@@@@#@@@@%%%%%%%@+. +// .=+#%%@%%%@@@@@@@@%%%%@@@%- +// :+#%@@@@@@@@@@@@@@@@@@#: +// .=#@@@@@@@@@@@@@@@@%= +// :+%@@@@@@@@@@@@%+. +// .:-=++**###+. +// +// By Tyrannuss diff --git a/app/BitacoraSanciones/Page.module.css b/app/BitacoraSanciones/Page.module.css new file mode 100644 index 0000000..8f3544d --- /dev/null +++ b/app/BitacoraSanciones/Page.module.css @@ -0,0 +1,71 @@ +.tableContainer { + margin-top: 10px; + overflow-y: auto; + overflow-x: auto; + border-radius: 4px; + border: 1px solid #cfcfcf; + max-height: 430px; + scrollbar-color: rgb(1, 92, 184) rgba(0, 0, 0, 0); + background-color: #f9f9f9; + width: 100%; +} + +.machineTable { + width: 100%; + border-collapse: collapse; + table-layout: auto; +} + +.machineTable th, +.machineTable td { + padding: 10px; + text-align: center; + border-bottom: 1px solid #cfcfcf; + word-wrap: break-word; + overflow-wrap: break-word; +} + +.machineTable th { + position: sticky; + top: 0px; + background-color: rgb(1, 92, 184); + color: white; +} + +.machineTable tr { + min-width: 400px; +} + +.disponible { + display: flex; + width: 100%; + height: 100%; + background-color: green; + color: green; + font-weight: bold; +} + +.ocupado { + color: red; + font-weight: bold; +} + + +.actions { + text-align: center; +} + +.resetButton { + padding: 8px 16px; + background-color: #ff4d4d; + color: white; + border: none; + border-radius: 6px; + cursor: pointer; + font-weight: bold; + transition: 0.3s; +} + +.resetButton:hover { + background-color: #cc0000; +} \ No newline at end of file diff --git a/app/BitacoraSanciones/page.tsx b/app/BitacoraSanciones/page.tsx index 8007ae7..f0f7096 100644 --- a/app/BitacoraSanciones/page.tsx +++ b/app/BitacoraSanciones/page.tsx @@ -1,13 +1,161 @@ +"use client"; + +import { useState } from "react"; +import SearchDate from "../Components/SearchDate/SearchDate"; import SearchUser from "../Components/SearchUser/searchUser"; +import Toggle from "../Components/Toggle/Toggle"; +import styles from "./Page.module.css"; // importamos el css export default function Page() { + const [machines] = useState([ + { + hora_entrada: "10 ", + min_utilizados: "20", + hora_salida: "10:15", + cuenta_asociada: "15", + }, + ]); + const [tables] = useState([ + { + no_mesa: "10 ", + no_cuenta: "425530275", + hora_entrada: "10:15", + tiempo_asignado: "15", + hora_salida: "10:30", + }, + ]); + + const [alumnos] = useState([ + { + tiempo_entrada: "10:10 ", + tiempo_asignado: "15", + Ubicacion_equipo: "2", + }, + ]); + const [ubicacion_equipo, setUbicacionEquipo] = useState(""); return ( -
-

BITACORA Y SANCIONES

+
+

BITACORA Y SANCIONES

- + + + +
+ + +
+ + +
+
+
+ + + + + + + + + + + {machines.map((machine, index) => ( + + + + + + + ))} + +
Hora EntradaMinutos utilizadosHora salidaCuenta asociada
{machine.hora_entrada}{machine.min_utilizados}{machine.hora_salida}{machine.cuenta_asociada}
+
+ + ), + }, + { + key: "2", + label: "Bitacora de alumno", + content: ( +
+ + + + + + + + + + + {alumnos.map((alumno, index) => ( + + + + + + ))} + +
Tiempo EntradaTiempo AsignadoUbicacion del equipo
{alumno.tiempo_entrada}{alumno.tiempo_asignado}{alumno.Ubicacion_equipo}
+
+ ), + }, + { + key: "3", + label: "Bitacora mesas", + content: ( +
+ + + + + + + + + + + + + {tables.map((table, index) => ( + + + + + + + + ))} + +
MesaCuentaHora EntradaTiempo AsignadoHora Salida
{table.no_mesa}{table.no_cuenta}{table.hora_entrada}{table.tiempo_asignado}{table.hora_salida}
+
+ ), + }, + { + key: "4", + label: "Sanciones", + content: , + }, + ]} + />
- ); } -//IO \ No newline at end of file +//IO + +// by Tyrannuss diff --git a/app/Components/SearchDate/SearchDate.tsx b/app/Components/SearchDate/SearchDate.tsx new file mode 100644 index 0000000..699670b --- /dev/null +++ b/app/Components/SearchDate/SearchDate.tsx @@ -0,0 +1,29 @@ +"use client"; +import { useState } from "react"; + +function SearchDate() { + const [date, setDate] = useState(""); + + return ( + <> +
+ +
+ setDate(e.target.value)} + placeholder="Selecciona una fecha..." + /> + +
+
+ + ); +} + +export default SearchDate; + +//By Tyrannuss