Design comparison
Solution retrospective
It takes me such long time to figure out how to change the svg's color. Everybody, can you tell me where and how to master box-shadow quickly. I feel it's very complicated to master box-shadow. Thank you so much.
Community feedback
- @AdrianoEscarabotePosted about 2 years ago
Hi MX, how are you?
I really liked the result of your project, but I have some tips that I think you will like:
1- All page content should be contained by landmarks, you can understand better by clicking here: click here
We have to make sure that all 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
overpx
to have your page working better across browsers and resizing the elements properlyThe rest is great!!
Hope it helps...👍
Marked as helpful0@xingxing-progPosted about 2 years ago@AdrianoEscarabote I feel good. Thanks for your advice. I totally agree with your point. You know I learnt python first, then learned some java, then I was interested in web development several months ago. It's kind of easy to write html, even css in couple of days compared to programming language. However, the accessibility, the semantic and landmarks are so tricky, it demands me to think how to category the contents and how to organize them. Moreover, the css's border-shadow, pseudo class, animation, responsive website, gosh, they are so twister and tricky. Programming language like python, java, even javascript demand you have strong logic and algorithm mastering, but all these require you have a very strong category and organization skills. I don't know whether my intuition is correct or not. I checked out some of your projects. Your front-end projects all look very clean and neat. Great job!!! Please give me more advice and good resources to master html, and css and javascript. Plus, javascript is a little bit tricky. Thank you so much.
1@AdrianoEscarabotePosted about 2 years ago@xingxing-prog, to deliver a clean and semantic code with CSS and HTML, requires a lot of organization, but this we gain with time, you can see that in my old challenges, my codes were not very good, but I managed to improve a lot in the last challenges.
I'm studying javascript at the moment and it's been an incredible experience, one piece of advice I give you is that you practice a lot
0 - @DanielArzaniPosted about 2 years ago
Hello, naturally its best to learn how to use the tools that you'll build projects with but there're some that are very math-y and can get complicated when trying to do something a bit more advanced. (e.g font-size: clamp(1rem, calc(0.96rem + 0.19vw), 1.13rem); )
For these kinds of situations there will always be lots of online tools you can use; for box shadows you can use something like a generator to make your own: https://html-css-js.com/css/generator/box-shadow/
or you can look at other peoples box shadows and just copy it: https://getcssscan.com/css-box-shadow-examples
Marked as helpful0@xingxing-progPosted about 2 years ago@DanielArzani Thanks for providing the advice and tools. I played the generator a little, it's very simple to have it. Well, I often did it on the second way to search some box shadows example and copy it. haha. Thank you bro.
0 - @VCaramesPosted about 2 years ago
Hey @xingxing-prog, great job on this project!
Regarding your question, you can just use a "Box Shadow Generator". Here's a link to the one I use:
Happy Coding!
0
Please log in to post a comment
Log in with GitHubJoin 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