@andro1ghado
Submitted
Looking to hire developers?
@hitmorecode
@andro1ghado
Submitted
@hitmorecode
Posted
Nice well done. A few comments
<div class="background">
inside the CSS change .background
to bodyposition: relative;
to position the buttons, image and text. You can easily do this with flexbox or css grid. Only use position when necessary, otherwise just go with flexbox or css grid.It's a good start Keep it up
@ilyesab
Submitted
This was the hardest challenge for me. although it was similar to the previous ones.
I have a few concerns about the solution.
1- I used a picture element to pick the right image based on the viewport size. and css blend modes to apply the effect on the image. I'm not sure If I should have used css background images and linear gradients instead. what do you think?
2- I'm not sure about how I structured the html and css for this project. let me know if you like / dislike the structure of the code ?
3- I have doubts on how I handled the responsiveness and fear that my design looks bad on some screen sizes. let me know if that is the case for you.
@hitmorecode
Posted
Nice well done, good try. Your page needs to be worked on to make it look good. I have a repository for this exercise, it's already a mobile first. It's a simple repository it already has the basic html and css. See if you can take it from here and create a finished product. Give it a try and if you have any questions let me know. I'll try to reply as soon as possible.
Stats preview card component repository
Keep coding
@hollyBelly2021
Submitted
How did I do? Let me know if I could improve something. Thank you!
@hitmorecode
Posted
Really nice job it looks great. Still I have a few suggestions on how you can improve.
Picture element here you can get information on how the picture element works and how you can use it. The HTML picture element explained this is a good video tutorial on this subject.
I see you are using CSS rest which is a good thing, but you need to add these two lines to it.
padding: 0;
box-sizing: border-box;
This I wouldn't add it to .main-container I would add it to the body
.main-container {
height: 100vh;
background-color: hsl(30, 38%, 92%);
display: flex;
justify-content: center;
align-items: center;
}
body {
min-height: 100vh; // it's good practice to use min-height: 100vh on the body
background-color: hsl(30, 38%, 92%);
display: flex;
justify-content: center;
align-items: center;
// you can add this to the body as a font-family fallback
font-family: arial, helvetica, sans-serif;
}
You could have combined .title-styles and .discount into one CSS rule. Both of them use the same font-family
.title-styles,
.discount {
font-family: Fraunces;
}
As for your media-query change the max-width to 600px. This will prevent the right side of the card to overflow to the left side.
Keep it up
Marked as helpful
@Wanjiru-M
Submitted
I'd appreciate feedback to ensure my code meets best practices and professional standards.
@hitmorecode
Posted
Well done. I took a look at your page and there are a few things that you can/must fix for the page to look good.
.grid-1{
background-color: var(--primary-color);
height: 80vh;
padding: 30px;
width: 22vw;
border-radius: 10px 0 0 10px;
}
.grid-2{
background-color: var(--secondary-color);
height: 80vh;
padding: 30px;
width: 22vw;
}
.grid-3{
background-color: var(--dark-color);
height: 80vh;
padding: 30px;
width: 22vw;
border-radius: 0 10px 10px 0;
}
Here you have three that are being repeated three times height, padding and width. You can combine this into one CSS rule
.grid-1,
.grid-2,
.grid-3 {
height: 80vh;
padding: 30px;
width: 22vw;
}
.grid-1{
background-color: var(--primary-color);
border-radius: 10px 0 0 10px;
}
.grid-2{
background-color: var(--secondary-color);
}
.grid-3{
background-color: var(--dark-color);
border-radius: 0 10px 10px 0;
}
Don't use vh or vw for card heights and widths this will complicate things. Use fixed dimensions instead (rem, px, em)
See with this comments you can fix your page. If not feel free to ask Keep it up
@TahBlaise36
Submitted
What i found difficult was when i was trying to use display-flex in order to make the layout responsive which didn't work, so i used grid instead.
@hitmorecode
Posted
Your solution is not showing. You need to create a live link to your solution. Also after finishing you need to upload an image of your finished product.
You can create a live page on github, see if you can figure it out if not let me know.
I see that you add the CSS inside the html, don't do this, this is not good practice. Always create an external CSS file and create a link with the html file.
@NeoScripter
Submitted
The hardest thing was to align the elements in the right part of the card so that they look good in the mobile layout as well
@hitmorecode
Posted
Nice well done. I took a look at what you did and I have a few suggestions;
@ahmed-hazem-1
Submitted
@hitmorecode
Posted
Nice well done, the animation looks good too. There is one issue with your card. When you go to mobile screen size. The circle in the middle of the card, is no longer round but oval. This is because you usde % for both width and height of the container.
You can fix this by using px, em or rem for the width and height.
In your case just change both the width and height to 120px
@DhahiraThesneem
Submitted
How to increase the shadow of parent card while hovering child element?
@hitmorecode
Posted
Looks good well done. As for your question you need to add a CSS rule. For example
@bccpadge
Submitted
For the paragraph, I made the gray color darker to fix the accessibility issue.
All feedback is welcome.
@hitmorecode
Posted
Nice looks good well done. I took a look at your markup and I see you have the same problem I had with the image. The max-width: 100% is breaking the border radius. If you remove max-width: 100% and adjust the width and height of the image, it should solve this problem.
That's why I removed the image from the html and added in the CSS. Looking closer to what you did, if I use display: block then it should solve my problem also.
Good job keep it up
@muhibkhan2005
Submitted
I completed this frontend mentor challenge social proof section master. You can see my solution here. Any suggestions on how i can improve are welcome.
@hitmorecode
Posted
You uploaded the wrong challange.
@Shady-Waheed
Submitted
@hitmorecode
Posted
Congratulations on your effort. I took a look at your code and I have some tips:
Keep coding 😎 👊
@brandt33
Submitted
What is the best way to make responsive images?
Do you have any questions about best practices?
@hitmorecode
Posted
To make an image responsive, you can give the image a % of it's parent, but be careful when giving images % if not used properly this will break everything. You just have to analyze when to use % and when to avoid them.
@thedevangvishnu
Submitted
@hitmorecode
Posted
Nice well done. Just one tip, you should change the background image size to contain to make it look like the example.
@StasMelamed
Submitted
Hello to everybody, this is my first challenge here, I hope not the last one) As for hardships, for me it was quite tricky to center the content on the page, first of all vertically. In order to do so I used stretching the outer block to 100% (height: vh-100) from Bootstrap classes + margin 0 auto for inner class. I think there are more ways to do so and I would appreciate if you share your solutions. Thanks!
@hitmorecode
Posted
Well done. There is an issue with your page, when the screen size is around 991px, the card stretches to fill the content. Here are a few tips;
I don't know how good you are familiar with vanilla css. If not then I suggest to start with vanilla css once you learn vanilla css then jumpo into frameworks.
Good job and keep it up
Hi I'm beginning for front-end developer this is my QR Code Payment create by use HTML and CSS if you have any suggestion pls feel free to comment me I want to practice more an more :)
@hitmorecode
Posted
Nice congratulations looks good. I only have one comment. You used <br> to break the paragraph. You don't have to do this. If you give the <p> a width a new line will be automatically created.
Anyways good job keep it up
Marked as helpful
@VizeJS-dev
Submitted
@hitmorecode
Posted
Nice well done. You don't have to use margin to place the card in the middle of the page. Use flexbox or grid
body {
background-color: hsl(212, 45%, 89%);
font-family: Outfit, sans-serif;
min-height: 100vh; /* add these three lines */
display: grid;
place-items: center;
}
## You can remove all commented out lines
.qr-container {
display: grid;
place-items: center;
background-color: hsl(0, 0%, 100%);
/* margin-top: 25vh; */
text-align: center;
/* margin-left: auto; */
/* margin-right: auto; */
width: 280px;
border-radius: 15px;
}
@Riki013
Submitted
@hitmorecode
Posted
Nice well done, to place the card in the middle of the page add this to the body (see below)
min-height: 100vh;
on the body. This is important for the responsiveness of the pagebody {
background-color: hsl(30, 38%, 92%);
overflow: hidden;
min-height: 100vh; /* add these three lines */
display: grid;
place-items: center;
}
Marked as helpful
@Exgomes
Submitted
@hitmorecode
Posted
Nice well done. The card is not in the middle of the page, you can fix this (see below). Make it a habit of using min-height: 100vh;
on the body
body{
background-color: rgba(0, 50, 255, 0.2);
min-height: 100vh; /* add these three lines */
display: grid;
place-items: center;
}
Marked as helpful
@rsalohiddin
Submitted
@hitmorecode
Posted
Nice well done. The page is not responsive, here are a few things you can do to fix your page.
min-height: 100vh;
this will make a page responsive to its content.body {
background-color: #E4D282;
/* width: 100%; */ /* delete this line */
min-height: 100vh; /* add this line */
font-family: 'Lexend Deca', sans-serif;
display: grid; /* add this line, its needed to place the card in the middle of the page */
place-items: center; /* add this line to place the content in the middle of the page */
padding: 40px 0; /* add this line to create a space between content and body */
}
@media screen and (max-width: 870px){
.row{
flex-direction: column; /* add this line to change the direction of flexbox, to make the page responsive */
}
/* everything below can be removed */
/*
.row__col1{
border-top-right-radius: 8px;
border-bottom-left-radius: 0px;
width: 120%;
margin-left:-10%;
}
.row__col2{
width: 120%;
margin-left: -10%;
}
.row__col3{
border-top-right-radius: 0px;
border-bottom-left-radius: 8px;
width: 120%;
margin-left: -10%;
}
.btn{
margin-top: 20%;
} */
}
@hitmorecode
Posted
Nice well done. Just a few tips
body {
font-size: var(--fs-body);
font-family: var(--font-family-montserrat);
padding: var(--py) var(--px);
background-color: var(--color-cream);
color: var(--color-gray);
min-height: 100vh; /* change to this */
display: grid; /* add these two lines */
place-content: center;
}
@luizotvio
Submitted
Overall I found the exercise easy, but I got a little lost to align the container in the center of the page, I had to research until I got the result, which I hope, will be the end!!
@hitmorecode
Posted
Nice well done. Just one tip
min-height: 100vh;
instead of height: 100hv;
. With min height the page will be responsive to it's content. Height is a fixed height, so if you add content to the page eventually it will overflowMarked as helpful
@manuelebeh
Submitted
In general, it wasn't complicated, but I'm stuck on the color of my overlay, which doesn't match the design.
@hitmorecode
Posted
Nice well done. Just one tip
## add these two lines, play with the opacity until you happy with the result
mix-blend-mode: multiply;
opacity: .8;
@Mustafakhan2
Submitted
@hitmorecode
Posted
Nice well done, one tip
.container
change the % onborder-radius
to px, rem or em. If you look closer the at the border radius it does not have a nice radius. This is because you used %.Marked as helpful
@MuhammadQasimFiaz
Submitted
@hitmorecode
Posted
Nice well done. Just one tip.
.main {
display: grid;
align-items: center;
justify-items: center;
min-height: 100vh; /* change to this */
font-family: "Outfit", sans-serif;
background-color: hsl(217, 54%, 11%);
}
Marked as helpful