@Albertoflj
Submitted
Hi! Is there any way to order all components of a grid to be in a column, without setting each one individually? Thank you in advance!
@ringm
@Albertoflj
Submitted
Hi! Is there any way to order all components of a grid to be in a column, without setting each one individually? Thank you in advance!
@ringm
Posted
Hey! Amazing job, the site looks exactly like the design. Congatulations!
Regarding your question: if you define your grid to be 1 column wide, all the child elements of the grid will fit like you want.
.container {
display: grid;
grid-template-columns: 1fr;
}
Keep up the good work!
@mandeephub
Submitted
pls provide a detailed feedback Im coding for this platform for first time so pls be specific about the bugs thanks in advance
@ringm
Posted
Looks good! Congratulations on completing your fist project.
My only suggestions would be vertically centering the content for tablet/desktop devices.
Looking forward on seeing your next projects!
@luisdevworks
Submitted
Hello, any feedback is welcome!
@ringm
Posted
Looks good! Just remember for accesibility reasons, you should have a <label>
for every <input>
.
Your form should be structured like this:
<form action="/action_page.php">
<label for="firstName">First Name</label>
<input type="text" name="firstName" id="firstName" value="First Name">
</form>
More info on labels here
Happy coding!
Please give me feedback how can i improve it
@ringm
Posted
Hey Nazar, congratulations on submitting your first challenge. It's looking good! I have some suggestions to help you improve it:
.content-wrapper
, consider using something like width: min(90%, 1100px);
and margin: 0 auto;
. With these two you'll get a fluid and centered container.header
, remove the flex: wrap;
. Instead, try flex-direction: row;
and when it gets too narrrow you change it to flex-direction: column;
flex-wrap
from .gallery-wrapper
and also remove the fixed width on it's child elements, let them be fluid and stretch to the available space. once the screen get's too narrow, you can change the flex-direction
on .gallery-wrapper
to column
.h2-h6
tags inside the <section>
. To avoid this problem, you can either change the sections elements for regular divs or include headings and hiding them.Keep at it! I'm looking forward to your next project!
@drametoid
Submitted
What should I do to maintain aspect ratio of all elements on mobile site as well?
@ringm
Posted
Hey Shubham, the site looks good! Couple suggestions to polish it:
background
property. There you can also set the background-size
and background-position
to place it exactly where you need..wrapper {
display: flex;
height: 100vh;
width: 100vw;
}
.bg-image {
background-image: url(../images/bg-mobile.svg);
background-color: #0c122c;
background-repeat: no-repeat;
background-size: cover;
}
.container {
width: min(90%, 860px);
margin: auto;
}
.row {
display: flex;
flex-direction: column;
}
.col-30,
.col-70 {
width: 100%;
border: 1px solid red;
}
@media (min-width: 600px) {
.row {
flex-direction: row;
}
.col-30 {
width: 30%;
}
.col-70 {
width: 70%;
}
}
<div class="wrapper bg-image">
<div class="container">
<div class="row">
<div class="col-30">Fylo block with logo and buttons</div>
<div class="col-70">Fylo block with the bar and storage info</div>
</div>
</div>
</div>
The class bg-image should be used to place the background image.
That should take care of the main layout for mobile and desktop, I hope it helps! Let me know if you have any doubts with the code.
@allisonkbates
Submitted
Any suggestions on how to reduce the CSS needed for the change in layout between mobile and desktop?
@ringm
Posted
Hey Allison! Great job, the site looks really good! Well done.
Regarding your question, I would suggest trying a layout with flexbox like this:
.container {
width: min(90%, 1100px);
margin: 0 auto;
}
.row {
display: flex;
flex-direction: column;
}
.col {
width: 100%;
}
@media (min-width: 600px) {
.row {
flex-direction: row;
}
}
<div class="container">
<div class="row">
<div class="col">H1 and text</div>
<div class="col">Ratings</div>
</div>
<div class="row">
<div class="col">Comment 01</div>
<div class="col">Comment 02</div>
<div class="col">Comment 03</div>
</div>
</div>
This would take care of the overall layout both for mobile and desktop, I hope it helps!
Happy coding!
@alexcamachogz
Submitted
What is your opinion about the challenge?
@ringm
Posted
Hey Alex! Great job! The site looks great. I have tiny suggestions to polish it.
margin: 0 auto;
on the <main>
. Although as a better practice, I would suggest wrapping everything in a <div>
and give it a container
class.<input>
should have <label>
, that's why you're having html issues on your report. Also, consider wrapping your forms with a <form>
, it's a better practice from the semantic point of viewAn example would be:
<form>
<label for="firstName">First name:</label>
<input type="text" id="firstName" name="firstName" value="John">
<label for="lastName">Last name:</label>
<input type="text" id="lastName" name="lastName" value="Doe">
</form>
Just tiny things! Overall it's a great job! Keep at it!
@theAspiringDev1
Submitted
@ringm
Posted
good job! overall it working pretty well. I'm also using tailwind for my latest submissions and I feel it really improved my workflow.
Tiny suggestions:
alt
attribute on the img
tags, which doesn't create any problems in the visual side, but for accesibility purposes you should always include it.max-width
to the container so it doens't stretch infinetly ;)Awesome work! Looking forward on what you build next!
@chri55
Submitted
Please let me know what you think. Thanks!
@ringm
Posted
looks amazing! really neat animations and the responsiveness is sweet.
tiny suggestion: maybe adding a max-width
to the container? I'm opening it on a 4k monitor and, although it's not breaking (which is really nice) I feel is stretching too much, and the font display at that size is too small.
Other than that, it's great! Keep at it!
@Aahil13
Submitted
Comments are highly welcome, thank you
@ringm
Posted
Hi Onyeanuna! Great job completing this challenge, it’s looking really good!
However, there’s an issue with the main img, on small/medium devices it’s ok, but on large devices it grows extremely big and brakes the design! A fast duck-tape solution could be setting a max-width
so it doesn’t stretch indefinitely.
Another solution would be to make some layout adjustments to the whole layout for bigger screens with media queries.
Keep coding!
@KrishnanPraveen
Submitted
Give some feedbacks...
@ringm
Posted
Looking great! I think the only thing missing is box-shadow
on the main component.
Here's a box-shadow generator that can help you achieve exactly the look you want with ease: https://www.cssmatic.com/box-shadow
Great work!