Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 3 years ago

Huddle repsonsive landing page using CSS Gird

accessibility, contentful, material-ui, materialize-css, semantic-ui
Ceejay•20
@ChijiokeElijah
A solution to the Huddle landing page with a single introductory section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


It was diffcult building out the mobile design(375px), I don't know if I did the right thing on this section, please help me check it out. How can I center the facebook icon, it is out of place compared to the others?

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

  • Ceejay•20
    @ChijiokeElijah
    Posted almost 3 years ago

    Thanks everyone, I was able to make it better with your suggestions.

  • Alex Holguin•410
    @JAleXDesigN
    Posted almost 3 years ago

    Good job, completing the challenge!! I recommend that you place each section inside a container with a maximum width so that all the content is centered horizontally for instance

    <main class="container container-main">
           <div class="col-img">
           </div>
           <div class="col-text">
           </div>
    </main>
    <footer class="container-main">
    </footer> 
    

    and in the CSS:

    .container-main {
        margin: 0 auto; //or use flex to center
        max-width: 1200px;
        width: 90%;
    }
    

    Set the main image to width 100% so that it is adaptable

    .col-img img{
        width: 100%;
    }
    

    And the social network icons you can align to the right or center using flex and media queries so that on large screens it aligns to the right and on small screens it aligns to the center. you can achieve it like this:

    <footer class="container-main">
        <div class="social-icons">
            <i class="fa fa-facebook" aria-hidden="true"></i>
            <i class="fa fa-twitter" aria-hidden="true"></i>
            <i class="fa fa-instagram" aria-hidden="true"></i>
        </div>
    </footer>
    

    and in the css

    .social-icons {
        display: flex;
    }
    @media (min-width: 982px) {
        .social-icons {
            justify-content: end;
        }
    }
    @media (max-width: 981px) {
        .social-icons {
            justify-content: center;
        }
    }
    

    It is a quick example, I hope I have helped you. Congratulations!!

  • Benjamin Mancuello•40
    @Mancux2premium
    Posted almost 3 years ago

    Hello, I was reviewing the code, I solved the problem by placing a {margin: 2px in the before facebook}, try it and tell me if the result convinces you. Greetings.

    .fa.fa-facebook:before { margin: 2px; }

  • Miroslav•180
    @miroslavdurin
    Posted almost 3 years ago

    Hello Ceejay, congratulations on finishing this project. There are couple of ways to center facebook icon, I would probably center all of icons by using flexbox on footer .fa class:

    footer .fa {
    display: flex;
    justify-content: center;
    align-items: center;
    }
    

    Good job and happy coding :)

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

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit all CSS, SCSS and Less files in your repository.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

How does the JavaScript validation report work?

When a solution is submitted, we use eslint to run an automated check on the JavaScript code.

The report picks out common JavaScript issues such as not using semicolons and using var instead of let or const, among others.

The report will audit all JS and JSX files in your repository. We currently do not support Typescript or other frontend frameworks.

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