Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
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
107 changes: 107 additions & 0 deletions contact.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="./css/contact.css" />
</head>
<body>
<header>
<div class="header">
<div class="left">
<p id="box"></p>
<a href="./index.html">
<p style="font-size: 24px">
<b>Maya Nelson</b> / Project Manager
</p></a
>
</div>
<nav class="right">
<ul>
<li><a href="#" style="color: #0150fd">ABOUT ME</a></li>
<li><a href="./resume.html">RESUME</a></li>
<li><a href="./project.html">PROJECTS</a></li>
<li><a href="./contact.html">CONTACT</a></li>
</ul>
</nav>
</div>
</header>
<!-- MAIN -->
<main>
<div id="main-head">
<div id="box"></div>
<h1>Let's Talk</h1>
</div>
<form>
<div class="form-row">
<div class="form-group">
<label for="first-name">First Name<span>*</span></label>
<input type="text" id="first-name" name="first-name" required />
</div>
<div class="form-group">
<label for="surname">Surname<span>*</span></label>
<input type="text" id="surname" name="surname" required />
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="email">E-mail<span>*</span></label>
<input type="email" id="email" name="email" required />
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="subject">Subject</label>
<input type="text" id="subject" name="subject" />
</div>
</div>
<div class="form-row">
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message"></textarea>
</div>
</div>
<div class="form-row">
<button type="submit" class="send-btn">SEND</button>
</div>
</form>
</main>
<!-- FOOTER -->
<footer>
<p>
© 2035 by Maya Nelson.<br />
Powered and secured by Wix
</p>
<div>
<div>
<p><b>Call</b></p>
<p>123-456-7890</p>
</div>
<div>
<p><b>Write</b></p>
<p><a href="">info@mysite.com</a></p>
</div>
<div>
<p><b>Follow</b></p>
<ul>
<li>
<a
href="./designs/face-black.png"
style="height: 5px; width: 10px; background-color: black"
></a>
</li>
<li>
<a href="./designs/twitter-black.png" style="height: 5px"></a>
</li>
<li><a href="./designs/in-black.png" style="height: 5px"></a></li>
<li>
<a href="./designs/insta-black.png" style="height: 5px"></a>
</li>
</ul>
</div>
</div>
</footer>
</body>
</html>
251 changes: 251 additions & 0 deletions css/contact.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap");
body {
margin: 0;
padding: 0;
}
h1,
h2,
p {
font-family: "Roboto";
}
h1 {
font-size: 100px;
}
/* HEADER */
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: white;
color: black;
display: flex;
align-items: center;
height: 120px;
z-index: 3;
}

.header .left {
flex: 1;
padding-left: 20px;
}
.left {
display: flex;
align-items: center;
}
.left p {
margin-right: 10px;
}
#box {

Choose a reason for hiding this comment

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

Great use of a mixture of classes and IDs to target different elements for styling! Nice job! 🥇

background-color: #0150fd;
height: 20px;
width: 20px;
}

.header .right {
flex: 1;
padding-right: 20px;
text-align: right;
}

.header .right ul {
list-style: none;
margin: 0;
padding: 0;
}

.header .right ul li {
display: inline-block;
margin-left: 20px;
}

.header .right ul li:first-child {
margin-left: 0;
}

.header .right ul li a {
color: black;
text-decoration: none;
}
.header .right ul li a:hover {
color: #0150fd;
}

/* MAIN */

main {
background-color: #e6dacd;
height: 1100px;
display: flex;
flex-direction: column;
align-items: center;
}
#main-head {
display: flex;
align-items: center;
margin-top: 200px;

Choose a reason for hiding this comment

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

Rather than have a different line for margin-top, margin-left, margin-bottom and margin-right values; you can break these up into just one line.

So here rather than have "margin-top: 200px", "margin-bottom: 15px" and "margin-left: 240px" on different lines of code, you could try just one line that says "margin: 200px 0 15px 240px", this way you make the CSS functions slightly shorter and easier to read, hope it helps you!

margin-bottom: 15px;
margin-left: 240px;
}

#main-head #box {
width: 30px;
height: 30px;
background-color: blue;
margin-left: 100px;
}
h1 {
font-size: 40px;
margin-right: 350px;
margin-left: 5px;
}


/* FORM */
form {
width: 900px;
margin: 30px;
font-size: 16px;
font-family: Arial, sans-serif;
background-color: white;

}

.form-row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 20px;
}

.form-group {
width: 48%;
margin-bottom: 10px;
position: relative;
}

.form-group label {
display: block;
margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 10px;
border: none;
border-bottom: 2px solid #ddd;
}

.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-bottom: 2px solid #0150FD;
}

.form-group span {
color: #0150FD;
}

.form-group textarea {
height: 150px;
}

.send-btn {
float: left;
background-color: #0150FD;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s ease-in-out;
border: 2px solid #0150FD;
border-radius: 35px;
width: 100px;
}

.send-btn:hover {
background-color: white;
color: black;
}


/* FOOTER */

footer {
background-color: white;
color: #333;
padding: 30px;
display: flex;
justify-content: space-between;
align-items: center;
}

footer p {
margin: 0;
}

footer div {
display: flex;
align-items: center;
}

footer div > div {
margin-left: 40px;
display: flex;
flex-direction: column;
}

footer div p {
margin: 0;
font-weight: bold;
}

footer div a {
text-decoration: none;
color: #333;
}

footer div:last-of-type p:first-of-type {
margin-bottom: 5px;
}

footer div ul {
display: flex;
}

footer div:last-of-type {
display: flex;
align-items: center;
justify-content: space-between;
}

footer div:last-of-type p {
margin: 0;
font-weight: bold;
}

footer div:last-of-type ul {
display: flex;
list-style: none;
padding: 0;
margin: 0;
}

footer div:last-of-type ul li {
margin-left: 20px;
}

footer div:last-of-type ul li:first-of-type {
margin-left: 0;
}

footer div:last-of-type ul li a {
display: block;
width: 30px;
height: 30px;
background-repeat: no-repeat;
background-size: contain;
}
Loading