Skip to content
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

Make Product pages responsive #62

Closed
2 of 3 tasks
ohsk opened this issue Sep 5, 2014 · 4 comments · Fixed by #69
Closed
2 of 3 tasks

Make Product pages responsive #62

ohsk opened this issue Sep 5, 2014 · 4 comments · Fixed by #69
Milestone

Comments

@ohsk
Copy link
Member

ohsk commented Sep 5, 2014

Pulling over from #24 to focus on responsive product pages!

  • Paragraphs updated to fit full-width on mobile
  • No detail fabric image on mobile?
  • Image slider for showcasing multiple product shots (lower priority...)
Desktop Mobile
02_nm_website_whiteboard_0209_product_ 2 02_nm_website_whiteboard_0209_product-mobile_ 2
@ohsk ohsk added this to the v2.0 milestone Sep 5, 2014
@ohsk
Copy link
Member Author

ohsk commented Sep 7, 2014

@sinchan, one thing we're considering is making several products available in a given product page. Meaning, you'd land on a page for all products related to the Kotwali textile (popover, pocket square, bandana), and could navigate through them.

I posted a precedent reference for this idea in Issue #27. Perhaps we could consider this a future state but use it as a base for the intial, simpler product pages.

@sinchan
Copy link
Contributor

sinchan commented Sep 9, 2014

@ohsk I whipped up a responsive version of the Kotwali Popover page in this commit: sinchan@5a4bd8c

I also added in the bit of fabric detail on the top. Not sure what you think of it, but if its not needed then I can hide it.

I've used the CDN version of Bootstrap for the commit (it has everything and for the final version we can get a customized version of Bootstrap that includes only the things we need). You're already using Normalize and Font Awesome it seems. Bootstrap includes Normalize and works with Font Awesome really well. It includes a ton of helpers for responsive grids, typography, and components like buttons etc. Really helps things go faster because they handle a lot of cross-browser etc. issues and it's well tested. Check it out http://getbootstrap.com. In the process of making it responsive, I've changed some of the structure of the page.

Let me know what you think and based on the feedback I can make the other pages responsive too.

I've made it so that I switches from the default layout when it hits small tablet (max-width: 768px) and phone (max-width: 480px).

Here's what it looks on a phone:

screen shot 2014-09-02 at 18 57 07

Here's what it looks on a small tablet:

screen shot 2014-09-02 at 18 57 25

@ohsk
Copy link
Member Author

ohsk commented Sep 9, 2014

@sinchan looking great!

I think we can do without the fabric detail on the top, since it's not really adding much in this state. If you want to push to the other product pages, that would be great. I can tackle any tweaks to the text stacking after that.

Re: Bootstrap, I totally trust your judgement on going that direction. I'm pretty sure it's what we use (or Less / Sass?) on some of our consumer-facing CFPB products, so validated on that end too! Would it be tricky to transition on the other pages?

@sinchan
Copy link
Contributor

sinchan commented Sep 12, 2014

@ohsk Just got around to finishing it up.

I've made all of the product pages responsive (without the fabric detail in tablets and phones) and switched normalize.css with bootstrap.min.css which has normalize.css and a responsive grid within it.

Check it out: http://sinchan.github.io/new-market-goods/dhanmondi-popover.html

If it looks good, I'll submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants