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;
display: block;
padding: 10px;
}
.header {
margin-bottom: 0;
width: 700px;
}
a {
float: right 100px;
color: #fff;
font-size: larger;
text-decoration: none;
padding: 10px;
}
body { body{
width:100vw;
height: 100vh;
background: linear-gradient(100deg, rgba(20, 99, 155, 0.25), rgba(30, 148, 227, 0.25)); background: linear-gradient(100deg, rgba(20, 99, 155, 0.25), rgba(30, 148, 227, 0.25));
background-image: url(imagenes/descarga.svg); background-image: url(imagenes/descarga.svg);
background-size: contain;
background-attachment: fixed;
background-blend-mode: multiply;
font-family: Georgia, 'Times New Roman', Times, serif; font-family: Georgia, 'Times New Roman', Times, serif;
font-weight: "bold";
color: white; color: white;
position: relative;
width: 100px;
height: 100px;
}
/* ul{
list-style: none;
} }
.menu >ul{ .contenedor{
float: right; width: 100%;
height: 20%;
display: flex;
justify-content: space-between;
align-items: center;
} }
.main{
.menu li a { width: 100%;
height: 80%;
color:#fff; display: flex;
text-decoration:none; align-items: center;
padding:10px 12px; /* background-color: aqua; */
display:block; }
.letra{
width: 60%;
height: 40%;
margin-left: 10px;
font-weight: bold;
color: aliceblue;
} }
.letra h3{
.menu li ul li { }
marging-left .imagen{
position:relative; width: 40%;
} */ /* background-color: crimson; */
.menu { }
width: 400%;
float: left;
}
.menu ul li {
float: right;
list-style-type: none;
text-align: right;
}
div.menu { .contenido a img{
float: right; width: 100%;
} display: flex;
justify-content: flex-end;
.menu ul li a { }
padding-left: 5px; .link{
width: 90%;
height: 80%;
text-decoration: none; text-decoration: none;
font-size: clamp(145px); display: flex;
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 { justify-content: flex-end;
perspective: 100px; align-items: center;
} }
ul {
width: 70%;
height: 70%;
}
.hero { div.link ul li a {
display: grid; /* float: right 100px;
grid-template-columns: auto repeat(5, 0.5fr) auto; color: #fff;
} font-size: larger; */
text-decoration: none;
color: aliceblue;
/* padding: 10px; */
}
.hero { .link ul {
display: flex; display: flex;
flex-direction: column; justify-content: space-around;
align-items: center; align-items: center;
padding-left: 200px; list-style: none;
/* padding-right: 200px; }
*/
}
/* */
.postulacion { .imagen img{
border-radius: 30px; width: 100%;
} height:100%;
.cta-main { }
.cta-main {
width: 200px; width: 200px;
font-family: monospace; font-family: monospace;
background-color: yellow; background-color: yellow;
border: none; border: none;
} }
\ No newline at end of file
<!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>
<!-- menu --> </header>
</div>
<!-- header --> <main class="main">
<div class="letra">
<h1>Es tu turno, <strong>Postulate</strong> para el bootcamp</h1>
<div class="main"> <h3 data-block-key="cwggy">
<div class="seccion hero"> Es un campo de entrenamiento intensivo y gratuito para principiantes
que ya programan y quieren ser parte de la empresa.
</h3>
<a href="bootcamp.jsp">
<button type="submit" class="btn btn-warning cta-main">
<!-- <div class="contenido"> --> POSTULACION
</button>
<br> <br> <br> <br> <br> <br><br> </a>
<div class="texto"> </div>
<div class="titulo">
<div class="titulo"> <div class="imagen">
<h2>Es tu turno <strong>Postulate</strong> para el bootcamp</h2> <img
<h1>Aprende</h1> style="align-items: right"
</div> src="imagenes/ilustracion-herov3.svg"
</div> alt=""
<div class="parrafo"> />
<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> </div>
</div> </main>
<div class="postulacion"> </body>
<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,23 +31,26 @@ ...@@ -29,23 +31,26 @@
<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"> <form action="filtros-postulante" method="post" style="display:inline">
<input type="search" name="nombre" placeholder="Buscar por Bootcamp" required> <input type="search" name="nombre" placeholder="Buscar por Bootcamp" required>
<button type="submit">Bootcamp</button> <button type="submit">Bootcamp</button>
</form> </form>
</div>
<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">
<button type="submit">Notebooks</button> <button type="submit">Notebooks</button>
......
...@@ -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