Skip to content

Commit

Permalink
Diseño de formulario
Browse files Browse the repository at this point in the history
  • Loading branch information
Jankarurosu committed Jan 30, 2024
1 parent e8099a8 commit af14bd1
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 0 deletions.
79 changes: 79 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
body {
font-family: Arial, Helvetica, sans-serif;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-image: url("../images/fondo.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.container {
font-family: inherit;
padding: 15px 55px;
box-shadow: 0 0 20px rgba(0, 0, 0, 1);
border-radius: 20px;
text-align: center;
width: 350px;
background: #fafafa10;
backdrop-filter: blur(0.3rem);
}

.form {
display: flex;
flex-direction: column;
text-align: left;
}

h3 {
color: #000000;
font-size: 35px;
}

label {
color: #000000;
font-size: 15px;
font-weight: 600;
margin-bottom: 15px;
}

input,
textarea {
font-family: inherit;
padding: 17px 25px;
border-radius: 25px;
margin-bottom: 20px;
background-color: #cdf1f5;
border: 2px solid #cdf1f5;
outline: none;
resize: none;
}

input::placeholder,
textarea::placeholder {
color: #a1c3ca;
}

.cont-caracteres {
margin-top: -10px;
margin-bottom: 35px;
font-size: 10.5px;
color: #a1c3ca;

}

.button {
font-size: 16px;
color: #ffffff;
border: 0;
border-radius: 25px;
background-color: #8aebf5;
box-shadow: 0 0 20px rgba(0, 254, 254, 0.5);
cursor: pointer;
}

.btn:hover {
background-color: #4bdde0;
}
Binary file added images/fondo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulario de contacto</title>
<link rel="stylesheet" href="./css/style.css">
</head>

<body>
<div class="container">
<h3>Contacto</h3>
<form class="form">
<label for="nombre">Nombre y apellidos</label>
<input type="text" id="nombre" class="box" placeholder="Nombre y apellidos">

<label for="direccion">Dirección</label>
<input type="text" id="direccion" class="box" placeholder="Dirección">

<label for="pais">País</label>
<input type="text" id="pais" class="box" placeholder="País">

<label for="email">Email</label>
<input type="text" id="email" class="box" placeholder="Email">

<label for="web-site">Página web/Blogger</label>
<input type="text" id="web-site" class="box" placeholder="Página web/Blogger">

<label for="telefono">Teléfono/Celular</label>
<input type="text" id="telofono" class="box" placeholder="Teléfono/Celular">

<label for="comentario">Comentario</label>
<textarea id="comentario" cols="30" rows="10" placeholder="Comentario"></textarea>
<p class="cont-caracteres">Le quedan <span id="contador">500</span> de 500 caracteres.</p>

<input type="button" value="Enviar" class="button">
<input type="button" value="Limpiar" class="button">
</form>
</div>
</body>

</html>

0 comments on commit af14bd1

Please sign in to comment.