Skip to content

Conversation

@oskarnordin
Copy link

No description provided.

Copy link

@VariaSlu VariaSlu left a comment

Choose a reason for hiding this comment

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

Your CSS is well-structured and shows a lot of thoughtfulness, especially with the use of CSS variables like --primary-color and --secondary-color. This approach makes it easier to maintain and scale your design as the project grows. The layout is clean, and the responsiveness through media queries works well. Elements like .errorMessages and .errorButton not only look good but also feel intuitive for the user.

One thing to think about: if no recipes match a filter or search, the app doesn’t give the user any feedback. Maybe adding a simple message like “No recipes found. Try adjusting your search or filters!” would help guide the user and make the experience feel smoother. Overall, you’re doing a great job, and it’s clear you’re putting care into the details. Keep building on that!

index.html Outdated


<script src="script.js"></script>
</form>

Choose a reason for hiding this comment

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

There’s an unnecessary closing tag at the very end of the file that doesn’t correspond to any opening

tag.

index.html Outdated
</label>
</div>
</div>
<div class="container">

Choose a reason for hiding this comment

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

If it's a placeholder for dynamically loaded recipes, consider adding a comment to clarify its purpose :)

index.html Outdated
<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=Kumbh+Sans:[email protected]&display=swap" rel="stylesheet">

Choose a reason for hiding this comment

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

I like your choice of the custom font (Kumbh Sans), it is adding to the visual appeal for sure!

loadRecipes(filteredRecipes)
}

// Show loader. Hide after 2 seconds.

Choose a reason for hiding this comment

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

I've noticed the loader is hidden after 2 seconds using setTimeout, which may not align with the actual data loading time. This can cause inconsistent UX. It seems possible to dynamically hide the loader once the fetch completes
showLoader(); fetch(URL) .then(() => hideLoader()) .catch(() => hideLoader());

@HIPPIEKICK
Copy link
Contributor

Can you share a link to your deployed page as well please 😇

@oskarnordin
Copy link
Author

oskarnordin commented Mar 26, 2025 via email

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.

Good job with this project Oskar! Although I have some things for you to work on, I think you should be proud of what you’ve accomplished. First, I’d like to ask you to have another look at how your page looks on mobile. It doesn’t really fit. An idea would be to decrease the padding a bit to let the content take a little bit more width (we don’t have so much width to work on on mobile to start with 😅)

Then I would also like you to clean up your code:

  • Be consistent with whether or not you’re using semicolons.
  • Remove console.log from production code.
  • Set your VSC tab to 2 spaces. It’s so hard to read with 4 spaces 🙈

And I noticed that you completed some of the stretch goals (great job!) but your loader is not showing as expected, so please have a look at that as well if you’re aiming for VG.

@oskarnordin
Copy link
Author

oskarnordin commented Mar 27, 2025 via email

@oskarnordin
Copy link
Author

oskarnordin commented Mar 27, 2025 via email

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