Responsive landing page with HTML and CSS using Bootstrap

Solution retrospective
- I couldn't complete the right top (supposed to be a triangle shape) for the topdown menu for the mobile design.
- Any advice on how to expand padding/margin scales (they only have until 5 i.e. px-5) on HTML would be appreciated.
- Used all suggested fonts from Style guide, but when font size is set larger the font style is lost (it goes back to default font). The heading (WE ARE CREATIVES) is the example.
- Other than that it was a fun experience, learned a lot about Bootstrap. I chose this project specifically to practice Bootstrap and to get design ideas with colors. Would love to hear feedbacks from the others! Thanks for reading! :D
Please log in to post a comment
Log in with GitHubCommunity feedback
- @elaineleung
Hi HaYeong, good job completing this website layout! 🙂 I'll try to answer some of your questions:
-
About the triangle, I used a pseudo element in my solution, like this:
nav::before { content: ""; margin-left: auto; position: relative; top: -1.5rem; border-width: 0 0 1.5rem 1.5rem; border-style: solid; border-color: var(--clr-white) transparent; display: block; width: 0; }
-
About the styles being gone when setting a larger font size, are you referring to going from mobile to desktop view and having the styles overwritten? I tried checking out your code to see where the media queries are, but I couldn't find any; I just see that you have a separate mobile and desktop stylesheet. In any case, I think as long as you specify the desktop styles in the media query (or mobile styles if you had a desktop-first approach), then that should be OK.
-
About paddings and margins, I notice you have a fairly large padding in the hero section! I generally don't suggest using large paddings as that could produce issues at smaller breakpoints. For me, I used responsive width properties instead to keep the content centered with enough space around the text.
Feel free to check out my solution here: https://www.frontendmentor.io/solutions/responsive-landing-page-with-cube-css-zJrpzUIQqd
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