Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions iron-comments/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Open index.html",
"file": "c:\\Users\\usuario\\Documents\\GitHub\\lab-html-css-iron-comments\\iron-comments\\index.html"
}
]
}
18 changes: 17 additions & 1 deletion iron-comments/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,23 @@
<body>

<form id="form-container">
Name: Email: Comment: Receive email updates? Submit
<div class="agrupacion">
<label for="name">Name:</label>
<input type="text" name="name" id="name">
</div>
<div class="agrupacion">
<label for="email">E-Mail:</label>
<input type="email" name="email" id="email">
</div>
<div class="agrupacion">
<label for="comment">Comment:</label>
<textarea name="comment" id="comment" cols="30" rows="10"></textarea>
</div>
<div>
<label for="updates"><i>Receive email updates?</i></label>
<input type="checkbox" name="updates" id="updates">
</div>
<button type="submit">Submit</button>
</form>

</body>
Expand Down
51 changes: 50 additions & 1 deletion iron-comments/styles/style.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,60 @@
/*
Colors

Dark Blue: rgb(25, 33, 41)
Light Blue: rgb(67, 163, 230)
Text: rgb(255,255,255)

Form width should be 250px - remember to think
about box-sizing when adding padding and borders
*/
body {
padding: 0;
margin: 0;
padding-top: 100px;
width: 100vw;

background-color: rgb(25, 33, 41);
}

#form-container {
margin: auto;
width: 250px;
box-sizing: border-box;
color: rgb(255,255,255);
border-width: 3px;
border-style: solid;
border-color: rgb(67, 163, 230);
padding: 25px;
font-weight: bold;
}
#form-container label{
font-size: 1em;
}

#form-container .agrupacion {
margin-top: 6px;
margin-bottom: 8px;
}
#form-container .agrupacion input{
width: 100%;
border-width: 1px;
border-style: solid;
border-color: rgb(67, 163, 230);
border-radius: 3px;
}
#form-container .agrupacion textarea{
width: 100%;
border-width: 1px;
border-style: solid;
border-color: rgb(67, 163, 230);
border-radius: 3px;
}

button{
margin-top: 8px;
background-color: rgb(67, 163, 230);
color: rgb(255,255,255);
border-color: rgb(67, 163, 230);
border-radius: 13px;
padding: 5px;
}