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

Gitcoin: Issue #174 #207

Merged
merged 13 commits into from
Jan 11, 2018
Merged

Gitcoin: Issue #174 #207

merged 13 commits into from
Jan 11, 2018

Conversation

Elaniobro
Copy link
Contributor

@Elaniobro Elaniobro commented Jan 3, 2018

Description

Coding the design for the iOS landing page as provided in #137

  • Adding in routing for ios
    • Removing redirect to google form
  • Adding ios template
  • Adding in routing for itunes
    • Stubbed out redirect for itunes
  • Added in .mp4 video assest
Commits that need to be added to this PR:
  • Adding image assets
  • Adding ios conditional check(s) for ios specific functionality in nav.html and
    nav_internal.html
  • /ios specific css markup
  • ios template markup
  • href update app store button urls
Checklist
  • linter status: 100% pass
  • npm run stylelint produces a slew of indentation errors on top of valid stylelint errors. These will not be fixed as part of this PR.
  • changes don't break existing behavior
  • commit message follows commit guidelines
Affected core subsystem(s)

ui

Refers/Fixes

#137
#174

@Elaniobro
Copy link
Contributor Author

Still work to do. Can we add a WIP or HOLD label to this PR for now?

@thelostone-mc
Copy link
Member

@Elaniobro let me know when it's done, i'll help review ^_^ I've got some time to spare

@Elaniobro
Copy link
Contributor Author

Thanks @thelostone-mc feel free to pull down and let me know your thoughts so far. The CSS has been a little bit of a battle, lots of !important that are pulled in that have to be overwritten!

@Elaniobro
Copy link
Contributor Author

@thelostone-mc have you had a chance to take a gander?

@thelostone-mc
Copy link
Member

@Elaniobro ah sorry got held up with some work! Checking it now

@@ -315,3 +315,161 @@ div.button-pink {
/* IE 10+ */
color: lightgray;
}

.ios {
Copy link
Member

Choose a reason for hiding this comment

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

Worth moving this to it's own file rather than keeping it in gitcoin.css?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, was thinking this as well.

Moved all the ios into its own file.

<div class="row">
<div class="col-md-4" style="">
<div class="text-center">
<div class="flat-card">
Copy link
Member

Choose a reason for hiding this comment

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

We already have cards set up here. Consider reusing them, we could improve them as well ? Just a thought

@thelostone-mc
Copy link
Member

thelostone-mc commented Jan 6, 2018

  • As far as I remember there was a decision to move to Open-Sans font and we are already using it for toolbox page. @algae12 are we still doing this ?

  • I see an extra image present behind the video ! We need to take that out

screenshot-2018-1-6 gitcoin push open source repos forward

  • the font in the card seems a bit too huge :/ does it look better if it's shrunk down ?

  • in mobile view ( font seems too big ) and the cards don't seem like cards 😓 might have to add some padding to fix that ( or re-use the cards used in toolbox ),

screen shot 2018-01-05 at 11 30 42 pm

screen shot 2018-01-05 at 11 30 58 pm

  • mobile video width seems a little too small, maybe maximize it's width or landscape and portait mode for mobile.

screen shot 2018-01-05 at 11 38 22 pm

  • left a few more comments ^_^

@thelostone-mc
Copy link
Member

thelostone-mc commented Jan 6, 2018

(Also not relevant here but @owocki the navbar has different heights on different page ).
Not sure how this happened 😓

screen shot 2018-01-05 at 11 28 06 pm

screen shot 2018-01-05 at 11 28 17 pm

@Elaniobro
Copy link
Contributor Author

@thelostone-mc

  • re-worked the cards to use the existing styles.
  • Added
    • ios.css
    • gitcoin_hover.gif (transparent version)
      • - need stactic version of this as well.
  • Modified head template to accomadate
    • ios.css
    • card.css
    • toolbox.css
  • Reduced the overall width of the card for mobile
  • Made video 100% width on smaller viewports
  • Fixed footer padding

Still need the video asset as well as logo asset and href values.

@thelostone-mc
Copy link
Member

If we change the font to Open Sans the text would stay within the card ( @algae12 has to confirm the font )

screen shot 2018-01-08 at 9 59 02 am

Other than that rest looks good 👍 ^_^

@Elaniobro
Copy link
Contributor Author

@thelostone-mc odd, thought I had corrected that with min-height.

Thank you for reviewing, if the font is wrong, lets get confirmation on the font to use and I will address both at the same time.

@owocki
Copy link
Contributor

owocki commented Jan 8, 2018

just got back from my vacation.. and i got say "holy progress batman!". awesome!

lmk if anything needed from me on this :)

@codecov
Copy link

codecov bot commented Jan 9, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@c61aa4d). Click here to learn what that means.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #207   +/-   ##
=========================================
  Coverage          ?   11.74%           
=========================================
  Files             ?       69           
  Lines             ?     3423           
  Branches          ?      370           
=========================================
  Hits              ?      402           
  Misses            ?     3021           
  Partials          ?        0
Impacted Files Coverage Δ
app/app/urls.py 0% <ø> (ø)
app/app/sitemap.py 0% <ø> (ø)
app/retail/views.py 0% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c61aa4d...3397864. Read the comment docs.

@Elaniobro Elaniobro mentioned this pull request Jan 10, 2018
@Elaniobro
Copy link
Contributor Author

@owocki added in the ogg video support, and modified the helmet logo to coincide with the design. I think this is ready to :shipit: 📦 🚀

Thanks @thelostone-mc for the peer review. 🥂

@owocki
Copy link
Contributor

owocki commented Jan 10, 2018

reviewing now..

@owocki
Copy link
Contributor

owocki commented Jan 10, 2018

my first thought upon pulling up /ios on my local... "damn, that looks _nice!"

@owocki
Copy link
Contributor

owocki commented Jan 10, 2018

page looks good in tablet, desktop, and mobile dimensions

@owocki
Copy link
Contributor

owocki commented Jan 10, 2018

some margin between these two buttons would be nice http://bits.owocki.com/3T172r242p0X/Screen%20Shot%202018-01-09%20at%209.31.59%20PM.png

@owocki
Copy link
Contributor

owocki commented Jan 10, 2018

on second thought... i dont really see any need for the 'mobile' button in the nav

@owocki
Copy link
Contributor

owocki commented Jan 10, 2018

just finished looking at the LP. reviewing code now

Copy link
Contributor

@owocki owocki left a comment

Choose a reason for hiding this comment

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

some very minor comments... otherwise... very happy with the state of things so ffar!

```
Navigate to `http://0.0.0.0:8000/`.
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM... althought not necessarily related to this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If its ok with you, I'll leave it in. I think this PR will be ready to merge 🌐 in soon.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok w me

@@ -28,6 +28,7 @@ def items(self):
'whitepaper',
'whitepaper_access',
'_leaderboard',
'ios',
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Danke Shoen! 🎩

}

.ios .video {
width: 100%;
Copy link
Contributor

Choose a reason for hiding this comment

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

inconsistent indentation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fd67299 fixes this issue.

@@ -18,7 +18,7 @@

<nav class="navbar navbar-expand-md navbar-dark">
<a class="navbar-brand pt-0 pb-0" href="/">
<img id="logo" src="/static/v2/images/logo_large.png" data-hover="/static/v2/images/logo_large_hover.gif" width="150" height="50" />
<img id="logo" src="{% if request.path == '/ios' %}/static/v2/images/ios/gitcoin.svg{%else%}/static/v2/images/logo_large.png{% endif %}" data-hover="{% if request.path == '/ios' %}/static/v2/images/ios/gitcoin_hover.gif{%else%}/static/v2/images/logo_large_hover.gif{% endif %}" {% if not request.path == '/ios' %}width="150"{%endif%} height="50" />
Copy link
Contributor

Choose a reason for hiding this comment

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

this line is hard to maintain from my perspective... id rather wrap the whole <img> block inside of the {% if request.path == '/ios' %} block

Copy link
Contributor Author

Choose a reason for hiding this comment

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

72c4d59 resolves this.

@@ -31,7 +31,7 @@
"ansi-styles": {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this file be .gitignore'd?

Copy link
Member

Choose a reason for hiding this comment

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

Could we leave it here ?

package-lock ensures that installing modules from the same package.json never results in two different installs for different users!
The node community kinda encourages folks to not ignore it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@owocki I made comments on your comments, feel free to leave more comments :)

@owocki
Copy link
Contributor

owocki commented Jan 10, 2018

i think i will merge this in soon... and just comment out the URL route for now... when apple finally approves the app and we have a release date.. i can uncomment it.

any other changes needed @Elaniobro @thelostone-mc ?

@Elaniobro
Copy link
Contributor Author

Hey @owocki which URL do you want commented out specifically? Are we talking Mobile in the nav?

@owocki
Copy link
Contributor

owocki commented Jan 10, 2018

Are we talking Mobile in the nav?

yes!

@Elaniobro
Copy link
Contributor Author

@owocki

@thelostone-mc
Copy link
Member

Yup LGTM !!
@Elaniobro you might wanna squash the commits :P

@Elaniobro
Copy link
Contributor Author

@thelostone-mc how can I? I don't think I can hit the squash & merge button....

@thelostone-mc
Copy link
Member

thelostone-mc commented Jan 11, 2018

Ah didn't notice the merge commit 😓
you could squash the last 23 commits, leave the merge commit and whatever before that as is!!

You could always cherry-picks the commits before merge individually into a new branch but bleh too much of grunt work

@Elaniobro
Copy link
Contributor Author

@owocki this has been squashed, worked with @thelostone-mc to do so. 👍

@owocki owocki merged commit f1ab02c into gitcoinco:master Jan 11, 2018
ethikz pushed a commit to ethikz/web that referenced this pull request Jan 24, 2018
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.

3 participants