Skip to content

Conversation

@AgnesSj01
Copy link

Comment directly on the lines in the "Files changed" tab.

Copy link

@JeffieJansson JeffieJansson left a comment

Choose a reason for hiding this comment

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

Over all it's an amazing project, the colors, popups,structure and the Idea is so great!
I like how you’ve added comments in your HTML/CSS/JS, it makes the code easy to follow and good use of semantic HTML, it makes the structure clear.
I really like how you separated the popup and forms CSS into its own files, that keeps things organized and easier to review.

You should be so proud of yourself, this is a really fantastic first project! Keep up the amazing work!


// =================== BUTTON CONNECTIONS ===================

// All buttons that open modals

Choose a reason for hiding this comment

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

Nice to use same JS for all buttons, keeping it DRY and clean!

<input type="text" id="name" name="name" required /><br />
<label for="phonenumber">Phone number</label><br />
<input
type="number"

Choose a reason for hiding this comment

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

Great form! For the phone field, a thought/tweek could be to consider switching from type="number" to type="tel". It prompts mobile browsers to display a telephone keypad, making it easier for users to enter phone numbers. of course

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, i will change that!


/* Blur effect when nav or modal is open */

.blur {

Choose a reason for hiding this comment

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

Nice touch with the blur effect when the menu or popup is open!

Copy link
Author

Choose a reason for hiding this comment

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

<3

index.html Outdated
Comment on lines 168 to 177
<p>
Our coffee is certified by internationally recognized labels such as
Fairtrade, KRAV, and Rainforest Alliance – a guarantee of both great
taste and a responsible choice. The result is high-quality coffee you
can truly enjoy with a clear conscience.
<!-- Same logic as popup 1:
- close-btn: used by JavaScript to attach the close action.
- data-target="box2": closes <div id="box2"> when clicked.-->
<button class="close-btn" data-target="box2">Back</button>
</p>

Choose a reason for hiding this comment

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

Lovely popups! I noticed in Popup 2 the close button is placed inside a <p>. Was it inside the <p> for a specific styling reason?

Copy link
Author

Choose a reason for hiding this comment

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

No, that was a mistake, thank you for pointing it out

color: #fff;
}

.top-nav a:hover {

Choose a reason for hiding this comment

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

I noticed that this rule makes the opening hours and contact text change color when hovering, since your header background is also black, the hover state makes the link disappear (black on black). if this is intentional styling please ignore this comment :)

Copy link
Author

Choose a reason for hiding this comment

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

It’s an intentional design choice, but as you said, it might not be great for visibility. I’ll change it, good that you pointed it out :)

@HIPPIEKICK
Copy link
Contributor

Please share a link to your deployed site as well

@AgnesSj01
Copy link
Author

Please share a link to your deployed site as well

I sent the link earlier in my feature #41, did I do something wrong?
https://legacy-coffee.netlify.app/

Copy link
Contributor

@HIPPIEKICK HIPPIEKICK left a comment

Choose a reason for hiding this comment

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

Hi Agnes!
Very neat with the form in a modal box ⭐ Everything works as expected, just make sure to always choose https for the form action and not http. Right now the form doesn’t post anything to the bin because of security issues.

Keep up the good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants