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

Mobile first then coded for dekstop, html, css, js.

Pramath T Singh•90
@Halo-last
A solution to the Agency landing page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I've had quite the journey creating this website. At first I thought it would be easy but slowly as I started building the sites layouts and also on how to re-size based on the resolution and grids. It started it hit me that all these variables have to be considered while trying to build a site. Still I'm not that good with optimization on the size adjustment on sites so I would apperciate if ppl would give me poineters in that.

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Raymart Pamplona•16,040
    @pikapikamart
    Posted almost 4 years ago

    Hey, great work on this one. Layout in mobile seems fine as well for the desktop layout. Though there is a bug, when you toggler the hamburger menu in mobile, then close the dropdown, then if you go to the desktop layout, the navigation links disappears. You might want to check that one out.

    Some suggestions would be:

    • I saw in your css, declared in the * selector, you have overflow-x: hidden on it, you don't want this sitting on the * all selector. Remove those.
    • I also lots of usage using vh unit in the height property. I would not recommend using this unit, because it is really hard to maintain, as this will only take unit based on the screen's viewport. It might look good to where you are coding, but if a user have small screen size, it will become distorted, changed or destroyed. Use rem unit instead. If you try to inspect your layout in dev tools at the bottom, you will see that the screen hides the navigation links, since you are using vh unit on the header's height, it will only take what is left of the screen, minus the dev tools dimension.
    • There are usage of display: inline-flexbox that is not a valid value, display: inline-flex is the correct.
    • On your .topnav selector, the sunnyside link have a display: block property, that is why, even if I hover anywhere on the sunnyside x-axis, I can trigger it. You don't need to change its display.
    • The mylinks selector that holds the navigational links don't need to have position: absolute. I am talking about all on the desktop layout. It would be better to remove that property on the desktop view since it doesn't really need it.
    • I don't know why the links on you header doesn't show the outline when I tab on those. You might want to test those one out.

    Sorry for not giving a direct solution to those what I see, I am just troubled about your css that is why it is hard to give some solution about it, that is why I am just pointing those things out :>

    • Avoid multiple usage of h1 tag. You just need at least 1 h1 per page on a website.
    • The alt text on the image of the people on the testimonial section could have their name as the alt text like, alt="Emily R".
    • When using heading tags, do not jump from h1 to h3 include an h2. Use heading tags incrementally by one level. h1 to h2 to h3. ...
    • On the footer section, the a tag that holds the social media icon should have an aria-label. aria-label is used by assistive techs to describe what is that element text, especially when an element only contains an image. On your case, for example, the a tag that holds the facebook svg should have aria-label="facebook".
    • On mobile state, the hamburger menu should have used button element and not a tag. a tags are used for links and that hamburger menu is just a control element and not a link element. That is why button is used with it, along with a aria-expanded attribute, if you are supporting accessibility.

    Some issues I have not a direct solution because of like what I said, but just a reminded for next project or challenge, always check using dev tools, try changing the screen size, test if your layout will still look good in those different screens.

    Still, great work on this one.

    Marked as helpful

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