Skip to content

Conversation

@appleJax
Copy link
Contributor

@appleJax appleJax commented Aug 31, 2016

What's in this PR?

I took a stab at making the site responsive.

Basically, I used bourbon media queries and changed the @include span-columns() attribute of certain elements to make them fit better on smaller screens. The first thing I did was create _breakpoints.scss to house the media query breakpoints.

I used the same breakpoints Bootstrap uses, except with max-widths instead of min-widths since Code Corps is already desktop-first. That means if you set styles for a medium-sized screen, the styles will apply to everything below that size unless you override them with another media query for a smaller screen. Large screens (1200px or greater) are the default and don't need a media query. The breakpoints and variable names are as follows:

  • $xs-screen: max-width 767px
  • $sm-screen: max-width 991px
  • $md-screen: max-width 1199px

Here's a bourbon-flavored media query:

.subsection {
  @include span-columns(4);
  @include media($xs-screen) {
    @include span-columns(12);
  }
}

screen shot 2016-09-15 at 12 21 31 pm

screen shot 2016-09-15 at 12 21 57 pm

screen shot 2016-09-15 at 12 22 09 pm

screen shot 2016-09-15 at 12 22 27 pm

screen shot 2016-09-15 at 12 22 41 pm

This is by no means a final solution. Just wanted to put this out on the table as an option and get some dialogue going.

@appleJax appleJax changed the title Add bourbon media query breakpoints. Make landing page responsive. Add bourbon media query breakpoints. Make landing page and onboarding responsive. Sep 4, 2016
@appleJax
Copy link
Contributor Author

appleJax commented Sep 4, 2016

Made some more pages responsive. Screenshots:

screen shot 2016-09-04 at 2 15 40 pm
screen shot 2016-09-04 at 11 06 05 pm


screen shot 2016-09-03 at 5 17 19 pm


screen shot 2016-09-03 at 10 45 54 pm

screen shot 2016-09-03 at 10 46 35 pm


screen shot 2016-09-03 at 10 55 42 pm

screen shot 2016-09-03 at 10 55 58 pm


screen shot 2016-09-03 at 10 56 28 pm


screen shot 2016-09-03 at 11 17 36 pm


screen shot 2016-09-04 at 11 36 46 am
screen shot 2016-09-04 at 11 06 05 pm


screen shot 2016-09-04 at 11 45 18 am
screen shot 2016-09-04 at 11 06 05 pm


screen shot 2016-09-04 at 11 52 55 am
screen shot 2016-09-04 at 11 53 09 am
screen shot 2016-09-04 at 11 06 05 pm


screen shot 2016-09-04 at 12 50 02 pm
screen shot 2016-09-04 at 12 50 16 pm
screen shot 2016-09-04 at 12 50 32 pm
screen shot 2016-09-04 at 12 50 49 pm

@appleJax appleJax changed the title Add bourbon media query breakpoints. Make landing page and onboarding responsive. Make Code Corps responsive. Add bourbon media query breakpoints. Sep 4, 2016
@olegko
Copy link

olegko commented Sep 8, 2016

Overall, looks great. Some notes..
https://cloud.githubusercontent.com/assets/13618860/18116200/92344ade-6efa-11e6-8ec9-b0273f947aad.png <-- any reason why that 2nd row of skills only has 2 listed and the next 4? May make other skill layouts look weird.

https://cloud.githubusercontent.com/assets/13618860/18238713/9766ea4a-72f4-11e6-8a71-38e481faa629.png <-- would look slicker if the icons were placed inside the input fields, right aligned (kinda looks awkward when its just a check below the input). But don't think its a big deal.

https://cloud.githubusercontent.com/assets/13618860/18229466/4a0d934a-722f-11e6-9707-453d20aaeb66.png
https://cloud.githubusercontent.com/assets/13618860/18238745/e9c3139a-72f4-11e6-834e-a9f74fcc1f41.png
<-- text box fields get cut off in screenshots

https://cloud.githubusercontent.com/assets/13618860/18229470/54175f56-722f-11e6-9c8c-1c79d813e2c6.png <-- I kinda like that separator line in the nav (no other screenshots have them). Maybe we can make that part of mobile design?

@appleJax
Copy link
Contributor Author

appleJax commented Sep 8, 2016

@olegko thanks for the feedback!

The way the skills naturally wrap from desktop to mobile made the 2nd row have only two items. I left it that way because it's symmetrical, but I can play around with it.

Nice thought putting the icons inside the input fields. It's gonna take some work to get that to display correctly, but I think it might be worth it.

The text boxes that are getting cut off are an artifact of a bad screenshot from an older commit. We have since added horizontal padding to the body, and it is not issue.

The separator line is actually the top border of the code corps project card. The side borders are getting cut off for the same reason I mentioned above. I agree that it kinda looks nice though, and I think we should A/B adding a separator to the nav.

@appleJax
Copy link
Contributor Author

I fixed the wrapping issue with .demo-skills section of index.hbs thanks to feedback from @olegko, and I've updated the screenshot to reflect the change.

Also, I edited a screenshot of the signup screen to make the success and error icons appear inside the text fields. Implementing this in css will take quite a bit of work, so I wanted to make sure we all agree this is a desired change before I spend too much time trying to figure it out. Here is the edited screenshot:

codecorps

@joshsmith
Copy link
Contributor

@appleJax I'm not a huge fan of that change. I don't think we lose anything by having the icons appear below, alongside the text.

I would heartily advocate for less code if the UI isn't meaningfully altered.

@appleJax
Copy link
Contributor Author

@joshsmith ok, that's a relief. Do you know who all the design folks are on github? I only know of @ivy-g. I think they should be part of the conversation on this PR.

@joshsmith
Copy link
Contributor

I'm not sure who everyone on here is who have been involved in design. It's primarily been myself. I need to loop back on this after I get everything wrapped up on the Phoenix deployment side.

@joshsmith
Copy link
Contributor

@appleJax much prefer not merging develop into this branch but instead doing a git rebase as you go. Otherwise you get twice the merge issues when you do eventually rebase.

@appleJax
Copy link
Contributor Author

I'm actually not sure how that last commit got there. I merged develop into my branch yesterday before I fixed the wrapping issue, but the last thing I did was rebase, and that was before I pushed anything or commented on here about the change.

@joshsmith
Copy link
Contributor

@appleJax you or someone else pushed the button in the GitHub UI. That button is bane of my existence.

@appleJax
Copy link
Contributor Author

@joshsmith oh damn, I'm on my phone right now, so I'm not sure what button you're talking about, but it was probably me, especially if it's near the assignee dropdown.

@appleJax
Copy link
Contributor Author

Oh ok, I found the button, lol. Will try to resist the urge to press it...

@sarupbanskota
Copy link
Contributor

sarupbanskota commented Oct 9, 2016

Wow, this is awesome work!

I just had some opinions/suggestions, but they're not exactly relevant here and so could be next steps if there's interest.

  1. On a smaller device, the logo on top left is a bit too big. Would be cool to either just use the logo mark and make it smaller.
  2. Same for the icons under What are you interested in?
  3. To prevent too much scrolling, it could be worth removing the checkbox-ifed sections on What are you interested in? and making the icons themselves clickable.

@marineb
Copy link
Contributor

marineb commented Dec 8, 2016

@appleJax happy to help resolve the conflicts. let me know if I can help!

@appleJax
Copy link
Contributor Author

appleJax commented Dec 8, 2016

@marineb thanks, I can take care of it. I was under the impression that this PR was on hold, so I was kinda waiting for us to get around to it rather than keeping it up-to-date through every change in the codebase. Now is a good time for an update though, it's been a while.

@joshsmith
Copy link
Contributor

@appleJax I have renewed urgency to unblock you. ❤️

@appleJax appleJax force-pushed the responsive-layout branch 2 times, most recently from 7dff510 to 3167e98 Compare December 8, 2016 03:29
@joshsmith
Copy link
Contributor

@appleJax looks like this got caught at a weird time that builds weren't happening. Would you mind a quick rebase to try and restart the build?

Also, feel free to invite me to your repo so I don't have to bug you about something that simple.

@joshsmith
Copy link
Contributor

@appleJax I think that builds are working again. Can you try a fresh push?

@joshsmith
Copy link
Contributor

@appleJax there are some new conflicts due to upstream merges from #846. We can go through them if you'd like, although I know you were trying to use this mostly as frame of reference for a new PR, anyway.

@appleJax
Copy link
Contributor Author

appleJax commented Feb 10, 2017 via email

@joshsmith
Copy link
Contributor

Closing in favor of another PR. @appleJax has fork for ref.

@joshsmith joshsmith closed this Feb 11, 2017
@joshsmith joshsmith deleted the responsive-layout branch February 11, 2017 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants