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 596
London 9 - Natalie Zablotska- HTML & CSS - Week 3 #451
Open
nataliiazab
wants to merge
17
commits into
CodeYourFuture:master
Choose a base branch
from
nataliiazab: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
17 commits
Select commit
Hold shift + click to select a range
061b5bb
adding raw nav
nataliiazab 27c9875
adding images folder
nataliiazab 43bd837
adding logoimg
nataliiazab b4bf837
fixing into-img size
nataliiazab 2e32494
adding mobile version
nataliiazab 355da46
adding desktop version, draft
nataliiazab c2265ed
desktop version is almost done
nataliiazab 072bf24
tailoring desktop version
nataliiazab 48160f6
changing margin of nav bar for mobile
nataliiazab d6168e2
Update style.css
nataliiazab c5d8ebe
CHANGING NUMBER OF ROWS BACK
nataliiazab badf922
adding divs
nataliiazab 83dc0c9
adding border to 4 imgs
nataliiazab eb354ad
adding max-width to hero img
nataliiazab 1bc8dd4
adding slight changes to text and fixing nav bar
nataliiazab 2352fa8
Merge branch 'master' of https://github.com/nataliiazab/HTML-CSS-Cour…
nataliiazab 42e5dd0
cropping images to square
nataliiazab 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,16 +1,121 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
| <title>Responsive Cake webpage</title> | ||
| <!-- Add a link to your css file here --> | ||
| </head> | ||
| <link rel="stylesheet" href="style.css" /> | ||
| <link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
| <link | ||
| href="https://fonts.googleapis.com/css2?family=Lora&display=swap" | ||
| rel="stylesheet" | ||
| /> | ||
| </head> | ||
|
|
||
| <body> | ||
| <section class="intro"> | ||
| <div class="intro-img"> | ||
| <img | ||
| class="intro-img-src" | ||
| src="./images/cupcake-removebg-preview.png" | ||
| alt="chocolate cupcake" | ||
| /> | ||
| </div> | ||
| <div class="intro-text"> | ||
| <p>The best cakes in town delivered to your door</p> | ||
| </div> | ||
| </section> | ||
| <div class="body"> | ||
| <header class="header"> | ||
| <nav class="navbar"> | ||
| <ul class="nav-menu"> | ||
| <li class="nav-item"> | ||
| <a href="#" class="nav-link">Home</a> | ||
| </li> | ||
| <li class="nav-item"> | ||
| <a href="#" class="nav-link">Cakes</a> | ||
| </li> | ||
| <li class="nav-item"> | ||
| <a href="#" class="nav-link">Orderin</a> | ||
| </li> | ||
| <li class="nav-item"> | ||
| <a href="#" class="nav-link">Lessons</a> | ||
| </li> | ||
| <li class="nav-item"> | ||
| <a href="#" class="nav-link">About</a> | ||
| </li> | ||
| </ul> | ||
| <div class="hamburger"> | ||
| <span class="bar"></span> | ||
| <span class="bar"></span> | ||
| <span class="bar"></span> | ||
| </div> | ||
| </nav> | ||
| </header> | ||
|
|
||
| <section class="hero"> | ||
| <div class="welcome"> | ||
| <h1>Welcome</h1> | ||
| <p> | ||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. Pariatur, | ||
| inventore cupiditate perferendis cumque illo nam molestiae labore | ||
| eaque, illum doloremque facilis, accusamus quis placeat! Fuga sed | ||
| animi expedita porro deserunt. Lorem ipsum dolor sit amet | ||
| consectetur, adipisicing elit. Doloremque, sint atque magnam, illum | ||
| inventore totam non ducimus amet maxime molestias id vero veritatis | ||
| voluptatum. Nostrum expedita quas ullam rem libero? | ||
| </p> | ||
| </div> | ||
| <div class="main-img"> | ||
| <img src="./images/chock-white-cake.jpg" alt="" /> | ||
| </div> | ||
| <div class="cross"> | ||
| <div class="cross-div"> | ||
| <img class="cross-imgs" src="./images/violet-cake.jpg" alt="" /> | ||
| </div> | ||
| <div class="cross-div"> | ||
| <img class="cross-imgs" src="./images/corn-cake.jpg" alt="" /> | ||
| </div> | ||
| <div class="cross-div"> | ||
| <img class="cross-imgs" src="./images/tiramisu.jpg" alt="" /> | ||
| </div> | ||
| <div class="cross-div"> | ||
| <img class="cross-imgs" src="./images/cupcake.jpg" alt="" /> | ||
| </div> | ||
| </div> | ||
| </section> | ||
| </div> | ||
| <footer> | ||
| <div class="cnt-list"> | ||
| <ul class="contacts"> | ||
| <li class="contact"><b>Email: </b> <em>cakeltd@gmail.com</em></li> | ||
| <li class="contact"><b>Phone: </b> <em>XXX-XXX-XXX</em></li> | ||
| <li class="contact"><b>Address: </b> <em>London, UK</em></li> | ||
| </ul> | ||
| </div> | ||
| <p>The website is designed and created by Natalie Zablotska</p> | ||
| </footer> | ||
| </body> | ||
| <script> | ||
| const hamburger = document.querySelector(".hamburger"); | ||
| const navMenu = document.querySelector(".nav-menu"); | ||
|
|
||
| hamburger.addEventListener("click", mobileMenu); | ||
|
|
||
| function mobileMenu() { | ||
| hamburger.classList.toggle("active"); | ||
| navMenu.classList.toggle("active"); | ||
| } | ||
|
|
||
| const navLink = document.querySelectorAll(".nav-link"); | ||
|
|
||
| <body> | ||
| <!-- Add your markup here --> | ||
| </body> | ||
| navLink.forEach((n) => n.addEventListener("click", closeMenu)); | ||
|
|
||
| </html> | ||
| function closeMenu() { | ||
| hamburger.classList.remove("active"); | ||
| navMenu.classList.remove("active"); | ||
| } | ||
| </script> | ||
| </html> | ||
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Consider how you've built the navbar here -- it's a lot of nesting, making it harder to debug and style.
something like the below