Commit cbb8ab95 by Jose Baez

Merge branch 'mejorasCss5' into 'develop'

Mejoras css5

See merge request !44
parents dfc70628 a906d1a5
...@@ -11,7 +11,7 @@ public class DataBase { ...@@ -11,7 +11,7 @@ public class DataBase {
Class.forName("org.postgresql.Driver"); Class.forName("org.postgresql.Driver");
con= DriverManager con= DriverManager
.getConnection("jdbc:postgresql://localhost:5432/bootcamp_th", .getConnection("jdbc:postgresql://localhost:5432/bootcamp_th",
"postgres", "postgres"); "postgres", "2022roshka");
if(con != null){ if(con != null){
System.out.println("---> CONNECTED TO SERVER"); System.out.println("---> CONNECTED TO SERVER");
......
...@@ -15,20 +15,20 @@ public class SaveServlet extends HttpServlet { ...@@ -15,20 +15,20 @@ public class SaveServlet extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException { throws ServletException, IOException {
response.setContentType("text/html"); response.setContentType("text/html");
PrintWriter out=response.getWriter(); PrintWriter out = response.getWriter();
String nombre=request.getParameter("nombre"); String nombre = request.getParameter("nombre");
String apellido=request.getParameter("apellido"); String apellido = request.getParameter("apellido");
String email=request.getParameter("correo"); String email = request.getParameter("correo");
String nro_cedulaStr=request.getParameter("nro_cedula"); String nro_cedulaStr = request.getParameter("nro_cedula");
int nro_cedula = Integer.parseInt(nro_cedulaStr); 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); int status = ProfesorDao.save(p);
if(status>0){ if (status > 0) {
out.print("<p>Record saved successfully!</p>"); out.print("<p>Record saved successfully!</p>");
request.getRequestDispatcher("formulario_profesor.jsp").include(request, response); request.getRequestDispatcher("formulario_profesor.jsp").include(request, response);
}else{ } else {
out.println("Sorry! unable to save record"); out.println("Sorry! unable to save record");
} }
......
...@@ -17,9 +17,10 @@ ...@@ -17,9 +17,10 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" /> <link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
<!-- coneccion con el de css --> <!-- coneccion con el de css -->
<link rel="stylesheet" href="postulante.css"> <link rel="stylesheet" href="postulante.css">
<title>JSP Page</title> <title>Crear BOOTCAMP</title>
</head> </head>
<body> <body>
......
img.logoi { * {
width: 200px; padding: 0;
} margin: 0;
box-sizing: border-box;
img { }
width: 400px;
padding: 10px; body{
display: block; width:100vw;
padding: 10px; 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; .imagen{
width: 700px; width: 40%;
} /* background-color: crimson; */
}
.contenido a img{
width: 100%;
display: flex;
justify-content: flex-end;
a { }
float: right 100px; .link{
color: #fff; width: 90%;
font-size: larger; height: 80%;
text-decoration: none; text-decoration: none;
padding: 10px; display: flex;
}
body { justify-content: flex-end;
background: linear-gradient(100deg, rgba(20, 99, 155, 0.25), rgba(30, 148, 227, 0.25)); align-items: center;
background-image: url(imagenes/descarga.svg); }
background-size: contain; ul {
background-attachment: fixed; width: 70%;
background-blend-mode: multiply; height: 70%;
font-family: Georgia, 'Times New Roman', Times, serif;
color: white;
position: relative;
width: 100px;
height: 100px;
}
/* ul{
list-style: none;
} }
.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; .imagen img{
text-decoration:none; width: 100%;
padding:10px 12px; height:100%;
display:block;
} }
.menu li ul li {
marging-left .cta-main {
position:relative; width: 200px;
} */ font-family: monospace;
background-color: yellow;
.menu { border: none;
width: 400%; }
float: left; \ No newline at end of file
}
.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;
}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" /> <link rel="stylesheet" href="home.css" />
<!-- para concectar con css --> <!-- CSS only -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css"
<link rel="stylesheet" href="home.css"> rel="stylesheet"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor"
<!-- el icono para la pagina --> crossorigin="anonymous"
/>
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" /> <link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
<title>Web Site Roshka</title>
<title>Roshka WebSite</title> </head>
</head> <body>
<header class="contenedor">
<div class="header"> <div class="contenido">
<div class="logo"> <img src="imagenes/logo-roshka.svg " alt="imagen" />
<a href="./index.html"> <img class="logoi" src="imagenes/logo-roshka.svg" alt="" /> </a> </div>
<!-- logo con link --> <div class="link">
</div>
<div class="menu">
<ul> <ul>
<li class="link-menu"><a href="">Home</a></li> <li class="link-menu"><a href="">Home</a></li>
<li class="link-menu"><a href="bootcamp.jsp">Postulate</a></li> <li class="link-menu"><a href="bootcamp.jsp">Postulate</a></li>
</li> <li class="link-menu"><a href="">About us</a></li>
<li class="link-menu"><a href="">Work with us</a></li>
<li class="link-menu"><a href="">Get in touch</a></li>
</ul> </ul>
</div>
</div> </header>
<!-- menu -->
</div> <main class="main">
<!-- header --> <div class="letra">
<h1>Es tu turno, <strong>Postulate</strong> para el bootcamp</h1>
<h3 data-block-key="cwggy">
<div class="main"> Es un campo de entrenamiento intensivo y gratuito para principiantes
<div class="seccion hero"> que ya programan y quieren ser parte de la empresa.
</h3>
<a href="bootcamp.jsp">
<button type="submit" class="btn btn-warning cta-main">
POSTULACION
<!-- <div class="contenido"> --> </button>
</a>
<br> <br> <br> <br> <br> <br><br> </div>
<div class="texto">
<div class="titulo"> <div class="imagen">
<div class="titulo"> <img
<h2>Es tu turno <strong>Postulate</strong> para el bootcamp</h2> style="align-items: right"
<h1>Aprende</h1> src="imagenes/ilustracion-herov3.svg"
</div> alt=""
</div> />
<div class="parrafo"> </div>
<p data-block-key="cwggy">Es un campo de entrenamiento intensivo y gratuito para principiantes que ya programan y quieren ser parte de la empresa</p> </main>
</div> </body>
<div class="postulacion">
<a href="bootcamp.jsp"><button type="submit" class="cta-main">POSTULACION</button></a>
<!-- <a href="/postulacion" class="cta-main">POSTULACION</a> -->
</div>
</div>
<div class="grafico">
<img style="align-items:right ;" src="imagenes/ilustracion-herov3.svg" alt="">
</div>
<!-- </div> -->
</div>
<!-- pie de pagina -->
<div class="footer">
<div class="logofooter"><img src="imagenes/logo_footer.svg" alt="" class="logofooter"></div>
</div>
</div>
</div>
</div>
</body>
</html> </html>
...@@ -13,71 +13,8 @@ ...@@ -13,71 +13,8 @@
<head> <head>
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" /> <link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
</head> <link rel="stylesheet" href="menulogin.css">
<style> <link href="https://fonts.googleapis.com/css2?family=Concert+One&family=Francois+One&family=Satisfy&family=Staatliches&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Concert+One&family=Francois+One&family=Satisfy&family=Staatliches&display=swap" rel="stylesheet">* {
box-sizing: border-box;
}
body {
font-family: 'Concert One', cursive;
font-family: 'Francois One', sans-serif;
font-family: 'Satisfy', cursive;
font-family: 'Staatliches', cursive;
font-size: 13px
}
.header,
.footer {
background-color: rgb(18, 18, 98);
color: white;
padding: 60px;
}
.column {
float: left;
padding: 30px;
}
.clearfix::after {
content: "";
clear: both;
display: table;
}
a {
color: white;
}
.botones a {
color: black;
}
.menu {
width: 50%;
}
.content {
width: 50%;
}
.menu ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.menu li {
padding: 8px;
margin-bottom: 8px;
background-color: rgb(18, 18, 98);
color: #ffffff;
}
.menu li:hover {
background-color: rgb(18, 18, 98);
}
</style>
</head> </head>
<body> <body>
...@@ -88,15 +25,19 @@ ...@@ -88,15 +25,19 @@
<body>
<div class="logo"><img src="imagenes/logo-roshka.svg" alt="logo-roshka"></div>
<div class="header"> <div class="header">
<h1> MENU TH</h1> <h1>Bienvenido! al MENU TH</h1>
<h2> EN LOS SIGUIENTES LINKS PUEDE MODIFICAR, AGREGAR O ELIMINAR DATOS DE LA BASE DE DATOS DEL BOOTCAMP </h2> <h2> EN LOS SIGUIENTES LINKS PUEDE MODIFICAR, AGREGAR O ELIMINAR DATOS DE LA BASE DE DATOS DEL BOOTCAMP </h2>
<h3>PUEDE ACCEDER A LOS SIGUIENTES LINKS:</h3>
</div> </div>
<div class="column content"> <!-- <div class="column content">
<h1>PUEDE ACCEDER A LOS SIGUIENTES LINKS:</h1> <h1>PUEDE ACCEDER A LOS SIGUIENTES LINKS:</h1>
</div> </div> -->
<div class="clearfix"> <div class="clearfix">
<div class="column menu"> <div class="column menu">
......
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
img {
width: 200px;
padding: 10px;
display: block;
padding: 10px;
}
body {
font-family: 'Concert One', cursive;
font-family: 'Francois One', sans-serif;
font-family: 'Satisfy', cursive;
font-family: 'Staatliches', cursive;
font-size: 13px;
background-image: url(imagenes/descarga.svg);
}
.header,
.footer {
background-color: whitesmoke;
color: rgb(18, 18, 98);
padding: 60px;
}
.header,.footer{
background-color: aqua;
}
.column {
float: left;
padding: 30px;
}
.clearfix::after {
content: "";
clear: both;
display: table;
}
a {
color: white;
text-align: center;
text-decoration: none;
font-size: larger;
}
.menu {
width: 50%;
text-align: center;
}
.content {
width: 50%;
}
.menu ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.menu li {
padding: 8px;
margin-bottom: 8px;
border: solid 2px white;
/* background-image: url(imagenes/descarga.svg); */
color: rgb(18, 18, 98);
}
.menu li:hover {
background-color: rgb(18, 18, 98);
}
div.header{
background-image: url(imagenes/descarga.svg);
border: solid 1px black;
}
h1{
color: white;
text-align: center;
font-size: 30px;
}
h2,h3{
text-align: center;
font-family: monospace;
color: white;
}
h2:hover{
color: yellow;
}
h3:hover{
color: yellow;
}
\ No newline at end of file
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- el icono para la pagina --> <!-- el icono para la pagina -->
<link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" /> <link rel="shortcut icon" href="imagenes/roshkaicon.ico" sizes="any" />
<!-- coneccion con el de css --> <!-- coneccion con el de css -->
...@@ -29,22 +31,25 @@ ...@@ -29,22 +31,25 @@
<a href="menu.jsp">MENU</a><br> <a href="menu.jsp">MENU</a><br>
</div> </div>
<div class="logo"> <div class="logo">
<a href="./index.html"> <img class="logoi" src="imagenes/logo-roshka.svg" alt="" /> </a> <a href="./login.jsp"> <img class="logoi" src="imagenes/logo-roshka.svg" alt="" /> </a>
<!-- logo con link --> <!-- logo con link -->
</div> </div>
<div class="container"> <div class="container">
<h1>Lista Postulantes</h1> <h1>Lista Postulantes</h1>
<div class="filtros"> <div class="input-group">
<form action="filtros-postulante" > <form action="filtros-postulante" >
<input type="search" name="nombreBuscar" <input type="search" name="nombreBuscar"
placeholder="Buscar por nombre"> placeholder="Buscar por nombre">
<button type="submit">Buscar</button> <button type="submit">Buscar</button>
</form> </form>
<form action="filtros-postulante" method="post" style="display:inline">
<input type="search" name="nombre" placeholder="Buscar por Bootcamp" required>
<button type="submit">Bootcamp</button>
</form>
<form action="filtros-postulante" method="post"> </div>
<input type="search" name="nombre" placeholder="Buscar por Bootcamp" required>
<button type="submit">Bootcamp</button>
</form>
<form action="filtros-postulante" method="post"> <form action="filtros-postulante" method="post">
<input type="hidden" name="nombre" value="notebook"> <input type="hidden" name="nombre" value="notebook">
......
...@@ -11,7 +11,7 @@ img{ ...@@ -11,7 +11,7 @@ img{
padding: 5px; padding: 5px;
} }
.container{ .container{
width: 300%; width: 100%;
max-width: 785px; max-width: 785px;
min-width: 320px; min-width: 320px;
border-radius: 15px; border-radius: 15px;
...@@ -22,7 +22,7 @@ table{ ...@@ -22,7 +22,7 @@ table{
/* background-color: wheat; */ /* background-color: wheat; */
text-align: left; text-align: left;
border-collapse: collapse; border-collapse: collapse;
width: 150%; width: 100%;
/* border: solid 3px black; */ /* border: solid 3px black; */
} }
a{ a{
...@@ -31,7 +31,7 @@ a{ ...@@ -31,7 +31,7 @@ a{
} }
h1{ h1{
font-family:Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif; font-family:Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif;
text-align: right; text-align: center;
color:wheat; color:wheat;
font-weight:bold; font-weight:bold;
...@@ -80,3 +80,7 @@ th { border: 1px solid black; height: 30px; ...@@ -80,3 +80,7 @@ th { border: 1px solid black; height: 30px;
} }
button:hover{ button:hover{
color: yellow;} color: yellow;}
div.boot{
width: 100%;
text-align: center;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment