Please provide suggestion on writing efficient code:
I have used very basic of html/css to do the card.
I had a hard time trying to do the active states of images and the line with images + text(the 3 days left): is there a better way?
I did try to match everything as i can but i can't seem to make it fit in one page(the vertical height- tried using max-height and setting the height but no success) NEED HELP FOR THIS
Nishant let me give you my personal opinion on your issues :
a) It doesnt matter whether you use basic or advance html/css, what does matter is the semantic of the site.
b) for active states you can use pseudo-classes, along with the container that can be set using pseudo-elements(::before) and thus with the help of opacity and z-index you will achieve the hovering over effect over the image.
c) as this site is simply from top to bottom you dont need to do anything exceptionally, as the site layout is same for smaller and larger devices, yea somewhere you might need to use flex for aligning items vertically or horizontally.
For your height issues, to fit it in a single page, you can wrap the whole document in a container and set the height of the container as height:100vh; and then for different sections you can distribute the height accordingly.
The last point might be confusing for now but when you'll use semantic html then things will become more clear to you.
Hope this will be helpful. Happy Coding :D
Hey there, if you want to input to turn red or any other color when incorrect, then use outline property in javascript. Like this : inputElement.style.outline = " 2px solid red";
PS: here inputElement is the reference to the form input element , can be for password or text.
Hope you'll find it helpful. Happy coding :D
Hey buddy, good try. But there are some fixes regarding responsiveness of your site.
Resize the window at 700px or 890px you'll see that the slider section and the main section overlap. What i'll recommend is rather using Javascript, first try to make your site fully responsive. then you can add your javascript accordingly.
Hope this will be helpful. Happy coding
Hey there, nice work, there's a suggestion, if you resize your site to 560px or lesser, you'll find that the signup button in monthly subscription section, is automatically obtaining its size it would be better if you use the absolute width unit(px) rather relative unit(%,em etc) for lesser size.
Hope this will help you better....Happy Coding.
Hey there, few manipulations that you need to do :
a) The navigation menu
b) On smaller devices its not responsive, the contents are overlapping to each other(375px)
c) site layout on size 1024px
Hope it will help your layout of the page get better and responsive. Happy coding.
Hey there, kindly review your code as the site isn't fully responsive, check the site layout when its above 375px or 376px, you'll see the difference.
On the desktop/laptop screen the site appears fine, but if you check your site in toggle device toolbar(where you can check the responsive nature of your site on different devices) then you'll see that your site isn't fully responsive.
Hope it'll help you. Happy coding. :D
Hey there, try to use AJAX technology such as Fetch API or XmlHttpRequest. The data will be uploaded as the page loads or as you wish to be. Hope this will help :D
Happy Coding.
first of all set width of the header element as 100%
remove left 30px;
inside the header element set the flex-grow property of the h1 element to 1 , flex-grow:1;
set the text-align:center to h1.
And tadaaa!!! here that goes as center :D hope this was helpful. There can be other ways as well so keep trying. Happy coding and stay safe :D
Hey suman, first of all, good work! You can remove padding either by individually setting it using property padding:0 or by setting it universally like this
*{
padding:0;
}
It will set padding to 0 for every element in your web page.
I had finished this project, but I wasn't satisfied with the results. I found a 2 1/2-hour live code video of this project on YouTube by Florin Pop, and started over from scratch. For anyone else who is finding this project a challenge, I suggest you watch at least part of this video. The URL is https://www.youtube.com/watch?v=9HVKR_hK0nY&t=7659s
I have written a fairly detailed README, which can be found on my GitHub repo, explaining my challenges and how I was able to solve them. One issue I'm having with the README is that my screenshots aren't displaying. I would appreciate it very much if someone could tell me what I'm doing wrong.
Another issue I'm having with all of my projects is with SVGs. I have not been able to figure out how to add hover effects, such as changing the color of social media icons when hovering over them, or changing colors in general. I would appreciate any help anyone can offer. Any other constructive feedback would also be very much appreciated. Thank you!
That was nice try, there're some improvements needed as mentioned :
on the right-side chat put the border-radius
make the background colored element smaller, i guess because of it we'll get vertical scrolling. But if you make the background element smaller then you can overcome the vertical scroll bar.
the input area of the text message should have button inside it. Also set height and width for the text box(input) and then push the button inside it.
I had finished this project, but I wasn't satisfied with the results. I found a 2 1/2-hour live code video of this project on YouTube by Florin Pop, and started over from scratch. For anyone else who is finding this project a challenge, I suggest you watch at least part of this video. The URL is https://www.youtube.com/watch?v=9HVKR_hK0nY&t=7659s
I have written a fairly detailed README, which can be found on my GitHub repo, explaining my challenges and how I was able to solve them. One issue I'm having with the README is that my screenshots aren't displaying. I would appreciate it very much if someone could tell me what I'm doing wrong.
Another issue I'm having with all of my projects is with SVGs. I have not been able to figure out how to add hover effects, such as changing the color of social media icons when hovering over them, or changing colors in general. I would appreciate any help anyone can offer. Any other constructive feedback would also be very much appreciated. Thank you!
Hey Robert, first of all really good work and i appreciate your efforts:
-For the hover effect you can use CSS3 with pseudo-classes which is used to style the element based on its state. Or you can use javascript on that element as well with events or event handlers. Depends on what you're comfortable with, but in my opinion using CSS3 would be easier as sometimes if Javascript failed to load still your hover effect will work.
-For the screenshot to be appeared in the github repo kindly check whether you've uploaded design images or design folder(this folder comes in the zip file that you've downloaded for the particular project). Once you create folder named 'design' in your main github repo, and upload the images, you'll see the screenshot of the image in the readme.
-In your solution the page is overflowing on size 735px and lesser, you're showing modal but that modal is overflowing. Kindly look over the code once again.
Hope it'll be helpful.
Happy Coding.
This is my attempt. Feel free to leave any general feedback but I have 1 issue that I am stuck on. Image Stretching Issue - When my site is resized below 720px horizontally but is still above the 650px breakpoint, the image to the left stretches instead of scaling down. Can anyone point me in the right direction ?
hi pete, concerning your issue, i'd like to suggest, rather using width property for the images, use max-width. or use width along with max-width. this will help the image from stretching vertically. You can also give absolute size for the image rather using relative sizes. You can even try object-fit property as well. Depends on you, what makes you perfect to use it. Just give it a try.
Also keep the mobile first approach, you've used desktop first probably.
Nice try, the image is not fitted completely in the container height, check it at the size of 1120x670 . Also set the responsive media query from screen size 768 and above.
Hope its helpful. Enjoy coding
Hey!!Nice work, kindly align it at the center vertically, no need for extra margin on the top of the card. Extra margin just increasing the height of the overall body of the page.
Hope it'll be helpful
Hi everyone,
I'm Stephane, started to code early this year. This is my first FrontEnd Mentor Challenge. I would like to receive some overwall reviews from you. Anything I could do better?
Hey Stephane, as you haven't uploaded your code in Github repository so i couldn't review your code, still you did good work, though you need to work in the responsive part of the CSS, as you resize the screen you'll notice that the page or the card isn't responding relevant to the size of the screen, somewhere it's covering full page somewhere its having proper view(for example when width is
**1044x670 ** then its covering whole page and at 1067x670 then card is small). Probably you created the page for the desktop first and then tried to change its size for different devices, so in my opinion you should try mobile first approach , this will help you a lot. And use flexbox or grid.
I know its lot to digest, but still its just few code lines that you can update and fix it. All the best.
My solution seems similar to the designs, but don´t know, if the code is well-organized and what could I improve.
Grateful for any suggestions/critics/feedback!
Nice work out there, but its not completely responsive, resize the screen and around 769x657 you'll find that the cards isn't responsive, it should increase or decrease the height of the cards together.
Kindly revisit your code or it'll be better if you use flexbox(as flexbox always keep same height for the elements) .
Hope it'll be helpful. Enjoy coding
1.) Can't set bg-pattern in Mobile Design. Please tell me how to do that.
2.) Can we change the image of the women of desktop to mobile one using css or js? If yes, please tell how to do that.
@alokik98 nice work there, but you need to improve the overflow, if you open all the faqs then its overflowing kindly go through your code again. Now on your query :
For mobile design just have a container set the position to relative and insert both the images inside this container, and set the position relative for both the images(shadow and woman ) as well, set the width of the images(max-width will be better) and then set margin auto(to align the images at the center) then use top property on both images separately to align it vertically.
Ofcourse you can change the images using css or js, in css you can use the media query to change the image, and in js you need to use DOM and some event handlers.
In my suggestion if you dont know the DOM and event handlers then first you should understand it well then you can use it however you want.
Hope its clear. And again its a good work though, enjoy coding
I need to say that I'm proud of my solution! I know it have some small details to fix but It is working!! Please feel free to let me know any improvements I can do in my code ;)
It's really nice work, but it's overflowing, if you open all the answers then it's overflowing. You can't ignore it because when its out of the main container, it gets frustrating for the user. Kindly revise your code. I haven't gone through our code, just i previewed the site and found this issue. Hope it's a helpful feedback. Enjoy the coding
This challenged turned out to be harder than I'd anticipated!
This is my first 'big' project that involves a landing page rather than a component. One of challenges I faced was deciding how to organise my CSS code base. At the moment, it just flows on alongside the HTML structure. However, I'm keen to learn about any techniques of structuring CSS and making it more readable/logical. I'm about to start learning Sass - so I anticipate that would be a good method to ensure the codebase is well thought through and maintainable. I was wondering what others do (especially in the industry).
I approached this challenge with a mobile first style, which I think is the golden rule these days (but again would be nice to hear someone else's experiences). One question I had was whether or not it's acceptable to use Grid for mobile layout. I really like it and I feel like it makes life of a developer so much easier! I wonder what others think about this!
Any other feedback is very welcome! Cheers!
Hey there, nice work. On your concern, ofcourse its absolutely acceptable to use Grid for mobile layout. It gets much easier with grid naming areas and using grid-template-areas property that shows how the layout you want in your page.
Hope this was helpful, keep up the good work.
Try to name the classes much relevant to the content of the element, this will help you remember what you are working on. You can think it as giving a title to a chapter.