Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Insure Landing Page w/ React

#react
P
Briuwuβ€’ 750

@Briuwu

Desktop design screenshot for the Insure landing page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

P

@christopher-adolphe

Posted

Hi @Briuwu πŸ‘‹

You did a great job on this challenge. πŸ‘ Here are a few things that I have noticed and that you might want to check in order to improve your solution.

  • View plans and How we work are links that are styled as buttons. So your markup should be <a href="#">VIEW PLANS</a> instead of <button>VIEW PLANS</button>
  • In the navigation bar and the footer, How we work, Blog, etc these should be anchor tag as well.
  • There is a small issue in intro section on tablet. The image seems too large for this viewport width.
  • In the Footer.jsx component, you could also leverage on the map() method to generate the links by adding them to an array like you did in the Info.jsx component.

src/data/footerLinks.js

export const footerLinks = [
  {
    menuName: 'Our Company',
    items: [
      {
        title: 'How we work',
        link: '/how-we-work',
      },
      {
        title: 'Why insure ?',
        link: '/why-insure',
      },
      {
        title: 'View plans',
        link: '/view-plans',
      },
    ]
  },
  {
    menuName: 'Help me',
    items: [
      {
        title: 'FAQ',
        link: '/faq',
      },
      {
        title: 'Terms of use',
        link: '/terms-of-use',
      },
      {
        title: 'Policies',
        link: '/policies',
      },
    ]
  }
];

src/components/Footer.jsx

import { footerLinks } from '../data/footerLinks';
import { Link } from 'react-router-dom';

const Footer = () => {
  return (
    //...
    <div className="footer-container">
      {
        footerLinks.map((menu, index) => (
          <div className="footer-all" key={`menu-${index}`}>
            <h4 className='footer-title'>{ menu.title }</h4>
            {
              menu.items.map((item, index) => (
                <Link to="{item.link}" className="footer-info" key={`link-${index}`}>{item.title}</Link>
              )
            }
          </div>
        ))
      }
    </div>
    //...
  )
}

I hope this helps.

Keep it up.

Marked as helpful

1

P
Briuwuβ€’ 750

@Briuwu

Posted

Hi! @christopher-adolphe

Thank you so much for this feedback! It really helps me a lot~! (β‰§βˆ‡β‰¦)οΎ‰

0
P

@christopher-adolphe

Posted

@Briuwu,

I'm happy to help and glad to see this was helpful to you. πŸ™‚

See you on the next one.

Best regards.

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord