pantallas

This commit is contained in:
citlallixx03 2024-05-06 07:38:56 -06:00
parent 48e69d3c49
commit ed9caaad30
14 changed files with 441 additions and 56 deletions

BIN
frontend/imagen.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -7,12 +7,8 @@
<title>SIU_Dran_net</title>
</head>
<body>
<div id="root">
</div>
<div id="root"></div>
<DIV></DIV>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>

BIN
frontend/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -8,8 +8,10 @@
"name": "frontend",
"version": "0.0.0",
"dependencies": {
"axios": "^1.6.8",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3"
},
"devDependencies": {
"@types/react": "^18.2.66",
@ -1435,6 +1437,19 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"node_modules/attr-accept": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/attr-accept/-/attr-accept-2.2.2.tgz",
"integrity": "sha512-7prDjvt9HmqiZ0cl5CRjtS84sEyhsHP2coDkaZKRKVfCDo9s7iw7ChVmar78Gu9pC4SoR/28wFu/G5JJhTnqEg==",
"engines": {
"node": ">=4"
}
},
"node_modules/available-typed-arrays": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",
@ -1450,6 +1465,16 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/axios": {
"version": "1.6.8",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz",
"integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==",
"dependencies": {
"follow-redirects": "^1.15.6",
"form-data": "^4.0.0",
"proxy-from-env": "^1.1.0"
}
},
"node_modules/balanced-match": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
@ -1575,6 +1600,17 @@
"integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
"dev": true
},
"node_modules/combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"dependencies": {
"delayed-stream": "~1.0.0"
},
"engines": {
"node": ">= 0.8"
}
},
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@ -1715,6 +1751,14 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
"engines": {
"node": ">=0.4.0"
}
},
"node_modules/doctrine": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
@ -2290,6 +2334,17 @@
"node": "^10.12.0 || >=12.0.0"
}
},
"node_modules/file-selector": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/file-selector/-/file-selector-0.6.0.tgz",
"integrity": "sha512-QlZ5yJC0VxHxQQsQhXvBaC7VRJ2uaxTf+Tfpu4Z/OcVQJVpZO+DGU0rkoVW5ce2SccxugvpBJoMvUs59iILYdw==",
"dependencies": {
"tslib": "^2.4.0"
},
"engines": {
"node": ">= 12"
}
},
"node_modules/find-up": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
@ -2326,6 +2381,25 @@
"integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==",
"dev": true
},
"node_modules/follow-redirects": {
"version": "1.15.6",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
"integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
"engines": {
"node": ">=4.0"
},
"peerDependenciesMeta": {
"debug": {
"optional": true
}
}
},
"node_modules/for-each": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
@ -2335,6 +2409,19 @@
"is-callable": "^1.1.3"
}
},
"node_modules/form-data": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
"mime-types": "^2.1.12"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/fs.realpath": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
@ -3154,6 +3241,25 @@
"yallist": "^3.0.2"
}
},
"node_modules/mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mime-types": {
"version": "2.1.35",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"dependencies": {
"mime-db": "1.52.0"
},
"engines": {
"node": ">= 0.6"
}
},
"node_modules/minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
@ -3206,7 +3312,6 @@
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
"dev": true,
"engines": {
"node": ">=0.10.0"
}
@ -3470,13 +3575,17 @@
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
"integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
"dev": true,
"dependencies": {
"loose-envify": "^1.4.0",
"object-assign": "^4.1.1",
"react-is": "^16.13.1"
}
},
"node_modules/proxy-from-env": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
},
"node_modules/punycode": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
@ -3529,11 +3638,26 @@
"react": "^18.2.0"
}
},
"node_modules/react-dropzone": {
"version": "14.2.3",
"resolved": "https://registry.npmjs.org/react-dropzone/-/react-dropzone-14.2.3.tgz",
"integrity": "sha512-O3om8I+PkFKbxCukfIR3QAGftYXDZfOE2N1mr/7qebQJHs7U+/RSL/9xomJNpRg9kM5h9soQSdf0Gc7OHF5Fug==",
"dependencies": {
"attr-accept": "^2.2.2",
"file-selector": "^0.6.0",
"prop-types": "^15.8.1"
},
"engines": {
"node": ">= 10.13"
},
"peerDependencies": {
"react": ">= 16.8 || 18.0.0"
}
},
"node_modules/react-is": {
"version": "16.13.1",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
"dev": true
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
},
"node_modules/react-refresh": {
"version": "0.14.0",
@ -3962,6 +4086,11 @@
"node": ">=4"
}
},
"node_modules/tslib": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
},
"node_modules/type-check": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",

View File

@ -10,8 +10,10 @@
"preview": "vite preview"
},
"dependencies": {
"axios": "^1.6.8",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3"
},
"devDependencies": {
"@types/react": "^18.2.66",

View File

@ -2,10 +2,9 @@ import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
import './login.css'
function App() {
//const [count, setCount] = useState(0)
const [usuario, setUsuario]= useState("")
const [password, setPassword]= useState("")

View File

@ -0,0 +1,69 @@
h1.tituloOE{
color: rgba(36, 15, 103, 0.922);
text-transform: capitalize;
padding-inline:initial;
margin-top:15%;
}
header.headerOE{
display: inline;
width: 100%;
height: 18%;
}
div.grupo1{
background-color: #D5EEBB;
padding: 0%;
}
#logo{
width: 70px;
height:min-content;
}
div.grupo2{
background-color: #D5EEBB;
margin-top: 10px;
margin-left: 10px;
text-align: left;
}
li.tit{
background-color: #D5EEBB;
color:rgba(36, 15, 103, 0.922);
font-size: 120%;
}
nav ul {
list-style-type: none;
background-color:#D5EEBB;
}
nav ul li {
display: inline;
margin-right: 80px;
}
li a{
background-color: #D5EEBB;
color:rgb(172, 104, 9);
}
.container{
display: grid;
grid-template-columns: auto auto auto auto;
gap: 10%;
justify-content: center; /* Centra horizontalmente el contenedor */
align-items: center; /* Ajusta el ancho del contenedor según sea necesario */
}
div.area{
color:rgb(27, 97, 154);
border: 1px solid rgb(27, 97, 154);
font-size: x-large;
}
div.listaLic{
color: rgb(172, 104, 9);
}
.footerOE{
font-size:large;
padding: 20px 0; /* Espaciado interno del footer */
position:fixed; /* Hace que el footer sea fijo en la parte inferior */
width: 100%;
font-weight: bold;
}

View File

@ -0,0 +1,74 @@
import './OfertaEducativa.css'
function OfertaEducativa (){
return (
<>
<body>
<header className='headerOE'>
<nav>
<ul>
<div className='grupo1'>
<img id='logo' src="logo.png" alt='Imagen'/>
<li className='tit'>Universidad Filadelfia de México</li>
</div>
<div className='grupo2'>
<li><a href="">Nosotros</a></li>
<li><a href="">Visión</a></li>
<li><a href="">Misión</a></li>
<li><a href="">Instalaciones</a></li>
</div>
</ul>
</nav>
</header>
<h1 className='tituloOE'>Oferta Educativa</h1>
<div className='container'>
<div className='area'>
Área Técnica
<div className='listaLic'>
<ul>
<li>Licenciatura en Matemáticas</li>
<li>Licenciatura en Física</li>
<li>Licenciatura en Arquitectura</li>
</ul>
</div>
</div>
<div className='area'>
Área Económico-Administrativo
<div className='listaLic'>
<ul>
<li>Licenciatura en Contabilidad</li>
<li>Licenciatura en Economía</li>
<li>Licenciatura en Administración</li>
</ul>
</div>
</div>
<div className='area'>
Área de Humanidades
<div className='listaLic'>
<ul>
<li>Licenciatura en historia</li>
<li>Licenciatura en Antropología</li>
<li>Licenciatura en Pedagogía</li>
</ul>
</div>
</div>
<div className='area'>
Área de Biológicas y Agropecuarias
<div className='listaLic'>
<ul>
<li>Licenciatura en Biología</li>
<li>Ingeniería Química</li>
<li>Ingeniero Agrónomo</li>
</ul>
</div>
</div>
</div>
<footer className='footerOE'>
© 2024 Universidad Filadelfia. Todos los derechos reservados
</footer>
</body>
</>
);
}
export default OfertaEducativa

View File

@ -0,0 +1,13 @@
import SubirPDF from "./SubirPDF";
import React from 'react';
const App = () => {
return (
<div>
<h1>Subir archivo PDF</h1>
<SubirPDF />
</div>
);
};
export default App;

36
frontend/src/SubirPDF.jsx Normal file
View File

@ -0,0 +1,36 @@
import React, { useCallback } from 'react';
import { useDropzone } from 'react-dropzone';
import axios from 'axios';
const SubirPDF = () => {
const onDrop = useCallback(acceptedFiles => {
const file = acceptedFiles[0];
const formData = new FormData();
formData.append('pdfFile', file);
axios.post('http://localhost:${port}', formData, {
headers: {
'Content-Type': 'multipart/form-data'
}
})
.then(response => {
// Manejar la respuesta del servidor
console.log(response.data);
})
.catch(error => {
// Manejar errores
console.error('Error al subir el archivo:', error);
});
}, []);
const { getRootProps, getInputProps } = useDropzone({ onDrop });
return (
<div {...getRootProps()} style={{ border: '1px solid black', padding: '20px', textAlign: 'center' }}>
<input {...getInputProps()} />
<p>Arrastra y suelta un archivo PDF aquí, o haz clic para seleccionar uno</p>
</div>
);
};
export default SubirPDF;

View File

@ -1,10 +1,19 @@
* {
background-color: #444941;
padding: 0;
margin: 10;
background-color:#d8d8d8;
box-sizing: border-box;
font-family:Arial, Helvetica, sans-serif;
flex-direction: column;
}
.gridContainer {
display: grid;
grid-template-columns: 1fr 1fr; /* Dos columnas de ancho igual */
gap: 50px; /* Espacio entre las columnas */
}
.imgColum {
margin-top: auto;
}
.Formulario {
font-size: 20px;
@ -18,35 +27,87 @@ input[type="text"], input[type="password"]{
/* align-items: center; */
border-radius: 5px;
display: block;
height: 30px;
height: 40px;
padding-left: 10px;
padding-right: 10px;
margin-left: auto;
margin-right: auto;
font-size: large;
}
header {
color: rgba(36, 15, 103, 0.922);
background-color: #D5EEBB;
padding: 20px 0; /* Espaciado interno del encabezado */
position: fixed; /* Hace que el encabezado sea fijo */
width: 100%; /* Ancho completo del encabezado */
top: 0; /* Lo posiciona en la parte superior */
z-index: 1000; /* Asegura que esté por encima del contenido */
font-weight:bold;
font-size: x-large;
}
font{
background-color: transparent;
}
/*#Formulario{
min-height: 89vh;
}*/
form{
margin-left: auto;
}
h1{
color: #D5EEBB;
color: rgb(172, 104, 9);
font-family: Jockey One;
text-transform: capitalize;
margin-top: 30%;
padding-left: 30%;
}
#button{
background-color: #D5EEBB;
margin-top: 20px;
color:rgba(36, 15, 103, 0.922);
margin-top: 30px;
stroke: none;
font-family: Georgia, 'Times New Roman', Times, serif;
font-weight: bold;
padding-top: 100px;
padding: 5px;
text-align: center;
padding: 5px 5px 5px 5px;
height: fit-content;
font-size: x-large;
}
label{
color: #D5EEBBAA;
color: rgb(172, 104, 9);
font-family: JejuMyeongjo;
font-size: 20px;
font-size: 40px;
font-weight: 400;
text-align: left;
}
.footer{
color: aliceblue;
footer{
color: #000000;
background-color: #D5EEBB;
padding: 20px 0; /* Espaciado interno del footer */
position: absolute; /* Hace que el footer sea fijo en la parte inferior */
width: 100%; /* Ancho completo del footer */
bottom: 0; /* Lo posiciona en la parte inferior */
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
}
#footerId{
margin-left: 15px;
margin-right: 15px;
text-align: center;
font-size: large;
background-color: transparent;
font-weight: bold;
}
div a{
background-color: #D5EEBB;
color:rgb(172, 104, 9);
font-weight: bold;
}

View File

@ -1,34 +1,35 @@
import { useState } from 'react'
import './login.css'
function Login() {
return (
<>
<header>La universidad que esta para ti, ¡UNETE!</header>
<div>
<body>
<header className='encabezado'>La universidad que esta para ti, ¡UNETE!</header>
<div className='gridContainer'>
<div className='imgColum'>
<img src="imagen.jpg" alt='Imagen'/>
</div>
<div className='loginColum'>
<h1>Bienvenido</h1>
<form className='Formulario'>
<label id='usuario'>Usuario:</label>
<input type='text' id='usuario'/>
<label>Contraseña:</label>
<input type="password" id='password'/>
<button id='button'>Iniciar sesion</button>
<button id='button' >Iniciar sesion</button>
</form>
</div>
</div>
<footer>
<nav>
<ul className='footer'>
<li>uniregistro@outlook.com</li>
<li>uniBandeVer 4582349234</li>
</ul>
</nav>
<div id="footerId"><a href=''>uniregistro@outlook.com</a></div>
<div id="footerId"><a href=''>uniBandeVer</a></div>
<div id="footerId"><a href=''>4582349234</a></div>
</footer>
</body>
</>
);
}
export default Login

View File

@ -3,10 +3,15 @@ import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import './index.css'
import Login from './login.jsx'
import OfertaEducativa from './OfertaEducativa.jsx'
import Preinscripcion from './Preinscripcion.jsx'
import SubirPDF from './SubirPDF.jsx'
ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<Login />
<OfertaEducativa/>
</React.StrictMode>,
)