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 475
Manchester NW_4-Erin_Dyson-HTML/CSS-4 #62
Closed
Closed
Changes from all commits
Commits
Show all changes
5 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 |
|---|---|---|
| @@ -1,8 +1,140 @@ | ||
| /** | ||
| * Add your custom styles below | ||
| * | ||
| * Remember: | ||
| * - Be organised, use comments and separate your styles into meaningful chunks | ||
| * for example: General styles, Navigation styles, Hero styles, Footer etc. | ||
| * | ||
| */ | ||
| /* After having watched the responsivity videos, there is a lot that I would change witgh this project. It | ||
| would be really good to start again from the ground up and design it first for an iphone, and then for a tablet | ||
| etc... | ||
|
|
||
| I would massively change the layout of the font, change the pictures so theyre centered and larger, then as the | ||
| website sclaes up I could look to shift them to a left alligned position. I would also play around with spacing | ||
| and perhaps redesign the header. */ | ||
|
|
||
| * { | ||
| background-color: #275e85; | ||
| color: white; | ||
| } | ||
|
|
||
| body { | ||
| margin: 0; | ||
| padding: 0; | ||
| width: 100%; /* full window width */ | ||
| font-family: "KoHo", sans-serif; | ||
| } | ||
|
|
||
| /* I have reset the box-sizing from content-box to border-box. this will make sizing elements easier */ | ||
| *, | ||
| *:before, | ||
| *:after { | ||
| -webkit-box-sizing: border-box; | ||
| -moz-box-sizing: border-box; | ||
| -box-sizing: border-box; | ||
| } | ||
|
|
||
| /* I have used this solution to try and show 3 elements on the same line based on the percentage of the overall width | ||
| of the page, whilst not having to use CSS grids. Source for solution : https://www.codecademy.com/forum_questions/53a1263e631fe949a9000427 | ||
|
|
||
| However I am still running into issues for getting it to display properly */ | ||
|
|
||
| #wrapper { | ||
| width: 100%; /* of body width */ | ||
|
|
||
| position: fixed; | ||
| top: 0; | ||
| width: 100%; | ||
| background-color: #1c3f57; | ||
| border-bottom: #ff3100 4px solid; | ||
| } | ||
|
|
||
| /* wrapper > div selects all child elements div within the wrapper. This is how I managed to get all three elements to display in a row.*/ | ||
|
|
||
| #wrapper > div { | ||
| background-color: #1c3f57; | ||
| display: inline-block; | ||
| width: 32.4%; /* of wrapper width */ | ||
| height: 250px; | ||
| text-align: center; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
| h1 { | ||
| /*width: max-content; /* of wrapper width */ | ||
| background-color: #1c3f57; | ||
| margin-top: 10%; | ||
| color: whitesmoke; | ||
| height: 300px; | ||
| font-size: 3em; | ||
| /*vertical-align:middle;*/ | ||
| } | ||
|
|
||
| p { | ||
| text-align: start; | ||
| margin-left: 10%; | ||
| margin-right: 10%; | ||
| margin-top: 3em; | ||
| color: white; | ||
| font-size: 1.3em; | ||
| } | ||
|
|
||
| .heading-p { | ||
| margin-top: 350px; | ||
| } | ||
|
|
||
| h2 { | ||
| text-align: start; | ||
| font-size: 225%; | ||
| margin-left: 10%; | ||
| margin-right: 10%; | ||
| } | ||
|
|
||
| .h2-bottom { | ||
| margin-bottom: 3.5%; | ||
| margin-left: 10%; | ||
| margin-right: 34.5%; | ||
| border-bottom: #1e4763 solid 3px; | ||
| } | ||
|
|
||
| /* Using a relative measurement for the width of the images mean that they will rescale as the page does !!! */ | ||
|
|
||
| .h2-image { | ||
| display: block; | ||
| width: 30%; | ||
| align-items: baseline; | ||
| margin-left: 10%; | ||
| } | ||
|
|
||
| main article:first-child { | ||
| font-size: 1.2em; | ||
| margin-top: 100px; | ||
| margin-bottom: 15%; | ||
| } | ||
|
|
||
| /* Note - margin-top did not work for <a> because it is an inline element, need to change to inline-block or block*/ | ||
| .article-link { | ||
| display: block; | ||
| font-size: 1.5em; | ||
| text-align: left; | ||
| margin-left: 10%; | ||
| margin-top: 5%; | ||
| text-decoration: none; | ||
| font-style: italic; | ||
| } | ||
|
|
||
| a:hover { | ||
| color: #ff3100; | ||
| } | ||
|
|
||
| input { | ||
| display: block; | ||
| background-color: white; | ||
| color: black; | ||
| width: 40%; | ||
| height: 30px; | ||
| align-items: baseline; | ||
| margin-left: 10%; | ||
| margin-top: 5%; | ||
| } | ||
|
|
||
| .footer-top { | ||
| border-top: solid #ff3100 2px; | ||
| margin-top: 10%; | ||
| } | ||
|
|
||
| footer a { | ||
| } |
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 |
|---|---|---|
| @@ -1,22 +1,152 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <lang lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="description" content="Advise on keeping yourself secure on the internet"> | ||
| <meta name="keywords" content="HTML, CSS, Cyber Security"> | ||
| <meta name="author" content="Erin"> | ||
| <meta | ||
| name="viewport" | ||
| content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
| /> | ||
| <title>My Blog</title> | ||
| <title>Cyber Security in the 21st Century</title> | ||
| <link | ||
| href="//fonts.googleapis.com/css?family=Roboto:400,500,300" | ||
| rel="stylesheet" | ||
| type="text/css" | ||
| /> | ||
| <link rel="stylesheet" href="css/style.css" /> | ||
| <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> | ||
| <link rel="preconnect" href="https://fonts.gstatic.com"> | ||
| <link href="https://fonts.googleapis.com/css2?family=KoHo:ital,wght@0,400;0,700;1,700&display=swap" rel="stylesheet"> | ||
| </head> | ||
|
|
||
|
|
||
| <body> | ||
| <!-- Add your HTML markup here --> | ||
| <!-- Remember: Use semantic HTML tags like <header>, <main>, <nav>, <footer>, <section> etc --> | ||
|
|
||
| <!-- the image and the h1 elements need to be inline so that display properly as I want them all on one line --> | ||
|
|
||
| <header><div id="wrapper"> | ||
|
|
||
| <div><image class="h1-image-1" | ||
| src="https://1gew6o3qn6vx9kp3s42ge0y1-wpengine.netdna-ssl.com/wp-content/uploads/prod/sites/5/2020/12/cyver.jpg" | ||
| alt="Locked paddlocks with a blue background"></image></div> | ||
| <div> | ||
| <h1> Cyber Security in the 21st Century</h1> | ||
| </div> | ||
| <div> | ||
| <image class="h1-image-2" | ||
| src="https://1gew6o3qn6vx9kp3s42ge0y1-wpengine.netdna-ssl.com/wp-content/uploads/prod/sites/5/2020/12/cyver.jpg" | ||
| alt="Locked paddlocks with a blue background"></image> | ||
| </div> | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| </div></header> | ||
|
Comment on lines
+29
to
+47
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. There are a couple of improvements you can make in terms of code formatting here - for example putting child elements on a new line, removing some of the extra whitespace etc. Also - the best tag to use for images is |
||
|
|
||
| <!-- This should be in the middle directly below the heading --> | ||
|
|
||
| <p class= "heading-p"> | ||
| "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna | ||
| aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis | ||
| aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
| occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
| <br> | ||
| <br> | ||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna | ||
| aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis | ||
| aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
| occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
| </p> | ||
|
|
||
| <!-- This is the sub article within the same h1 heading followed by a picture and text--> | ||
|
|
||
| <main> | ||
|
|
||
| <article> | ||
| <h2> Breaking passwords </h2> | ||
| <div class="h2-bottom"></div> | ||
|
|
||
| <image class="h2-image" src="https://i.crn.com/sites/default/files/ckfinderimages/userfiles/images/crn/misc/cybersecurity-week-19.jpg" alt=""></image> | ||
|
|
||
| <p>"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, | ||
| eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam | ||
| voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione | ||
| voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, | ||
| sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. | ||
| <br> | ||
| <br> | ||
| Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae | ||
| sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus | ||
| maiores alias consequatur aut perferendis doloribus asperiores repellat. | ||
| <br> | ||
| <br> | ||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna | ||
| aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis | ||
| aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
| occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna | ||
| aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis | ||
| aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
| occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p> | ||
|
|
||
| <a class="article-link" href="https://passwordsgenerator.net/" target="_blank">Secure password generator</a> | ||
|
|
||
| </article> | ||
|
|
||
| <article> | ||
|
|
||
| <h2> Brute force attack vs. dictionary attacks </h2> | ||
| <div class="h2-bottom"></div> | ||
|
|
||
| <image class="h2-image" | ||
| src="https://www.manageengine.com/log-management/images/cyber-security-attackswhat-is-brute-force-attack.png" alt="Diagram showing a hacker, who uses an automated tool to make mutiple login attempts against a server"> | ||
| </image> | ||
|
|
||
| <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna | ||
| aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis | ||
| aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
| occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit | ||
| amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna | ||
| aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis | ||
| aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint | ||
| occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
| </p> | ||
| <br> | ||
| <p>Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates | ||
| repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis | ||
| voluptatibus | ||
| maiores alias consequatur aut perferendis doloribus asperiores repellat.</p> | ||
|
|
||
| <a class="article-link" href="https://owasp.org/www-community/controls/Blocking_Brute_Force_Attacks" target="_blank">How to stop a brute force attack</a> | ||
|
|
||
| </article> | ||
|
|
||
| <article> | ||
|
|
||
| <h2> How secure is your password? </h2> | ||
| <div class="h2-bottom"></div> | ||
| <a class="article-link" href="https://haveibeenpwned.com/" target="_blank">Check if your email address has been comprimised by clicking here</a> | ||
| <p>Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates | ||
| repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus | ||
| maiores alias consequatur aut perferendis doloribus asperiores repellat.Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus | ||
| maiores alias consequatur aut perferendis doloribus asperiores repellat.Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus | ||
| maiores alias consequatur aut perferendis doloribus asperiores repellat.Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus | ||
| maiores alias consequatur aut perferendis doloribus asperiores repellat.</p> | ||
|
|
||
|
|
||
|
|
||
| <input type="password" placeholder="Enter your password here ..."> | ||
|
|
||
| </article> | ||
|
|
||
| </main> | ||
|
|
||
| </body> | ||
| <footer> | ||
| <p class= "footer-top">Author: Erin</p> | ||
| <p><a href="mailto:hege@scam.com">givemeyourpassword@scam.com</a></p> | ||
| </footer> | ||
| </lang> | ||
| </html> | ||
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.
good alt text :)