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

Workit Landing Page

P
J Alex 60

@Jalex-Mc

Desktop design screenshot for the Workit landing page coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Took me around 8 hours to finish this one. This one was a doozie, getting the curved elements and positioning the images made me pulled my hair out. I originally had the top swirly images in a Flexbox with the middle blurb and phone image, but the right image made the page scroll right to reveal white space after spending an hour trying to figure out how to remove the white space without messing up the curved element and the phone overhang, I move the images to be parented to main instead of the hero section to escape the overhand property.

I used z-index to get them back over the hero section. This would allow me to keep my curved element(which took many hours to figure out) and the swirly designs. Ending up getting white space again when everything was said on done the upper right swirl worked before and now it stopped even though I had overflow set as hidden, so I just downloaded the cut off version from figma.

When working on the tablet design I noticed that the middle section was laid out differently so I have to add the h3 and paragraphs under the numbers into their own flexbox so I could get the mobile design down. A lot of trial and error. So in all, getting initial layout took only 90 minutes and getting the curve and swirls down took many hours :) Next time I'm just going to use a SVG.

After this, I'm going to focus more on responsiveness of flex as the site works at the breakpoints, but not really in the in-betweens, so I believe I've been going about it in the wrong manner, going to mess around with max H and W values next time to see if that will be more responsive. Also going to try SCSS next so I can compartmentalize the CSS when dealing with the Media Queries so I can reduce the size as I was getting a little cross-eyed with all the lines of CSS.

If anyone could give any tips on my CSS as I believe I went about the responsiveness in the wrong manner

Community feedback

P

@emestabillo

Posted

Hey @tbeagle2, congrats on submitting your project! Here are some recommendations.


CSS:

  • Add a CSS reset before your custom styles
  • Use mobile-first approach. Easier to scale up elements rather than making large items fit small screens.
  • Use relative units such as rems instead of px.
  • Avoid hardcoding width and height as much as possible. It usually leads to overflows or content getting cut off. The .mid-section of the project doesn’t look right on mobile screens up to 1305px
  • Position the spirals absolutely to their nearest container. Right now, all of them are against the body
  • There’s no space between the footer logos and the end of the page

Accessibility:

  • Apply for access should be an a tag since it links to another page. Avoid using ‘p’ tags for interactive elements.
  • Social logos are also meant to bring the user to another page.
  • Look into the use of the img tag vs pseudoelements. Example, the spirals are purely decorative and don’t really add anything meaningful to the document. Consider placing them as a :before or after pseudoelement.
  • Use more descriptive terms for the alt attribute. This text will be displayed if the image do not load. Example, logo-light doesn’t tell me anything, but WorkIt logo will tell me the meaning of the image
  • Sections are a a better substitute to divs for related content on the page.

General:

  • Use one repo per project. A monorepo for all the challenges can get complicated very quickly.
  • Check out Kevin Powell's videos on YT as a resource for responsive layouts.
  • While you’re learning, focus on the quality of the output - the translation of design, accessibility, best practices, etc. - rather than timing yourself. Speed comes naturally later when you’ve had a number of projects under your belt.

Hope this helps!

Marked as helpful

2

P
J Alex 60

@Jalex-Mc

Posted

@emestabillo Thank you so much for your feedback! I'll take all of it to heart.

CSS - I didn't know about resets, I'll use those next time.

I was using px mostly to get it as close to the figma design as possible, also it's been a while since I learned CSS and I forgot how the rem unit worked so I ignored it, I'll use rem in the future for now on. I'll figure out how to get the rem unit as close to the px unit in the figma file, i'll probably use the calc css function to convert the units to match in the based design if my googling was correct.

I'm going to use max-width from now on as that seems to be the correct responsive property. min-width would create the same issue I believe.

The spirals are on their own because I was having issues getting them positioned correctly, but now I understand position more deeply, I'll put them in the correct elements, I was brute forcing them. I'm getting a space in all the sizes after the footer, I don't see it on my end?

For the p tags with interactive elements, got it. I was wondering what was the best tag to use, I was starting to default to the span tag, but i'll use anchors. I wasn't thinking about those elements linking to another page, so i'll be more mindful now.

For everything else, I'll most definitely implement every note.

Since I plan on doing every premium challenge I feel like that it would crowd my github, but I can compartmentalize them instead of having them in a single project. I never had more than two things on my github so I'm not sure how it'd look.

For the timing, I was just timing myself since that's what the instructions said to do, but you're right, I was starting to get negative based on how long it was taking.

Thank you for your feedback! I really needed it.

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