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

Location styling #32

Merged
merged 7 commits into from
Feb 19, 2017
Merged

Location styling #32

merged 7 commits into from
Feb 19, 2017

Conversation

hminnovation
Copy link
Contributor

@hminnovation hminnovation commented Feb 15, 2017

Should close #31, #24, and works towards #9

  • Two col location index page

    • Title
    • Thumbnail image
    • Address
    • Link to map
    • [ ] If location is open
  • Location detail page

    • Image
    • Title
    • Opening hours
    • Map
    • Fixing mouse scroll Google map issue (currently we have a brittle pointer-event CSS hack that I introduced)
    • Introduction
    • Body
    • [ ] Highlight opening times for today() (in a timezone naive way)
  • Fix merge conflicts
    Apologies for poor branch name.

@shacker
Copy link
Contributor

shacker commented Feb 15, 2017

By "mouse scroll issue" do you mean what happens when the scroll goes over the map and switches to map zoom? That could be mostly solved by not running the map full-width, so you can scroll over whitespace. We don't want to lose the ability to zoom the map.

@hminnovation
Copy link
Contributor Author

Yup, exactly that. Though @shacker you'd still have the issue that if the mouse cursor is over the map your scroll will be hijacked, even if the map's smaller it doesn't really solve the issue, just makes it slightly less likely to happen. We definitely don't want to lose the functionality of users being able to click/ zoom in the map though. It's a reasonable well known problem, and the solution is to just swap out a class with JS if the user clicks to the map.

@hminnovation
Copy link
Contributor Author

hminnovation commented Feb 15, 2017

Think this is code complete. I'm going to deal with the time parts of this on a future PR since they're proving slightly more time consuming that I expected to do elegantly.

Note that it'd be good to do a second pass on this design when the other sections of the site are styled, but I think it's okay for now.

Happy to resolve conflicts and commit them to this branch before someone reviews if that's easier?
screencapture-localhost-8000-location-index-page-1487196837008
screencapture-localhost-8000-location-index-page-location-1487196676466

@hminnovation hminnovation changed the title Location enhancements Location styling Feb 15, 2017
@daaray daaray self-requested a review February 16, 2017 22:36
@daaray
Copy link
Contributor

daaray commented Feb 16, 2017

There are some conflicts that need to be resolved. The styling on the branch is great; uncertain how the new code from master should be (or not be) incorporated.

🚀

Copy link
Contributor

@daaray daaray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned in the comment, the styling looks good.
However, the merge conflicts need to be resolved before merge, and I am uncertain as to how to meaningfully resolve as I have not focused on the front end thus far.

@hminnovation
Copy link
Contributor Author

I'll take on the merge conflicts. I think it's probably easiest for me to address them.

@hminnovation
Copy link
Contributor Author

@daaray I've fixed the merge conflicts. @shacker to mention I think yesterday you committed a couple of things that conflicted with this branch direct to master. Would be good if you can review too before it gets merged. I'd suggest that we deal with any of those issues as a subsequent issue/ PR (e.g. whether to show the location index page image on the template or not)

@hminnovation hminnovation self-assigned this Feb 18, 2017

{% block content-header %}
{% include "base/include/header.html" %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heymonkeyriot I had gone through and moved all of the headers into a common header include. It looks like that has been lost here. Intentional? If not, can we preserve or refactor that system? (OK if we do that after this lands).

@shacker
Copy link
Contributor

shacker commented Feb 18, 2017

I suspect this will also result in conflicts with the migration files in PR #47 , but at this point we should just go with whichever is completed first, then the other can manually resolve those.

@shacker shacker merged commit 91a000a into master Feb 19, 2017
@shacker shacker deleted the location-enhancements branch February 19, 2017 08:37
@shacker
Copy link
Contributor

shacker commented Feb 19, 2017

I've tested and merged this to keep the ball rolling, but it raised a few questions (I'll make separate tickets):

  • Restore global header include
  • Styling for me doesn't look for me like it does in the screenshot above?
  • Google map code is still in place, but on-page maps are broken. Do we want both on- and off-page maps?

@hminnovation hminnovation restored the location-enhancements branch February 19, 2017 20:41
@hminnovation hminnovation deleted the location-enhancements branch February 19, 2017 21:02
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 this pull request may close these issues.

Location images being stretched to 100% on index page
3 participants