🤕 Need Help! This is my third challenge here and this is by far the most difficult one I have encountered. I managed to make the desktop design work but it still isn't quite good 😶. And I can't really configure how to design the mobile design. Please kindly help me 🙏🏻. I really do appreciate your help 🤩.
Tereza
@sirriahAll comments
- @DummyKenSubmitted almost 3 years ago@sirriahPosted almost 3 years ago
Hello, the css looks little bit messy to me, but I assume, that it is desktop-first.
- the line 113 should be '@media(max-width: 375px){'
- the .text-section in mobile view need the flex-direction: column
- paddings in mobile view have smaller values
- the stats part needs to be designed with flexbox too
- the image with the overlay should be made as background image with overlay blend mode, see the documentation
- in HTML, you should add the h1 and other headlines. It helps to assistive technologies and SEO. Look to semantic HTML.
- You can try to use mobile-first design
- there are more problems, but those are the biggest
What browser do you use? I know that chrome and firefox have the developer tools, where you can inspect the html/css/js. It can really helps you.
Marked as helpful2 - @tomruzickaSubmitted about 3 years ago
Another challenge. Any feedback welcome!
@sirriahPosted about 3 years agoAhoj Tome, vypadá to skvěle, jen u 'content__left' ti vypadlo pozadí - je tam špatné lomítko v cestě k souboru.
Mám dotaz: je nutné dávat prefix u flexboxu? Viděla jsem, že to používáš. Podle caniuse.com je podpora flexboxu dobrá. Já u těch prefixů nikdy nevím, jestli je mám nebo nemám použít.
0 - @iulian-cenusaSubmitted about 3 years ago
Can someone help me with that popup ? I couldn't make it work. Also can someone suggest how to better improve my code and overall design of the page ? Thank you !
@sirriahPosted about 3 years agoHello, don't use % for the width of elements. Watch this tutorial about units. It is better to use rems.
I see that you split css into the multiple files. I think, that it is not necessary in this small challenge. If you want to split, you should import the css parts into the one styles.css. And this one styles.css should be linked in the HTML file.
For me personaly is good to split the components, not the desktop/mobile/tablet view. So, make the component as a separate file, but put all media queries into this one file. It is more readable for another developers.
Happy coding!
Marked as helpful2 - @tomruzickaSubmitted about 3 years ago
Hi, I am a junior developer and I would be grateful for your feedback!
@sirriahPosted about 3 years agoZdravím Tome, 🇨🇿 vítej na FM.
- zkus příští projekt udělat mobile-first
- mrkni na BEM naming
- podívej se na semantic HTML, tahle challenge je malá, ale určitě by se tam daly použít tagy jako header, main a footer :)
Skvělá první challenge 👍 těším se na další!
Tereza
Marked as helpful1 - @DanielSereSubmitted over 3 years ago
Comments please!
@sirriahPosted over 3 years agoHello DanielSere, I saw your code. I think that it would be better to use some h1-h6 tags. Specially for the name (Victor Crest). Same for the folowers, likes and photos. Try to use better tags - see some videos or articles about semantic HTML. It is important for the SEO and for the accessibility.
Useful links - look at the code of this project made by Grace
Some reading about semantic HTML.
- freeCodeCamp blog
- [MDN Accessibility] (https://developer.mozilla.org/en-US/docs/Learn/Accessibility/HTML)
- [MDN Semantics] (https://developer.mozilla.org/en-US/docs/Glossary/Semantics#semantics_in_html)
Happy coding!
1 - @FabioAugustoDamettoSubmitted over 3 years ago
Any feedback ll be welcome / Qualquer feedback será bem-vindo :)
@sirriahPosted over 3 years agoHello,
nice work :). I see one problem - the theme switcher. In firefox I see that it is made with checkboxes, but I think that radiobuttons would be better. Checkboxes can be checked all together, but in a group of radiobuttons can turned on only one of them. In your app I could turn on all three options in one time. Happy coding!
0 - @Manmohan7Submitted over 3 years ago
Hey guys, I tried using Scss in this project. Let me know if I can improve anything. Thanks!!
@sirriahPosted over 3 years agoHello Manmohan7 :)
For your next or bigger project try to watch this super video from coder coder. She uses scss and this tutorial helped me a lot on my beginning with scss.
Your work is really good. I look forward to your next challenge.
0 - @harsh72835Submitted over 3 years ago
I have a doubt regarding the bottom circle which is overflowing can anyone have any advice for it?
@sirriahPosted over 3 years agoHello, the problem with the bottom circle is that it has not set the z-index. So the browser doesn't know, which element should be on top.
But instead of setting this, try to add these two circles into the ::before and ::after selectors. These images are not the part of the content they are only a background, so you can put them into the css.
Happy coding!
0 - @glhrmarquesSubmitted over 3 years ago
Somehow, the width: 100%; inside the .purple class in my css was not filling the entire picture. So, I set it to 101%;
Well, I have no ideia why that did not work.
@sirriahPosted over 3 years agoHello, nice work! :)
I have some suggestions:
-
the .purple div is unnecessary. You can add
background: hsl(277, 64%, 61%);
to the div .image and to the .img-desktop addmix-blend-mode: multiply;
. Result be the same and there will not be the problem with 101%. -
You don't have to use the double img tag for desktop and mobile version. Try to use
<img srcset="...">
- link to the documentation. -
try to use BEM naming in you future projects. This is small project, but naming div "image" is not the best practise in a bigger project.
0 -
- @balliets10Submitted over 3 years ago
This is my 1st attempt at html and css. Please give me feedback. Go easy on me. Thank you
@sirriahPosted over 3 years agoHello, I saw you code. I think that naming components like "img" etc. is not the best idea. Try to look at BEM naming. This is a small project, but in bigger designs you will get lost.
I think, that you can make the image from side to side with 'object-fit: cover' property.
The whole component should have the maximum width set on specific size. If you have large screen then the width is now set on 100% and it looks strange.
The border radius is better to set with px or rem units.
Happy coding 👍
0 - @TimMartin13Submitted over 3 years ago
Is there a better way to do the background blobs?
@sirriahPosted over 3 years agoHello,
I see in the code, that you put the blobs into the body background. I can't see them in a preview. I see in the develper tools, that the path to the blobs is broken.
You can put them to the background like you do or you can use ::before and ::after pseudo-selectors.
0 - @aasthaanand123Submitted over 3 years ago
I would appreciate if you all suggest me ways to improve my code since I really faced difficulties in applying the background color and at last took a shortcut(not using css) and also I faced certain problems in media queries and I'm not really sure if its written in a correct manner.
@sirriahPosted over 3 years agoHello,
Nice work. I have some suggestions:
- Not everything should be in div tag. For example for paragraphs use p tag, etc. Look at some articles or videos - list of all tags and FreeCodeCamp - semantic HTML
- Try to use BEM naming or another naming standard. This project is small, but If you will work on something bigger, you will get lost. [Video about BEM] (https://www.youtube.com/watch?v=SLjHSVwXYq4)
- As josuke0227 mentions above - the responsiveness is not good. Try to add another breakpoint. I know that in the starter files are only designs for mobile and desktop, but It would be better, if the page will be visible in all devices. [Responsive design] (https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Responsive_Design) Your browser will help you with the media queries [Responsive design mode in Firefox] (https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode)
Have a nice day :)
1