Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main wt #5

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
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
123 changes: 120 additions & 3 deletions html-forms/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Front-end foundations: HTML forms</title>
<title>Vacation Rentals & Unique Homes</title>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
rel="stylesheet"
Expand All @@ -13,6 +13,123 @@
</head>

<body>
<main></main>
<header>
<div class="logo">Thinkfulbnb</div>
<nav>
<ul id="menu">
<li><a href="#stay">Stay</a></li>
<li><a href="#about">About</a></li>
<li><a href="#ideas">Ideas</a></li>
<li><a href="#host">Host</a></li>
</ul>
</nav>
</header>

<main>
<form>
<fieldset>
<legend>Shipping Information</legend>
<div>
<label for="name">Full Name:</label>
<input
id="name"
type="text"
name="name"
placeholder="Enter your full name"
/>
</div>
<div>
<label for="location">Zipcode:</label>
<input
id="location"
type="text"
name="zipcode"
autofocus="on"
maxlength="5"
required
/>
</div>
</fieldset>
<div>
<label for="form-message">Your message:</label>
<textarea
id="form-message"
name="message"
autofocus="on"
required
maxlength="200"
placeholder="How can I help you?"
></textarea>
</div>
<div>
<label for="password">Password:</label>
<input id="password" type="password" name="password" minlength="8" />
</div>
<div>
<h2>Favorite Color:</h2>
<div>
<input id="red" name="color" type="radio" value="red" />
<label for="red">Red</label>
</div>
<div>
<input id="blue" name="color" type="radio" value="blue" />
<label for="blue">Blue</label>
</div>
<div>
<input id="white" name="color" type="radio" value="white" />
<label for="white">White</label>
</div>
</div>
<div>
<h2>Choose your monster's features:</h2>
<div>
<input name="scales" type="checkbox" id="scales" />
<label for="scales">Scales</label>
</div>
<div>
<input name="horns" type="checkbox" id="horns" />
<label for="horns">Horns</label>
</div>
<div>
<input name="wings" type="checkbox" id="wings" />
<label for="wings">Wings</label>
</div>
</div>
<div>
<h2>Choose a font:</h2>
<select name="fonts" size="1">
<option value="arial">Arial</option>
<option value="times">Times New Roman</option>
<option value="comicsans">Comic Sans</option>
<option value="papyrus">Papyrus</option>
</select>
</div>
<div>
<label for="phone">Phone #:</label>
<input
id="phone"
type="text"
name="phone"
pattern="\d{3}[\-]\d{3}[\-]\d{4}"
placeholder="xxx-xxx-xxxx"
/>
</div>
<div>
<label for="name">Name:</label>
<input id="email" type="Email" name="email" />
<label for="form-message">Your message:</label>
<textarea
id="form-message"
name="message"
autofocus="on"
required
maxlength="200"
placeholder="How can I help you?"
></textarea>
</div>
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</form>
</main>
</body>
</html>
</html>
70 changes: 66 additions & 4 deletions html-forms/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,69 @@
body {
padding: 10px;
/* General Styles */

main {
margin-top: 60px;
}

main h1 {
margin: 0 10px;
text-align: center;
font-family: "Amatic SC", cursive;
font-size: 65px;
}

main h2 {
margin: 18px 0 12px 0;
border-bottom: 1px solid #5c4f41;
font-family: "Special Elite", cursive;
font-size: 24px;
}

main h3 {
margin: 18px 0 12px 0;
border-bottom: 1px solid #5c4f41;
font-family: "Special Elite", cursive;
font-size: 18px;
}

main p {
font-family: "Roboto", sans-serif;
margin-top: 0;
}

.bg-primary {
background-color: #775f47;
}

input {
margin: 5px;
.group img {
width: 100%;
}

/* Groups & Items (Mobile First) */

.group {
display: flex;
flex-direction: column;
margin-bottom: 100px;
}

.item {
flex: 1;
margin: 10px;
}

.item-double {
flex: 2;
margin: 10px;
}

/* Groups & Items (Desktop) */

@media all and (min-width: 800px) {
section {
padding: 0 10%;
}

.group {
flex-direction: row;
}
}
50 changes: 25 additions & 25 deletions navigation/index.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Front-end foundations: Navigation</title>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"
rel="stylesheet"
type="text/css"
/>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<header>
<h1>Your Name</h1>
<nav>
<ul id="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
</body>
</html>

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Will Tuttle Thinkful : Software Engineer</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<header>
<h1>Will Tuttle</h1>
<nav>
<ul id="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
</body>

</html>
57 changes: 57 additions & 0 deletions navigation/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
body {
margin: 0;
}

header {
background-color: #0b1c51;
margin-bottom: 40px;
}

header h1 {
font-family: "Gochi Hand";
font-size: 52px;
color: #fff;
text-align: center;
margin: 0;
padding-top: 20px;
}

header nav {
display: flex;
justify-content: center;
}

header nav ul {
display: flex;
padding-left: 0;
list-style: none;
}

header nav ul li a {
font-family: Montserrat;
color: #fff;
text-decoration: none;
margin: 0 20px 0 0;
}
header nav ul li:last-child a {
margin-right: 0;
}

@media all and (min-width: 600px) {
header {
display: flex;
justify-content: space-between;
padding: 0 30px;
}

header h1 {
font-size: 42px;
margin: 14px 0;
padding-top: 6px;
}

header nav {
margin-top: 14px;
}

header nav ul li a:hover {
color: #bdbdbd;
}
}