generated from 4GeeksAcademy/html-hello
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Payment Form</title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
|
||
<div class="container mt-5"> | ||
<div class="card shadow"> | ||
<div class="card-header bg-light text-dark fw-bold fs-4"> | ||
Payment form example | ||
</div> | ||
|
||
<div class="card-body"> | ||
<div class="alert alert-danger" role="alert"> | ||
Some fields are missing | ||
</div> | ||
<form> | ||
<div class="row mb-3"> | ||
<div class="col-md-6"> | ||
<label class="form-label">Card #</label> | ||
<input type="text" class="form-control" placeholder="XXXXXXXXXXXXXXXX" > | ||
</div> | ||
<div class="col-md-3"> | ||
<label class="form-label">CVC #</label> | ||
<input type="text" class="form-control" placeholder="0000"> | ||
</div> | ||
<div class="col-md-3"> | ||
<label class="form-label">Amount</label> | ||
<div class="input-group"> | ||
<span class="input-group-text">$</span> | ||
<input type="text" class="form-control" placeholder="Amount"> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-3"> | ||
<div class="col-md-6"> | ||
<label class="form-label">First Name</label> | ||
<input type="text" class="form-control"> | ||
</div> | ||
<div class="col-md-6"> | ||
<label class="form-label">Last Name</label> | ||
<input type="text" class="form-control"> | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-3"> | ||
<div class="col-md-6"> | ||
<label class="form-label">City</label> | ||
<input type="text" class="form-control"> | ||
</div> | ||
<div class="col-md-3"> | ||
<label class="form-label">State</label> | ||
<select class="form-select"> | ||
<option selected>Pick a state</option> | ||
<option value="California">California</option> | ||
<option value="New York">New York</option> | ||
<option value="Texas">Texas</option> | ||
</select> | ||
</div> | ||
<div class="col-md-3"> | ||
<label class="form-label">Postal Code</label> | ||
<input type="text" class="form-control"> | ||
</div> | ||
</div> | ||
|
||
<div class="row mb-3"> | ||
<div class="col-md-6"> | ||
<label class="form-label">We accept:</label> | ||
<div class="border m-3 p-2 rounded bg-custom text-white fs-5" > | ||
<div> | ||
<input class="form-check-input me-0" type="radio" name="paymentMethod" id="Mastercard"> | ||
<label for="Mastercard"><i class="fa-brands fa-cc-mastercard me-3"></i></label> | ||
|
||
<input class="form-check-input me-0" type="radio" name="paymentMethod" id="Visa"> | ||
<label for="Visa"><i class="fa-brands fa-cc-visa me-3"></i></label> | ||
|
||
<input class="form-check-input me-0" type="radio" name="paymentMethod" id="Diners"> | ||
<label for="Diners"><i class="fa-brands fa-cc-diners-club me-3"></i></label> | ||
|
||
<input class="form-check-input me-0" type="radio" name="paymentMethod" id="Amex"> | ||
<label for="Amex"><i class="fa-brands fa-cc-amex me-3"></i></label> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="mb-3"> | ||
<label class="form-label">Message</label> | ||
<textarea class="form-control" rows="3" placeholder="Add any notes here."></textarea> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
</div> | ||
<div class="card-footer bg-light d-flex justify-content-end"> | ||
<button type="button" class="btn btn-secondary me-2">Cancel</button> | ||
<button type="submit" class="btn btn-primary">Send</button> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="https://kit.fontawesome.com/0d52037676.js" crossorigin="anonymous"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
body { | ||
background-color: #f8f9fa; | ||
} | ||
|
||
.card { | ||
max-width: 750px; | ||
margin: auto; | ||
} | ||
|
||
.input-group-text { | ||
background-color: #e9ecef; | ||
} | ||
|
||
.bg-custom { | ||
background-color: #6d757e; | ||
color: white; | ||
} |