diff --git a/src/main/java/com/roshka/proyectofinal/DataBase.java b/src/main/java/com/roshka/proyectofinal/DataBase.java index 12d2450..f2c742e 100644 --- a/src/main/java/com/roshka/proyectofinal/DataBase.java +++ b/src/main/java/com/roshka/proyectofinal/DataBase.java @@ -11,7 +11,7 @@ public class DataBase { Class.forName("org.postgresql.Driver"); con= DriverManager .getConnection("jdbc:postgresql://localhost:5432/bootcamp_th", - "postgres", "postgres"); + "postgres", "2022roshka"); if(con != null){ System.out.println("---> CONNECTED TO SERVER"); diff --git a/src/main/java/com/roshka/proyectofinal/profesor/SaveServlet.java b/src/main/java/com/roshka/proyectofinal/profesor/SaveServlet.java index 8a9aeca..da4906e 100644 --- a/src/main/java/com/roshka/proyectofinal/profesor/SaveServlet.java +++ b/src/main/java/com/roshka/proyectofinal/profesor/SaveServlet.java @@ -15,20 +15,20 @@ public class SaveServlet extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); - PrintWriter out=response.getWriter(); + PrintWriter out = response.getWriter(); - String nombre=request.getParameter("nombre"); - String apellido=request.getParameter("apellido"); - String email=request.getParameter("correo"); - String nro_cedulaStr=request.getParameter("nro_cedula"); + String nombre = request.getParameter("nombre"); + String apellido = request.getParameter("apellido"); + String email = request.getParameter("correo"); + String nro_cedulaStr = request.getParameter("nro_cedula"); int nro_cedula = Integer.parseInt(nro_cedulaStr); - Profesor p =new Profesor(nro_cedula, nombre, apellido, email); + Profesor p = new Profesor(nro_cedula, nombre, apellido, email); - int status=ProfesorDao.save(p); - if(status>0){ + int status = ProfesorDao.save(p); + if (status > 0) { out.print("

Record saved successfully!

"); request.getRequestDispatcher("formulario_profesor.jsp").include(request, response); - }else{ + } else { out.println("Sorry! unable to save record"); } diff --git a/src/main/webapp/formulario_bootcamp.jsp b/src/main/webapp/formulario_bootcamp.jsp index cac817a..e91d788 100644 --- a/src/main/webapp/formulario_bootcamp.jsp +++ b/src/main/webapp/formulario_bootcamp.jsp @@ -17,9 +17,10 @@ + - JSP Page + Crear BOOTCAMP diff --git a/src/main/webapp/home.css b/src/main/webapp/home.css index 2deed6c..460a0cc 100644 --- a/src/main/webapp/home.css +++ b/src/main/webapp/home.css @@ -1,125 +1,95 @@ - img.logoi { - width: 200px; - } - - img { - width: 400px; - padding: 10px; - display: block; - padding: 10px; - } +* { + padding: 0; + margin: 0; + box-sizing: border-box; +} + +body{ + width:100vw; + height: 100vh; + background: linear-gradient(100deg, rgba(20, 99, 155, 0.25), rgba(30, 148, 227, 0.25)); + background-image: url(imagenes/descarga.svg); + font-family: Georgia, 'Times New Roman', Times, serif; + font-weight: "bold"; + color: white; +} +.contenedor{ + width: 100%; + height: 20%; + display: flex; + justify-content: space-between; + align-items: center; +} +.main{ + width: 100%; + height: 80%; + display: flex; + align-items: center; + /* background-color: aqua; */ +} +.letra{ + width: 60%; + height: 40%; + margin-left: 10px; + font-weight: bold; + color: aliceblue; +} +.letra h3{ - .header { - margin-bottom: 0; - width: 700px; - } +} +.imagen{ + width: 40%; + /* background-color: crimson; */ + +} + + +.contenido a img{ + width: 100%; + display: flex; + justify-content: flex-end; - a { - float: right 100px; - color: #fff; - font-size: larger; - text-decoration: none; - padding: 10px; - } +} +.link{ + width: 90%; + height: 80%; + text-decoration: none; + display: flex; - body { - background: linear-gradient(100deg, rgba(20, 99, 155, 0.25), rgba(30, 148, 227, 0.25)); - background-image: url(imagenes/descarga.svg); - background-size: contain; - background-attachment: fixed; - background-blend-mode: multiply; - font-family: Georgia, 'Times New Roman', Times, serif; - color: white; - position: relative; - width: 100px; - height: 100px; - } - /* ul{ - list-style: none; + justify-content: flex-end; + align-items: center; +} +ul { + width: 70%; + height: 70%; } -.menu >ul{ - float: right; + +div.link ul li a { + /* float: right 100px; + color: #fff; + font-size: larger; */ + text-decoration: none; + color: aliceblue; + /* padding: 10px; */ } -.menu li a { +.link ul { + display: flex; + justify-content: space-around; + align-items: center; + list-style: none; +} - color:#fff; - text-decoration:none; - padding:10px 12px; - display:block; +.imagen img{ + width: 100%; + height:100%; + } -.menu li ul li { - marging-left - position:relative; -} */ - - .menu { - width: 400%; - float: left; - } - - .menu ul li { - float: right; - list-style-type: none; - text-align: right; - } - - div.menu { - float: right; - } - - .menu ul li a { - padding-left: 5px; - text-decoration: none; - font-size: clamp(145px); - text-transform: uppercase; - display: block; - position: relative; - overflow: hidden; - padding-bottom: 50px; - white-space: nowrap; - } - - .grafico, - svg { - max-width: 50px; - display: block; - height: auto; - } - - .seccion.hero { - margin-top: 10px; - padding-bottom: 10px; - width: 900px; - } - - .hero { - perspective: 100px; - } - - .hero { - display: grid; - grid-template-columns: auto repeat(5, 0.5fr) auto; - } - - .hero { - display: flex; - flex-direction: column; - align-items: center; - padding-left: 200px; - /* padding-right: 200px; - */ - } - /* */ - - .postulacion { - border-radius: 30px; - } - - .cta-main { - width: 200px; - font-family: monospace; - background-color: yellow; - border: none; - } + +.cta-main { + width: 200px; + font-family: monospace; + background-color: yellow; + border: none; +} \ No newline at end of file diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 256cef0..6e2e3ef 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -1,83 +1,57 @@ - - + - - - - - - - + + + - - Roshka WebSite - - -
- - - - - -
-
- - - - - - -






-
-
-
-

Es tu turno Postulate para el bootcamp

-

Aprende

-
-
-
-

Es un campo de entrenamiento intensivo y gratuito para principiantes que ya programan y quieren ser parte de la empresa

-
-
- - -
-
- -
- -
- - - -
- - -
- -
- - - - + + + +
+
+

Es tu turno, Postulate para el bootcamp

+

+ Es un campo de entrenamiento intensivo y gratuito para principiantes + que ya programan y quieren ser parte de la empresa. +

+ + + +
+ +
+ +
+
+ diff --git a/src/main/webapp/menu.jsp b/src/main/webapp/menu.jsp index db40705..8e96dd0 100644 --- a/src/main/webapp/menu.jsp +++ b/src/main/webapp/menu.jsp @@ -13,71 +13,8 @@ - - + + @@ -88,15 +25,19 @@ + + +
-

MENU TH

+

Bienvenido! al MENU TH

EN LOS SIGUIENTES LINKS PUEDE MODIFICAR, AGREGAR O ELIMINAR DATOS DE LA BASE DE DATOS DEL BOOTCAMP

+

PUEDE ACCEDER A LOS SIGUIENTES LINKS:

-
+

Lista Postulantes

-
-
- - -
+
+
+ + +
+ +
+ + +
-
- - -
+
+
diff --git a/src/main/webapp/postulante.css b/src/main/webapp/postulante.css index 5ae626b..aef08c4 100644 --- a/src/main/webapp/postulante.css +++ b/src/main/webapp/postulante.css @@ -11,7 +11,7 @@ img{ padding: 5px; } .container{ - width: 300%; + width: 100%; max-width: 785px; min-width: 320px; border-radius: 15px; @@ -22,7 +22,7 @@ table{ /* background-color: wheat; */ text-align: left; border-collapse: collapse; - width: 150%; + width: 100%; /* border: solid 3px black; */ } a{ @@ -31,7 +31,7 @@ a{ } h1{ font-family:Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif; - text-align: right; + text-align: center; color:wheat; font-weight:bold; @@ -80,3 +80,7 @@ th { border: 1px solid black; height: 30px; } button:hover{ color: yellow;} +div.boot{ + width: 100%; + text-align: center; +} \ No newline at end of file