Skip to content

Commit a862553

Browse files
committed
Agregando formulario y quitando comportamiento por defecto
1 parent da34ed9 commit a862553

File tree

3 files changed

+100
-8
lines changed

3 files changed

+100
-8
lines changed

student-cvs/ivanpugliese-8873/index.html

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,35 @@ <h2>Sobre mi 🙋‍♂️</h2>
4343
<p>Nací el 6 de Febrero de 1999 en Argentina. Apasionado por la tecnología desde muy joven y de la programación desde que me adentre en el mundo de forma autodidacta. Considero que la mejor herramienta es el conocimiento de uno mismo, mi mayor motivación es seguir aprendiendo, fortaleciendo mi desarrollo personal y profesional.</p>
4444
</section>
4545

46-
<footer class="footer">
47-
<small>{Desarrollado por <strong>Ivan Pugliese</strong>}</small>
48-
</footer>
46+
<section id="contact" class="contact">
47+
<h2>Contactame! 📩</h2>
48+
<form action="" id="form" class="form">
49+
<fieldset>
50+
<legend>Información personal</legend>
51+
<label>
52+
Nombre:
53+
<input type="text" name="nombre" placeholder="Ingrese su nombre">
54+
</label>
55+
<label>
56+
Email:
57+
<input type="email" name="email" placeholder="Ingrese su correo">
58+
</label>
59+
</fieldset>
60+
<fieldset>
61+
<legend>Dejeme su mensaje!</legend>
62+
<textarea name="" id="" cols="30" rows="10"></textarea>
63+
</fieldset>
64+
65+
<button>Enviar</button>
66+
</form>
67+
</section>
4968
</main>
69+
70+
<footer class="footer">
71+
<small>{Desarrollado por <strong>Ivan Pugliese</strong>}</small>
72+
</footer>
5073
</div>
74+
75+
<script src="./main.js"></script>
5176
</body>
5277
</html>

student-cvs/ivanpugliese-8873/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const FORM = document.querySelector("#form");
2+
3+
FORM.addEventListener("submit", (event) => {
4+
event.preventDefault();
5+
})

student-cvs/ivanpugliese-8873/styles.css

Lines changed: 67 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ html {
1010
*,
1111
*::before,
1212
*::after {
13-
box-sizing: inherit;
13+
box-sizing: inherit;
1414
}
1515

1616

@@ -47,17 +47,16 @@ h1,h2,h3,p {
4747
flex-direction: column;
4848
justify-content: center;
4949
align-items: center;
50-
max-width: 850px;
51-
margin: 0 auto;
5250
}
5351

5452
main {
53+
max-width: 800px;
5554
display: flex;
5655
flex-direction: column;
5756
justify-content: center;
5857
align-items: center;
5958
gap: 2rem;
60-
margin: 1rem;
59+
padding: 1rem;
6160
}
6261

6362
.header {
@@ -72,8 +71,8 @@ main {
7271
list-style-type: none;
7372
}
7473

75-
7674
.home {
75+
width: 100%;
7776
display: flex;
7877
flex-direction: column;
7978
gap: 1rem;
@@ -96,6 +95,7 @@ main {
9695

9796
.presentation-links {
9897
display: flex;
98+
flex-flow: row wrap;
9999
gap: 10px;
100100
}
101101

@@ -115,4 +115,66 @@ main {
115115

116116
.about {
117117
width: 100%;
118+
display: flex;
119+
flex-direction: column;
120+
gap: 5px;
121+
}
122+
123+
.contact {
124+
width: 100%;
125+
display: flex;
126+
flex-direction: column;
127+
justify-content: center;
128+
gap: 5px;
129+
}
130+
131+
.form {
132+
display: flex;
133+
flex-direction: column;
134+
justify-content: center;
135+
gap: 10px;
136+
}
137+
138+
fieldset {
139+
display: flex;
140+
flex-direction: column;
141+
justify-content: center;
142+
border-radius: 0.5rem;
143+
gap: 5px;
144+
}
145+
146+
input {
147+
padding: 3px 8px;
148+
width: 100%;
149+
border-radius: 0.5rem;
150+
}
151+
152+
input:focus-visible,
153+
textarea:focus-visible {
154+
outline: 2px solid #0370a1;
155+
border: 1px solid #0370a1;
156+
}
157+
158+
textarea {
159+
font-family: "Onest";
160+
padding: 12px;
161+
resize: none;
162+
border-radius: 0.5rem;
163+
}
164+
165+
button {
166+
cursor: pointer;
167+
padding: 5px;
168+
margin: 0 auto;
169+
width: 40%;
170+
font-family: "Onest";
171+
color: #f1f1f1;
172+
background-color: #0370a1;
173+
border: none;
174+
border-radius: 0.5rem;
175+
transition: all 0.2s;
176+
}
177+
178+
button:hover {
179+
transform: scale(1.1);
118180
}

0 commit comments

Comments
 (0)