-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
1244 how it works #1501
1244 how it works #1501
Conversation
app/app/urls.py
Outdated
@@ -175,6 +175,8 @@ | |||
url(r'^extension/chrome?', retail.views.browser_extension_chrome, name='browser_extension_chrome'), | |||
url(r'^extension/firefox?', retail.views.browser_extension_firefox, name='browser_extension_firefox'), | |||
url(r'^extension/?', retail.views.browser_extension_chrome, name='browser_extension'), | |||
url(r'^how_it_works/funder', retail.views.how_it_works_funder, name='how_it_works_funder'), |
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.
rename -> /funder/
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.
replace url
with path
(just check in this file to know how)
app/app/urls.py
Outdated
@@ -175,6 +175,8 @@ | |||
url(r'^extension/chrome?', retail.views.browser_extension_chrome, name='browser_extension_chrome'), | |||
url(r'^extension/firefox?', retail.views.browser_extension_firefox, name='browser_extension_firefox'), | |||
url(r'^extension/?', retail.views.browser_extension_chrome, name='browser_extension'), | |||
url(r'^how_it_works/funder', retail.views.how_it_works_funder, name='how_it_works_funder'), | |||
url(r'^how_it_works/contributor', retail.views.how_it_works_contributor, name='how_it_works_contributor'), |
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.
rename -> /contributor/
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.
replace url
with path
@@ -0,0 +1,134 @@ | |||
{% comment %} Copyright (C) 2017 Gitcoin Core This program is free software: you can redistribute it and/or modify it under |
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.
Could this be reindented?
</div> | ||
</div> | ||
|
||
<div class="testimonial-container w-100" style="height: 7px;"> |
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.
Could we rename it to and move the CSS to it's respective file?
Codecov Report
@@ Coverage Diff @@
## master #1501 +/- ##
==========================================
+ Coverage 28.27% 28.27% +<.01%
==========================================
Files 129 129
Lines 9520 9523 +3
Branches 1231 1231
==========================================
+ Hits 2692 2693 +1
- Misses 6730 6732 +2
Partials 98 98
Continue to review full report at Codecov.
|
app/retail/views.py
Outdated
@@ -62,6 +62,22 @@ def index(request): | |||
return TemplateResponse(request, 'index.html', context) | |||
|
|||
|
|||
def how_it_works_funder(request): |
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.
We could make this one view and determine the display type based on the path.
app/app/urls.py
Outdated
@@ -175,6 +175,8 @@ | |||
url(r'^extension/chrome?', retail.views.browser_extension_chrome, name='browser_extension_chrome'), | |||
url(r'^extension/firefox?', retail.views.browser_extension_firefox, name='browser_extension_firefox'), | |||
url(r'^extension/?', retail.views.browser_extension_chrome, name='browser_extension'), | |||
path(r'funder', retail.views.how_it_works_funder, name='how_it_works_funder'), |
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 will fail. If you're using r''
, you'll want to switch this to re_path()
- Otherwise, simply drop the r
here.
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.
Why this will fail?
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.
@darkdarkdragon The docs example should shed some light on it
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.
@thelostone-mc sorry, still don't understand. can you please point me to exact problem?
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.
@mbeacom can you please explain what is the problem here?
<div class="col text-center text-white how-it-works-footer"> | ||
<div class="mt-4 contributors-cta-text">{% blocktrans %}For more details, | ||
please see repo maintainer's guide or the | ||
<a target="_blank" href="https://github.com/gitcoinco/web/blob/contributing/CONTRIBUTING.md"> |
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.
We'll probably want to throw in rel="noopener noreferrer"
here
app/retail/views.py
Outdated
@@ -61,6 +61,13 @@ def index(request): | |||
} | |||
return TemplateResponse(request, 'index.html', context) | |||
|
|||
def how_it_works(request): |
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.
E302 expected 2 blank lines, found 1
@mbeacom we need to think of better path for this than @PixelantDesign I've attached the screenshots Ps: @darkdarkdragon @PixelantDesign Not a big fan of of the line going on top of the text. |
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.
In the original design the icons are closer to the numbers and the bottom section where it says "In some cases"...Can we shrink the graphics by 30%? They seem a little large.
can we also make the gray vertical line a few px thinner?
Looking great!
@thelostone-mc do you want it to look like this?: |
@PixelantDesign I've made icons close to the numbers |
Ah it's fine the way it is ! Thanks @darkdarkdragon ^_^ |
@darkdarkdragon could you update the CTAs right above the footer (both pages)? Developer Guide should link to this: Repo Maintainer Guide should link to this: |
@PixelantDesign no problem, will do in half an hour |
@PixelantDesign done |
How it Works / Contributor page finished
bottom images re-exported from sketch
Added links to Developer's guide and Maintainer's guide
40c3e8f
to
e2a2186
Compare
- reused existing css class - fixed line overlappint content - update URL -> /how/funder & /how/contributor
64a6098
to
b57022f
Compare
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.
LGTM !
@mbeacom I updated the url to keep it similiar to onboard (/onboard/contributor
)
/funder
-> /how/funder
/contributor
-> /how/contributor
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.
LGTM
All comments have been addressed ^_^
WIP - finished one page of #1244