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

Responsive landing page for order page with css

@lawal2000

Desktop design screenshot for the Order summary component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


still finding difficulties in arranging objects in css

Community feedback

Lucas 👾 104,560

@correlucas

Posted

👾Hello @lawal2000, Congratulations on completing this challenge!

Great code and great solution! I’ve few suggestions for you that you can consider adding to your code:

The background wave image is missing and here’s the step-by-step to add it.First of all add the image as a background inside the body this is the code for that: background-image: url(../images/pattern-background-desktop.svg);

Then you add background-repeat: no-repeat to avoid the background repeating and background-size: contain to make it fit full width and center with the card this is the best choice, but an alternative to resize it is to use background-size: 125%, Here’s the code with the modification and the image applied as background:

body {
    background-size: contain;
    background-image: url(./images/pattern-background-desktop.svg);
    background-repeat: no-repeat;
    background-color: #edf0fb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 10px;
}

✌️ I hope this helps you and happy coding!

Marked as helpful

0

@lawal2000

Posted

@correlucas Hi, thanks so so much for the correction, i got every bit of it right. and yes i missed the background wave. But please, can you put me through how to add google fonts to my code? it is not working for me or let me say I don't know how to use it. More so, please, can you give me a better guide on how I was to arrange the "Annual Plan" and the amount below it because I believe I didn't stack those details well incase it is a working website. .

0
Adriano 34,000

@AdrianoEscarabote

Posted

Hi Sherif Lawal Itunu, how are you?

I really liked the result of your project, but I have some tips that I think you will like:

1- We have to make sure that all the content is contained in a reference region, designated with HTML5 reference elements or ARIA reference regions.

Example:

native HTML5 reference elements:

<body>
    <header>This is the header</header>
    <nav>This is the nav</nav>
    <main>This is the main</main>
    <footer>This is the footer</footer>
</body>

ARIA best practices call for using native HTML5 reference elements instead of ARIA functions whenever possible, but the markup in the following example works:

<body>
     <div role="banner">This is the header</div>
     <div role="navigation">This is the nav</div>
     <div role="main">This is the main</div>
     <div role="contentinfo">This is the footer</div>
</body>

It is a best practice to contain all content, except skip links, in distinct regions such as header, navigation, main, and footer.

Link to read more about: click here

2- Why it Matters

Navigating the web page is far simpler for screen reader users if all of the content splits between one or more high-level sections. Content outside of these sections is difficult to find, and its purpose may be unclear.

HTML has historically lacked some key semantic markers, such as the ability to designate sections of the page as the header, navigation, main content, and footer. Using both HTML5 elements and ARIA landmarks in the same element is considered a best practice, but the future will favor HTML regions as browser support increases.

Rule Description

It is a best practice to ensure that there is only one main landmark to navigate to the primary content of the page and that if the page contains iframe elements, each should either contain no landmarks, or just a single landmark.

Link to read more about: click here

Prefer to use rem over px to have your page working better across browsers and resizing the elements properly

The rest is great!!

Hope it helps...👍

Marked as helpful

0

@lawal2000

Posted

@AdrianoEscarabote yes, for real, i also noticed I am finding it difficult to label my code in the sections you mentioned. okay, for instance, chrome home page doesn't have header or what do you think?

0

@Faris-Thibani

Posted

Well done there!

My name is Faris.. this is a very supportive community.. i.e. keep practicing it's how we learn. Someone advised me earlier about arranging elements to use flex display then align --content center and justify-content center. hope you find this useful. for example, when you set the margin to auto: to center horizontally you could use flex to align. You did a great job! Keep going. If you want more feedback then you let me know & I will assist you.

Marked as helpful

0

@lawal2000

Posted

@Faris-Thibani okay, noted, thanks. Noted

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