Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

London class 10 - Iryna Lypnyk - HTML-CSS-Coursework-Week3 #526

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

IrynaLypnyk
Copy link

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 repository

Your Details

  • Your Name:
  • Your City:
  • Your Slack Name:

Homework Details

  • Module:
  • Week:

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

@IrynaLypnyk IrynaLypnyk changed the title London class 10 - iryna lypnyk London class 10 - Iryna Lypnyk - HTML-CSS-Coursework-Week3 Jun 1, 2023
@IrynaLypnyk IrynaLypnyk added the review requested I would like a mentor to review my PR label Jun 1, 2023
Comment on lines +19 to +23
<div class="menu_icon">
<span></span>
<span></span>
<span></span>
</div>

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! 👍

Copy link

@DaleCausierIress DaleCausierIress left a 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 👍

@DaleCausierIress
Copy link

Good naming of css classes

Comment on lines +1 to +8
:root {
--bg: #f3f0ef;
--text: #4c4946;
--yellow: #f7e259;
--yellowLight: #fff9de;
--ff-body: 'Open Sans', sans-serif;
--ff-secondary: 'Gwendolyn', cursive;
}

Choose a reason for hiding this comment

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

Nice use of variables 👍

Copy link

@quittle quittle left a 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">
Copy link

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;
Copy link

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;
Copy link

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{
Copy link

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

Suggested change
.menu_icon:hover{
.menu_icon {

</section>
<section class="gallery content">
<ul class="gallery_list">
<li class="gallery_item">
Copy link

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);
Copy link

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"
Copy link

Choose a reason for hiding this comment

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

Extra space

Comment on lines +343 to +345
text-align: center;
justify-content: center;
max-width: 700px;
Copy link

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{
Copy link

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.

Comment on lines +330 to +337
.gallery_item:hover {
transform: scale(1);
transition: transform 0.3s ease-out;
}

.gallery_item:hover {
transform: scale(1.1);
}
Copy link

Choose a reason for hiding this comment

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

Merge these

@quittle quittle self-requested a review July 30, 2023 13:37
@quittle
Copy link

quittle commented Jul 30, 2023

Sorry, I just realized I did not follow the how_to_mark guidelines

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
review requested I would like a mentor to review my PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants