-
-
Notifications
You must be signed in to change notification settings - Fork 609
London class 10 - Iryna Lypnyk - HTML-CSS-Coursework-Week3 #526
base: master
Are you sure you want to change the base?
London class 10 - Iryna Lypnyk - HTML-CSS-Coursework-Week3 #526
Conversation
<div class="menu_icon"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</div> |
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.
Nice custom hamburger menu icon! 👍
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.
Ran the website locally and it looks great, nice use of media queries to adapt the ui to different screen resolutions 👍
Good naming of css classes |
:root { | ||
--bg: #f3f0ef; | ||
--text: #4c4946; | ||
--yellow: #f7e259; | ||
--yellowLight: #fff9de; | ||
--ff-body: 'Open Sans', sans-serif; | ||
--ff-secondary: 'Gwendolyn', cursive; | ||
} |
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.
Nice use of variables 👍
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.
Overall, looks good. Just a smattering of things that came to mind as read through.
<div class="wrapper"> | ||
<header class="header"> | ||
<nav class="menu"> | ||
<div class="menu_icon"> |
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.
For accessibility, you should probably make this a <button>
. That way screen readers identify it as such.
|
||
.menu_item a { | ||
text-transform: uppercase; | ||
font-weight: 500; |
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.
Extra space at the front the line
} | ||
|
||
nav a { | ||
text-decoration: none; |
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.
This can be confusing for some users with low vision or just less comfortable with modern trends, especially coupled with the removal of the hyperlink blue text. Users may not realize these are links if they don't look any different from the rest of the page.
position: relative; | ||
} | ||
|
||
.menu_icon:hover{ |
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.
Because you're controlling the cursor, you can simplify this to remove the hover state. It won't apply in any other state anyway
.menu_icon:hover{ | |
.menu_icon { |
</section> | ||
<section class="gallery content"> | ||
<ul class="gallery_list"> | ||
<li class="gallery_item"> |
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.
For all your lists, you can make the css less brittle and html more terse by removing the class on the items themselves and just select the immediate list items.
.gallery_list li {
If you are particularly concerned about nested lists then
.gallery_list > li {
Should guard the drop-down should guard you against that.
} | ||
|
||
.footer { | ||
border-top: 1px solid var(--yellow); |
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.
This is a very fine line and may be difficult for users with low vision to see, especially with such a similar background color.
This is a really handy tool for checking if foreground-background color contrast is sufficient for all users to perceive.
.wrapper { | ||
grid-template-areas: | ||
"welcome" | ||
"header" |
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.
Extra space
text-align: center; | ||
justify-content: center; | ||
max-width: 700px; |
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.
Spacing
flex-grow: 1; | ||
} | ||
|
||
.menu_icon{ |
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.
As you go to implement this button later on, consider looking up focus traps. For users that rely on keyboards to navigate, it's usually recommended to ensure they can't navigate away while inside the an open modal, like a menu list. An easy way of testing, at least partially, is to observe what happens as you tab
around the page. When "inside" a popup, you shouldn't be able to leave and interact with other things unless you close the popup first. This will require JS and be hard to get right.
.gallery_item:hover { | ||
transform: scale(1); | ||
transition: transform 0.3s ease-out; | ||
} | ||
|
||
.gallery_item:hover { | ||
transform: scale(1.1); | ||
} |
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.
Merge these
Sorry, I just realized I did not follow the |
Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in
HOW_TO_MARK.md
in the root of this repositoryYour Details
Homework Details
Notes
What did you find easy?
What did you find hard?
What do you still not understand?
Any other notes?