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

Business site project #384

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Binary file added .DS_Store
Binary file not shown.
74 changes: 62 additions & 12 deletions code/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,67 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Business Site</title>
<!-- dont forget to add a css file and link it here! -->
</head>
<body>
<h1>Business name 🌻</h1>

<!-- video or image as a header is cool :) -->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css">

<!-- Signup form -->

</body>
</html>


<title>Business Site</title>
</head>


<body>

<!-- This is a section for the header, This webpage is styled in mobilefirst -->

<div class="container">

<div class="hero">
<h3>Pro Tennis Training Club</h3>
</div>

<div class="text-area">
<h4>Improve your game with personalized tennis lessons</h4>
</div>

<div class="text-section">
<p>Wether you are a beginner or looking to refine your skills, our coaches are here to help you</p>
</div>


<!---This is the code for the sign-up form-->
<div class="box">
<form action="http://httpbin.org/anything" method="post">

<h5>Sign up here</h5>
<input type="text" id="name" name="name" placeholder="First and Lastname" required>
<br>
<br>
<input type="email" id="email" name="email" placeholder="[email protected]" required>
<br>
<br>
<label style="margin-left: 10px;"> How would you like to be contacted?</label> <br>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the styling in the css file in the future. No inline styling ❌

<br>
<input type="radio" id="phone" name="Contact" value="phone">
<label for="phone">Phone</label>
<input type="radio" id="email" name="Contact" value="email">
<label for="email">E-mail</label>
<br>
<br>
<input type="checkbox" id="terms" name="terms" required>
<label for="terms">I agree to terms and conditions</label>
<br>
<br>
<button type="submit">SUBMIT</button>

</form>

</div>
</div>
</body>

</html>
121 changes: 118 additions & 3 deletions code/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,120 @@
/* After you've linked the CSS file in the HTML,
this should turn the background blue ;) */
/* This webpage is coded in mobilfirst style - This styling is for the header*/

body {
background: blue;
background-color: #FFF8E8;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

.container {
width: 100%;
max-width: 800px;
padding: 15px;
box-sizing: border-box;
}

.hero {
background-image: url("https://images.unsplash.com/photo-1622163642998-1ea32b0bbc67?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwcm9maWxlLWxpa2VkfDF8fHxlbnwwfHx8fHw%3D");
height: 30vh;
width: 50%;
background-size: cover;
background-repeat: no-repeat;
margin-bottom: 10px;
align-items: center;
border-radius: 5px;

}

.hero h3 {
color: #FFF8E8;
text-transform: uppercase;
font-size: 20px;
font-family: sans-serif;
text-align: center;
}


/*Code for text-area and section*/
.text-area {
display: flex;
background-color: #F7EED3;
color: #674636;
text-transform: uppercase;
}

.text-area h4 {
font-family: sans-serif;
font-size: 20px;
}

.text-section {
display: flex;
background-color: #F7EED3;
color: #674636;
text-transform: uppercase;
font-family: sans-serif;
font-size: 15px;
font-weight: bold;
}

/*Code for form*/
.box {
background-color: #F7EED3
}

h5 {
font-family: sans-serif;
font-size: 15px;
font-weight: bold;
color: #674636;
text-transform: uppercase;
text-decoration: underline;
}

input {
margin-right: 10px;
border: 2px solid #674636;
padding: 10px;
background-color: #FFF8E8;
}

button {
width: 22%;
padding: 7px;
border: 3px solid #674636;
cursor: pointer;
background-color: #FFF8E8;
}

button:hover {
background-color: #F7EED3
}


/* Media query for screens wider than 420px*/
@media(min-width: 445px)and (max-width: 667px) {
.hero {
height: 60vh;
width: 60%;
}

}


/*Media query for screens wider than 667px*/
@media(min-width: 668px) {
.hero {

background-size: contain;
height: 70vh;
margin-bottom: 0px;
}

.text-area {
margin-top: 0px;
}
}