This repository was archived by the owner on Jan 14, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 319
LONDON_10 || SAIM KORKMAZ || HTML\CSS-WEEK-4 #283
Open
nsaimk
wants to merge
6
commits into
CodeYourFuture:master
Choose a base branch
from
nsaimk:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,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> |
This file contains hidden or 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,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 { | ||
| 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; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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! 🥇