Hey guys. Do you have any ideas how to fix changing positions of answer when collapsing them?
Aruj Joshi
@gtalinAll comments
- @asekabtwSubmitted over 1 year ago@gtalinPosted over 1 year ago
Your solution looks very beautiful and elegent.
The culprit for your moving layout for the mobile layout is the flex on the
content
class on yourmain
. You'll have to removeflex
and then the layout doesn't shift around. If you want to center the accordion, usingmargin: auto
oncontent-wrapper
class would do the trick. You will also have to add the linear gradient background tobody
ormain
and then add amargin-top
to prevent the illustration from being truncated when you removeflex
frommain
.For desktop layout, when you use
flex
, oncontent-wrapper
usingalign-items:center
is causing that shift in layout and it is causing your text to move .Hope this solves your problem.
Marked as helpful0 - @catherineisonlineSubmitted almost 2 years ago
Hello, Frontend Mentor community! This is my solution to the Intro section with dropdown navigation.
I appreciate all the feedback you left that helped me to improve this project. Due to the fact that I published this project very long ago, I am no longer updating it and changing its status to Public Archive on my Github.
You are free to download or use the code for reference in your projects, but I no longer update it or accept any feedback.
Thank you
@gtalinPosted over 1 year agoHi @catherineisonline. Congratulations on completing this challenge. Your solution looks amazing.
I do have a few suggestions on how you can improve the solution further:
-
Right now the dropdown navigation shows only when a user hovers over it. A lot of users don't like using a mouse and just use keyboards. To make the menu more accessible for them, you can cause the dropdown to show on
focus
(you'll have to use the propertyfocus-within
. I consulted this link for creating keyboard accessible dropdown menu while doing this challenge. Hope you find it useful as well. -
Second suggestion is that you have used a max-width for the main container which prevents it from stretching out. You can use the same for the
nav
as well. Right now for very large screens, the nav bar stretches out considerably.
Hope you find the feedback helpful. All the best for your future challenges.
0 -
- @LucianoDLimaSubmitted about 2 years ago
Thank you for checking out my challenge!
I learned quite a few things the past 2 months where I finally started learning JavaScript, so this is my very first JS project, be kind!
I actually remade this challenge three times! The first time I was struggling a lot, and there were quite a few bugs, then I gave up and started studying more, tried again, still struggled.. Then I started again yesterday and everything just clicked! Third time is a charm
CUSTOM DESGIN - My personal additions:
- I added a few new error messages for when a special character is used inside Name and Last Name.
- I learned and used regex in order to make the validation form for the Name, Last Name and Email.
- I added an eye icon when you type in the password so that you can see what you typed if you click on it.
- I added a small animation to the placeholder when you click in the input field, and because of that I removed the "email@example/com" that the design asked for.
Any and all feedback is welcome, thanks!
@gtalinPosted over 1 year agoCongratulations on completing the challenge. Your solution looks perfect. The personal additions that you have added to the solution are impressive.
Absolutely love the
placeholder
animation. Initially when I saw it I thought maybe you used material design (They have a similar transition for placeholder). But it is even more impressive that you have used vanilla CSS for the transitions.Just looking at your solution no one could've guessed your personal struggles with the challenge. Thank you for sharing it and the solution.
The attention to detail is really commendable. Really appreciate it.
All the best for your future challenges.
1 - @kisacasumderlerSubmitted over 1 year ago@gtalinPosted over 1 year ago
Congratulations on completing the challenge. The layout is very well done and the font size is apt as well. The shift in the background image in this challenege is quite tricky to get right.
I really like the animations that you have put in for the accordion (the arrow icon as well as the list items themselves.)
I just have one small suggestion that in the desktop view, as soon as the layout switches to larger screen size view, there is no margin in the top and bottom. Adding a margin in the
accordionContainer
, of1rem
or something would be great. (In larger screen sizes the accordion container itself is smaller and is centered on the screen so there is no problem there).Hope you don't mind the feedback.
1 - @jeremyoduromanuSubmitted over 1 year ago
Any suggestions to improve my work is warmly welcomed
@gtalinPosted over 1 year agoCongratulation on doing this challenge. The layout is well done.
I do have a few suggestions for you:
-
You are missing the linear gradient and background pattern for the left section (where the text content is).
-
You have not added custom form validation and styling for when a user submits the form without a valid email field. A red outline should appear on the input field, an error icon should appear in the input field and an error message should appear below the invalid input field. You can add an attribute of
novalidate
on the form to prevent the default browser validation checks to kick in. And then add JS to validate the fields and also to add custom styles.
Hope these suggestions are helpful to you.
Marked as helpful1 -
- @tizerkSubmitted over 1 year ago
Any feedback/thoughts are greatly appreciated!
@gtalinPosted over 1 year agoCongratulations on attempting the challenge. The layout looks good.
However you have missed the form validation part of the challenge.
0 - @anerpecoSubmitted over 1 year ago@gtalinPosted over 1 year ago
Congratulations on completing the challenge. The solution looks beautiful.
I have a small feedback. In your submitted solution, the image for the background pattern cannot be loaded. I had encountered a similar problem in one of the challenges I had submitted where the image was loading fine for me on localhost but was not loading in the live url.
For background image, the path specified in
url
should be with respect to the final compiledcss
file. Right now it is trying to find theurl
inhttps://base-apparel-coming-soon-anerpeco.vercel.app/dist/images/bg-pattern-desktop.svg
. The location should bebackground-image: url(../images/bg-pattern-desktop.svg);
rather thanbackground-image: url( /dist/images/bg-pattern-desktop.svg);
I hope you don't mind the feedback.
1 - @dhpcodeSubmitted over 1 year ago
This one is very challenging for me! I could not make it well I think. Please give me any feedback to enhance this project. When I start increasing or decreasing width of viewport the challenge looks not reponsive until it reaches media queries. And how can I make fonts responsive?
@gtalinPosted over 1 year agoCongratulations on completing this challenege.
You enquired about your layout breaking. I have a few suggestions.
Using a container with a width of
60%
is not needed. Themax-width
of700px
is good enough.Instead of making the
container
as flex beyond375px
, you can apply a breakpoint at500px
or600px
by looking at the design and seeing what works for your layout. What you can do is that beyond375px
screen size and till you hit the next breakpoint, you can keep the container width exactly what it was (375px) and don't make the primary and secondary text sections50%
. Beyond600px
or whatever next breakpoint you choose, you can applymax-width: 700px
and apply flex so that the primary and secondary sections are side by side (even then you don't need to set a width of50%
on them because flex will take care of it.For the font, you can change the font size in the media query as well.
Hope this helps you in fixing your layout.
Marked as helpful0 - @oliwiakrammSubmitted over 1 year ago
👩💻My solution to this challenge👩💻
Additional things
- little animation for the arrow
- smooth scroll ( does not work in Safari)
Thank you for any feedback 😁
@gtalinPosted over 1 year agoThe solution is very good. Like the animation for the down arrow.
Since I have recently completed this challenge, I can provide a few suggestions:
You can make the hero image (orange)
100vh
so that we cannot see the next section. That would make the animated down arrow more relevant.In the features section where there is a text and image side by side, you can add a max width to the text and the text heading as well (just like you have added for the text displayed over background image). That way the text will not stretch out when we view the page on larger screens.
Since you have already included elements for accessibility in your solution (links with a hidden span for people with assistive technologies) it might interest you that some people have problems with large animations on page. And smooth scroll is one of those. They can set a preference in their browsers
prefers reduced motions
. So you can enable smooth scrolling only for people who have not set aprefers reduced motion
to true.I have found a useful link for it. Hope you find it helpful as well.
Marked as helpful1 - @MelvinAguilarSubmitted over 1 year ago
Hi there 👋, I’m Melvin and this is my solution for this challenge. 🚀
🎁 Features:
- Little animation with Framer motion using useReducedMotion hook. 🎬
- 97%/100% on lighthouse report and PageSpeed Insights. 🚀
- Tested with the TalkBack screen reader on mobile. 📱
- Custom scrollbar. 🖱️
🛠️ Built With:
- React JS. ⚛️
- React Hook Form. 📝
- Framer Motion. 🎬
- TailwindCSS. 🎨
- npm - prettier - prettier-plugin-tailwindcss. 📦
Any suggestions on how I can improve and reduce unnecessary code are welcome!
Thank you. 😊✌️
@gtalinPosted over 1 year agoThis is beautiful. You have matched the design perfectly.
The subtle animations you have used are are just right. This must have taken hours of diligent work.
Love the input field validation and how on typing a valid email the error message disappears.
I have one small question/suggestion. Right now when the user submits the form, an error message is displayed. The error message then does not disappear when the user abandons the form and focuses away from the input field. Maybe the error message can be removed when a user focuses away from the input field. This is just a suggestion. And you might have consciously designed it that way.
Marked as helpful0 - @Philip-DroubiSubmitted over 1 year ago
Hey everyone 🙋♂️, this is my solution for
article-preview-component
challenge.Please take a look and give me your feedback. Thanks :)
@gtalinPosted over 1 year agoReally like your solution for the component specially the animation for the button. You have also used
aria-label
for the button which is really important for accessibility for someone who uses a screen reader.I just have one small feedback. You have removed the default outline from the button because of which there is no visual cue for someone who uses a keyboard to navigate the website. It is not a good idea to remove outline from
button
s anda
tags because it makes it difficult for people who only use a keyboard for navigation. And if you do remove the default outline on focus, it is best to add an alternate.Hope the feedback was helpful.
0