-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change in modal UI #208
Change in modal UI #208
Conversation
@cryptofox17 The design seems fine, except for the orange background. Also, it seems like you didn't follow the discussion in #23. I proposed some changes in that issue. |
@garg3133 ok I'll make the changes |
@garg3133 let me know if the background and alignment is ok now |
Can you centre-align everything and then show it to me? Also, don't put the heading "Contact" in the second section. Instead, you can put a "---OR---" or something like that in between and then start the new section as "You may also donate books, clothes, stationery items or anything else which might be useful to the kids. Contact: |
@garg3133 I have modified the contact section. I tried aligning everything to the center but it looked a bit off to me so I haven't committed the change. But here are the screenshots : |
I think this looks better: I've used CSS-Grids in place of Flexbox. HTML
CSS
Do change the class names appropriately. @tushhr Thoughts? |
@garg3133 made the changes. |
Hey @cryptofox17! I will surely ping you back when our design will be ready. |
@tushhr ok then! |
Hey @cryptofox17! Sorry for such a late reply. We have two designs for the donation modal one for the new home page and the second for the old one. Just an edit, for the donation modal of the old home page, keep the header just like the one you have created in the beginning. |
@tushhr which header? |
@tushhr yeah I can. And ok |
@cryptofox17 You can create two separate PRs for the old and new home page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great @cryptofox17! Just a few things:
- The scrollbar looks odd on small screens. Can you hide the scrollbar on small screens, using media queries? This might be helpful: https://www.w3schools.com/howto/howto_css_hide_scrollbars.asp
- Add the following to the last line: useful to the kids. Contact:
- On clicking the
Donate
link in navbar, the page scrolls to the top. This is happening because of#
inhref
attribute of the link. Replace#
withjavascript:void(0)
there.
margin-bottom: 12px; | ||
margin-top: 12px; | ||
margin-right: 64px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the properties for both .details-1
and details-2
are same, it can just be one single class .contact-details
.
Also, prefix the class with don-box3
so that it does not conflict with other elements with same class name (if we use this class name at any other place on the page).
@garg3133 done |
static/home/css/style.css
Outdated
margin-right: 64px; | ||
} | ||
|
||
.don-box3-p { | ||
.or { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should write this class as .don-box3 .or
, as .or
class can appear at other places too, so you must be specific that these properties should only apply to the .or
class inside .don-box3
class and not anywhere else.
text-align: center; | ||
max-width: 150px; | ||
margin-bottom: 12px; | ||
margin-top: 12px; | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you didn't understand well what I suggested earlier.
- As both the classes have some common properties, you can put them in a single class name
.contact-details
(put this class in both the elements). - Now for the different margins of two divs, put a class name
.contact-details-left
in the left div and class name.contact-details-right
in the right div and apply corresponding margins to both the classes. - Add
.don-box3
before both the classes in CSS, so that these properties only apply to.contact-details
,.contact-details-left
andcontact-details-right
classes inside the.don-box3
and not anywhere else if we use the same class name somewhere else. Ex..don-box3 .contact-details
.
@garg3133 done. |
Looks good now, for the most part. Although I think you still didn't understand what I was trying to say, but no worries, I've made those changes myself. You can look at them here: 570b423 Merged your PR into master 🎉 Thanks, @cryptofox17 for your contribution 🚀 |
Related Issue
Fixes: #207
Prosposed Changes
Additional Info
Screenshots