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

News-homepage

Hira 130

@hirashabeer

Desktop design screenshot for the News homepage coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

So,,,this was my second junior project on FEM.I am proud of experimenting with grid . Proud of learning to make important hamburger feature on mobile sizes .

What challenges did you encounter, and how did you overcome them?

**Conquering the Hamburger! **

Building a responsive website can be tricky, but I just tackled a tough one . I wanted to implement a hamburger menu but using display: block and none for animation wasn't working ‍♀️. Then, it hit me! By setting the popup menu to position: fixed, I could achieve the desired slide-in effect on hover ✨. This is a great learning experience, and next time, I'll explore integrating the navigation bar itself into the popup menu for a cleaner design . Onward to responsive web awesomeness!

What specific areas of your project would you like help with?

Beyond the hamburger menu, I'm keen to learn more about responsive web design best practices. Techniques like media queries sound promising for adapting my layout to different screen sizes. I'm also open to exploring responsive image optimization and accessibility considerations. ♿

I truly appreciate any positive criticism – it helps me refine my work! With these improvements, I'm excited to create a truly responsive and user-friendly website.

Community feedback

Hira 130

@hirashabeer

Posted

hi @0xabdulkhalid ,,,could you please spare a moment to REVIEW MY WEBSITE ,and suggest me some improvents..and also help me in finding the mistake that when i previiew my site its perfect but on screenshot why does it layout gets distorted

1

@0xabdulkhaliq

Posted

Salam Alaikum @hirashabeer, The layout seems to be distorted because of the usage of height: 95vh for #container element. You don't need to add width: 100% because div is a block level element so it will consume 100% of available space.

Additionally you need to convert those percentage (%) for padding into relative units like rem or em using percentage will highly distort your layout.

If you need to design the solution with maximum resemblance of original design then you can try the Pixel Perfect extension. It would help you to place the design images provided by FEM to place that on top your website where you can compare yours with design image.

You can see the results of using Pixel Perfect for my submission as an example of how it helps us to design much better looking websites.

If you have any questions or need further clarification feel free to reach out to me.

Marked as helpful

0
Hira 130

@hirashabeer

Posted

Walaikum Assalam @0xabdulkhalid ! the pixel perfect isn't working for me as the design images are smaller than the web window. how can I use and compare it then? Is it possible I'm overlooking something obvious? Is there a key detail I'm not considering?OR it is just as it is ?

1

@0xabdulkhaliq

Posted

Oops @hirashabeer, I forget to mention a thing about using it.

You first need to find the resolution of the Design image provided by FEM. For example: if it would be 1400x900 then you need to open dev mode on browser then toggle RWD (Responsive Design Mode).

It will give you some base presets of resolution of devices, You can set the custom width and height on RWD Panel. If you set 1400x900 then it matches the resolution of Design image.

Once you done it, you can use Pixel Perfect extension to place the Design image on top of you webpage. Now the Design Image and the Viewport both will be the same and allows you to can design your solution efficiently.

1
Hira 130

@hirashabeer

Posted

salam @0xabdulkhalid , So sorry to bother you again, but....Resizing browser window shrinks design image too ,I am trying to help myself by internet but couldn't do so I wish I could send you a picture ,,,, how to fix it ?

1

@0xabdulkhaliq

Posted

Wa alaikum salaam @hirashabeer, I think you could use "Pixel Perfect Pro" for Firefox.

You don't need to shrink the viewport, just make it as same as the Design image's resolution.

Take a look at this example video. (Added as a comment for your commit)

The design image's resolution is 1440x800 so set the viewport as same as that. That's it, once you placed the image you can start working!

Marked as helpful

1
Hira 130

@hirashabeer

Posted

yes @0xabdulkhalid ,, I didn't shrink the window i resized it to 1440x900 as the design image ,,and the design image also got shrinked i use chrome ,,and i am use to of it,,

0

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