Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
7
Comments
3

Luis De Freites

@luismadfMadrid, Spain180 points

I’m a mysterious individual who has yet to fill out my bio. One thing’s for certain: I love writing front-end code!

Latest solutions

  • Fylo Landing Page

    #accessibility#react#vite#bem

    Luis De Freites•180
    Submitted over 1 year ago

    0 comments
  • FAQ accordion

    #react#vite#bem

    Luis De Freites•180
    Submitted over 1 year ago

    1 comment
  • Newsletter Signup Form using React and Vite

    #react#tailwind-css#vite#react-router

    Luis De Freites•180
    Submitted over 1 year ago

    0 comments
  • Sunnyside Agency Mobile First

    #bem

    Luis De Freites•180
    Submitted over 3 years ago

    0 comments
  • Stats preview card component


    Luis De Freites•180
    Submitted about 4 years ago

    0 comments
  • Loopstudios landing page


    Luis De Freites•180
    Submitted over 4 years ago

    1 comment
View more solutions

Latest comments

  • Faruk Olawale•300
    @Olawalefaruk
    Submitted over 1 year ago

    faqs

    #accessibility
    1
    Luis De Freites•180
    @luismadf
    Posted over 1 year ago

    Hello Faruk,

    Congratulations on finishing this challenge! 🎉

    The image isn't showing because a path problem, for some operating systems a path like this "/images/image.svg" it's ok, but for other isn't (for example the ones that we use to upload our websites).

    To fix this, it's as simple as adding a dot (.) at the beginning of your image path. This indicates that the path should be relative to the current directory, making it more universally compatible across different operating systems.

    /* Layouts styles */
    
    .background {
      background-image: url('./images/background-pattern-mobile.svg');
    
    Marked as helpful
  • Moulaye-dagnon•220
    @Moulaye-dagnon
    Submitted over 1 year ago

    newsletter-sign-up-with-success-message With react.js

    #react
    1
    Luis De Freites•180
    @luismadf
    Posted over 1 year ago

    Hi,

    I recently completed this challenge too :)

    I can help with some of the stuff you are asking about, but keep in mind there are many ways of doing things with code.

    1. How to display the "Thanks" page:

    Here the first thing I can recommend, is a little detail but it could be useful for people that are reading your code is to use a descriptive variable name instead of showPage, it could be something like isEmailConfirmed.

    Besides this there are many ways of doing this, in my case I used React Router because in my mind I made sense to have different pages for this with differents URL's, but your case may be different. So I don't think you did a bad approach.

    2. How to change the image src:

    In my case I was using tailwind CSS which includes some utilities classes that make this really easy, using CSS media-queries instead of JS code will help your app performance, save you some lines of codes and complexity in your app.

    This can be different depending on your CSS skills and the way you and your team are structuring the code of the app .I saw your code and you are using media-queries around your app already so I think it makes sense to use it for this case too.

    Maybe you can try using two images tags instead of one?

    This is the link to my code if you want to take a look.

    3. The App.jsx file:

    First, I'll recommend to use a code formatter tool such as Prettier so it will make your code more readable.

    Second, It seems that you are creating the screen for the first page but then using a component for the "Thanks" page, my recommendation is to avoid "creating screens" in the App.js unless is a really small app, a common practice in the development community is to create a 'page' folder and place your pages there.

    I hope this feedback can be helpful for you.

    Greetings!

    Marked as helpful
  • Matt Jones•30
    @MattJones0813
    Submitted almost 4 years ago

    Sunnyside Landing Page with Grid/Flexbox

    1
    Luis De Freites•180
    @luismadf
    Posted almost 4 years ago

    Hi Matt,

    I'm currently working on this challenge right now. I want to help you with the following questions:

    "JS to make the header sticky" This can be easy solve with a "position: sticky" and it will consume way less resources.

    "and an issue where the grid is responsive but one of the divs is a different size @ 50em/ 36em": I personally love to use css grid so I just gave them a grid-template-row: 3fr (for the text div) and 2fr (for the picture one).

    I hope it helps and great job! Greetings!

    Marked as helpful
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub