-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
testimonial: added carousel on landing page #80
Conversation
@tra38 @ethikz @thelostone-mc -- im thrilled that everyones excited about this and that we've got working testimonial modules, but i wish we had all coordinated better. it makes me sad we can't use all three 3 PRs. but i pulled down all 3 codebases and all 3 work, so that's pretty cool! ill own not having a better claim tool. that's on gitcoin. so... where do we go from here? whats best for the repo? |
looks like #80 is the closest to the mockup at the moment. the prev/next controls still need to be centered properly within the circle. The icons surrounded the user-photo is lacking that layered effect with the illustrative elements but that might be because that place-holder image is transparent? In either case, there should probably be a background color set to the image to mitigate that issue. The cited name should also be in caps. Thanks everyone! |
Since open source is built on collaboration, it would seem the best way of handling this scenario is to merge all the best ideas from the different PRs into a single PR to be merged into master. All people involved will share in the bounty, based on how much contribution each person did to the overall task. I'm perfectly fine with @thelostone-mc rewriting my codebase. There's some features in the old codebase that I want to port over to the new one (such as allowing programmers to change slide timings), mostly by adding commits to this PR. Would that be okay with you, @thelostone-mc? |
@tra38 By all means -> port it over via a commit :D (For now, one has to edit this line here to change the timings ) |
awesome @thelostone-mc. re: background image, I don't think you need to detect transparency first. setting a background color of #FAFAFA or something to |
PS: Is the font-size for the cited name alright or does it need to be increased ? |
thanks for working together everyone.. im thrilled that you're working together in the spirit of open source :) let me figure out what to do about the bounty payout here while you all iron out the PR. |
@ethikz what do you think of this approach? |
@thelostone-mc, here's my commit with my suggested changes to your code. It's in a separate branch since I don't know how to push code onto your branch. Let me know how you like it. |
@thelostone-mc here is an example codepen of what I'm talking about, there shouldn't be any additional padding causing the issue in the screenshot I don't think. re: font-size I can't inspect that image to check but the computed size that's rendered for the block quote is 20px and the cited name is 16px. Both the block quote and cited name should be a medium weight so probably like |
@owocki do you happen to know if the testimonial images will be photos or illustrations? Maybe we're thinking too much about setting fallbacks if we know the exact images we're building for. |
@taurean i'm still gathering the images. do you think gitcoin style illustrations (like my avatar) would look good? if so, we could probably get them hooked up |
413839c
to
3046785
Compare
@tra38 I''ve made the changes (feel free to double check ^_^ ) |
@thelostone-mc: PR sent! 👍 |
- created a fadein-fadeout carousel for testimonial on the landing page - populated with dummy content - responsive design - used font-awesome icons and shapes instead of the images Refs: gitcoinco#63
3046785
to
a3561f4
Compare
… when slides change Allowing users to control slideDuration via views.py makes it easy to change the duration of each slide without having to affect the actual JS logic. Resetting the timer whenever the slide changes fixes a bug that can occur whenever the slide auto-advances while the user interacts with the carousel.
@owocki I guess we are done from our end ^_^ |
sawwwweetttt.. rdy for me to test then? |
@owocki That's the one \m/ |
pulled it down to QA.
woo hoo! |
} | ||
|
||
.carousel .avatar .circle-small { | ||
position: relative; |
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.
inconsistent tab / spacing on this file. can we clean that up real quick?
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.
Haha getting that done !! Thanks for pointing that out ^_^
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.
still looks inconsistent to me
@@ -26,7 +26,14 @@ | |||
|
|||
|
|||
def index(request): | |||
slides = [ |
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.
i love that this is abstracted out of the template :)
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.
credits go to @tra38 :D
app/retail/views.py
Outdated
context = { | ||
'slides': slides, | ||
'slideDuration': 6000, |
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.
ms
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.
Yup! we could rename it to slideDurationInMs
or leave a comment -> take your pick
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.
up to you
just left a few comments. then i think this is rdy to merge! |
chiming in really quick, looks like the controls for navigating to other testimonials are divs, ideally these should be buttons for accessibility reasons. |
18310d7
to
91517c0
Compare
Yup!
and firefox \m/ @taurean I meant to do that. Slipped my mind! Fixed ^_^ |
@owocki Sorry I didn't get any notification 😞 What approach are you referring to? |
|
- carousel control are now buttons - mouse turns to pointer on hover over control - re-indented code
91517c0
to
f9145ac
Compare
@owocki changes done ^_^ |
@owocki Oh...yea I saw. Whichever one is better I'd use. I threw it together quickly so maybe @thelostone-mc was able to provide a better solution |
i have a few testimonials sourced and i am just circling back with everyone to make sure they're double extra secret sure they're okay with being quoted publicly. i hope to have that content added to the PR by EOW |
ok ive got the testimonials sourced. testing for merge now |
https://gitcoin.co <= hows it look heres the commit for adding the real testimonials 729710f |
⚡️ A tip worth 0.075 ETH has been granted to @tra38 for this issue from Kevin Owocki. ⚡️ Nice work @tra38, check your email for further instructions. | Send a Tip |
⚡️ A tip worth 0.075 ETH has been granted to @ethikz for this issue from Kevin Owocki. ⚡️ Nice work @ethikz, check your email for further instructions. | Send a Tip |
thanks yall :) |
@owocki Looks good! Minor issue in the nav, arrows aren't exactly centered but other than that works and looks great |
⚡️ A tip worth 0.075 ETH has been granted to @thelostone-mc for this issue from Kevin Owocki. ⚡️ Nice work @thelostone-mc, check your email for further instructions. | Send a Tip |
testimonial: added carousel on landing page
Changes:
Refs: #63
@tra38 I rewrote the code base using yours as a starting point. Any thoughts on this approach ?
@owocki Also , the design laid out by @taurean was pretty sweet , but I decided to use font-awesome icons and basic shapes to recreate the design.
Could either of you spare a few min and make sure I've gotten everything right ?
Reason :
files added:
carousel.css
carousel.js
testimonials.js
files changed:
index.html
footer_scripts.html
head.html