Basant Soni
@SoniBasantAll comments
- @SoniBasantSubmitted about 1 year ago@SoniBasantPosted about 1 year ago
You will see red colour border with exclamation circle when input is wrong.
You will see green colour border with check mark circle when input is wrong.
Also, password strength should be good. : )
0 - @ecemgoSubmitted about 1 year ago@SoniBasantPosted about 1 year ago
This is great.
How do you get exact sizes- padding, margin, font-size, width and most important height of the page?? Many of my challenges don't look good due to wrong sizes. Please help me out. : (
1 - @jmahamedSubmitted over 1 year ago
I will post the mobile version soon
@SoniBasantPosted over 1 year agoGood work. 👏👏
I am making same. So I don't have suggestions, I have questions if you please answer. 🙏
-
How do you get white footer logo and also head logo for fevicon. These are not in my download file. 🙁
-
I was given svg images for social media icons so having difficulty in changing colour on hover. And you used i icons. 😇 That's clever. But will be guide me how to change colours on hover while using svg. Till now no success.
2 -
- @ecemgoSubmitted over 1 year ago@SoniBasantPosted over 1 year ago
When I first saw this in comparison box, I thought why you did this!!
Then I saw the that button and realized what you did there. 😀
Colour selection for light theme is good.
Good job. 👏👏
PS: I need to follow some advice from advice generator. Also, need to make some projects in Frontend Mentor. 🏃♂️🏃♂️
1 - @jimmehhuangSubmitted over 1 year ago
Initially I attempted to use the source code and use just Tailwind and vanilla HTML, but I ended up incorporating React/Vite since I'm more practiced at it. For this challenge:
-When would one consider Flexbox as opposed to CSS grid? I played around with both and ended up using Flexbox because CSS grid felt more complicated to format statically with grid. -I divided the QR code card and the footer text into separate components. Does it needlessly complicate it this way versus just putting the text into the main App.jsx?
@SoniBasantPosted over 1 year agoHi, Mate. 🙋♂️
Your project is looking good.
As for the question of flex OR grid, I recommend -
-
Flex-box when you have components in one line either in one row or one column.
-
Grid for more than one line. You will have rows and columns which are easy to handle in grid.
Hope this is helpful. 🙂
1 -
- @ObiechinaJefferySubmitted over 1 year ago
I would like to know an efficient way to centre div's
@SoniBasantPosted over 1 year agoHi, 👋 Your project is good.
As for your question of center a div-
display: flex; align-items: center; justify-content: center; min-height: 100vh;
Use above code in body.
Remove
min-height: 100vh;
if using elsewhere.-
Use
text-align: center;
in p and h5 -
Change h5 to h1 as one heading is necessary.
-
Wrap your div of
class="card"
in<main></main>
tag to remove landmark error. -
Wrap your div of
class="attribution"
in<footer></footer>
tag to remove landmark error.
Hope I am helpful. 🙋♂️
Marked as helpful0 -
- @JosegiddSubmitted over 1 year ago
I wasn't able to get the matching colors for the text . I wasn't able to get the exact dimension as I had irregular dimensions compared to the design .
@SoniBasantPosted over 1 year agoHi, 🙋♂️You made a good project.
I wanna help you to reduce accessibility report and your question of course.
As for your question regarding text colour 🎨-
- Use
Dark-blue: hsl(218, 44%, 22%);
for "Improve your frontend..." - Use
Grayish-blue: hsl(220, 15%, 55%);
for "Scan the QR code..."
Now about your report 📝 you got; In semantic coding, we need to take care of-
-
Landmark - Change
<div class="Qr">
to<main>
. This is for landmark problem. There should be one landmark. Don't forget to change closing tag. -
Level-one Heading - There should be at least one heading. So change
<p class="text">
to h1. No need to give class and handle font-size in CSS. -
Use padding in place of
<br>
. This will improve your dimension problems. -
Avoid px in CSS as much as possible. This creates problem in responsiveness. Instead use rem. 1 rem = 16px.
Hope I am helpful. Feel free to ask if you have more questions. 👨💻
1 - Use
- @Val1onSubmitted over 1 year ago
Open for feedback to make it better
@SoniBasantPosted over 1 year agoYour project is so good that I couldn't found anything to give feedback in desktop view. So I switched to mobile view.
You don't use media query at 375px.
As given in the style-guide, Mobile Version should be at 375px.
In that image of mobile-design.png, p have 4 lines, your project have 5. It means you need to work on padding and font-size to make it as per design.
Other than that, very good project. Great work : )
Marked as helpful0 - @andres-avSubmitted over 1 year ago
Hello Everyone!
I just posted the solution for this challenge, I had a lot of fun doing it and resolving some margin and padding "puzzles".
My goal was to make this challenge pixel perfect even with the paragraphs break lines. However, I am not sure if this approach has made my css larger than what it's needed.
Please, if you have any feedbacks about this or any other suggestions, feel free to let me know.
@SoniBasantPosted over 1 year agoYour hard work shows in this project. Very good job.
As for the suggestion -
- Use h1 for
<h2>SEDANS</h2>
. One heading is necessary in semantic coding. That's why the warning Page should contain a level-one heading. You can handle font-size in CSS. - Use flex in body so your solution will be at center.
body { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
Other than that no suggestion. Good work. : )
Marked as helpful0 - Use h1 for
- @LoveAhirSubmitted over 1 year ago<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@100&display=swap" rel="stylesheet"> <link rel="stylesheet" href="styles/index.css"> <link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png"> <title>Frontend Mentor | QR code component</title> </head> <body> <section class="main-body"> <div class="outer-div"> <img src="images/qr.png" alt="qr-code"> <h3>Improve your front-end skills by building projects</h3> <p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p> </div> </section> <footer> <div class="cta"> <p>Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.</p> <p>Coded by <a href="#">@LoveAhir</a></p> </div> </footer> </body> </html>@SoniBasantPosted over 1 year ago
Hello mate, You made a decent card solution. It also have some scope to improve.
- Change
<section class="main-body">
to just<main>
. - As given in style-guide.md -
Layout
The designs were created to the following widths:
Mobile: 375px
Desktop: 1440px
So use media query at 375px. You used at 600px.
-
Change h3 to h1 then change font-size of h1 as you need from CSS. As one heading (h1) is necessary.
-
Use
Dark-blue: hsl(218, 44%, 22%);
for h1
and
Grayish-blue: hsl(220, 15%, 55%);
for p- Change
border-radius
for .outer-div and .outer-div img to make them more similar as you can see in design comparison. You can do this in.outer-div img
. Removepadding-top
.
.outer-div img{ width: 88%; border-radius: 10px; }
Hope I am helpful. Good Luck. : )
0 - Change
- @sheetal1409Submitted over 1 year ago
Could anyone please help me fix the white space issue for mobile width 375px .
@SoniBasantPosted over 1 year agoHey Sheetal,
I made some changes and send a pull request to you in your GitHub. Please see this and and merge it. This will improve your code.
- It is better if you use a separate file for css as style.css and add link in head section of html file. It is easy to write, maintain and debug. I add a commented link in your html file for this. Just copy all that is inside of style tag and paste it in style.css file
- Don't use dot (.) with body.
- Use background-color in body.
- Use flex properties in body so you don't need to use
width: 70vw;
andheight: 80vh;
in .main - Use rem in place of vw in .main-content for width as
width: 15rem;
- Use main in place of
<div class="main">
. - Change p of "Improve your front-end..." to h1. As one heading is necessary.
- Use 375px in place of 400px in media query.
- Don't use
width: 70vw;
,height: 80vh;
,margin: auto auto;
andmargin-top: 60px;
in main. As card is in the center and we are using flex for this.
As this is your first solution here, you learned a lot. Keep going. Keep learning.
If you need more help, please feel free to ask. : )
Good Luck.
You can check my solution of this project in GitHub if you wanted.
Marked as helpful0 - @Kiet-WorkspaceSubmitted over 1 year ago
Please give me suggestions to continue to develop skills. Thanks a lot
@SoniBasantPosted over 1 year ago- Add flex in .product-price, so that your .product-price p will be at center as compared to .product-price h1.
display: flex; flex-direction: row; align-items: center;
- Add
line-height
in .preview-product p. Also adjustfont-size
in this so that second line end with "by", third line end with "Creater". And there is no fifth line. So work on line-height, font-size and paddings in h1, h2 and p.
Size of full card is exactly same. Kudos to you for this.
Good work : )
Marked as helpful0