-
Notifications
You must be signed in to change notification settings - Fork 362
Conversation
Deployed to: http://staging.quran.com:32941 |
Hi,
i seem to be getting 2 banners on mobile safari
… On 25 Nov 2016, at 1:10 PM, Naveed Ahmad ***@***.***> wrote:
This should resolved #427
Opening PR for reviews and suggestions. Sorry still learning reactjs( and hating it so far ) so bear my bad ugly for now :)
You can view, comment on, or merge this pull request online at:
#508
Commit Summary
wip on app install banner #427
File Changes
A src/components/SmartBanner/index.js (193)
M src/config.js (4)
M src/containers/App/index.js (3)
A src/styles/components/SmartBanner.scss (299)
M src/styles/main.scss (1)
Patch Links:
https://github.com/quran/quran.com-frontend/pull/508.patch
https://github.com/quran/quran.com-frontend/pull/508.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@redhae thanks for reporting. Did you saw two banners simultaneously or closed the banner and saw again on page refresh ? Second case is known issue, working on that. But if first case if true, can you send screenshot or something to help me debugging ? EDIT: Please test again. I was forcefully showing ios banner for testing purposes. Still it shouldn't two two banner :/ |
Deployed to: http://staging.quran.com:32942 |
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.
Mashallah this will drive a lot of users to our apps.
LGTM!
@naveed-ahmad amazing work bro. I don't have an android to test it on. Can you include some screenshots? Happy for this to be merged in. |
@sabeurthabti preview for different mobiles and tables: https://drive.google.com/file/d/0B-_ddcseNUwLeHZKYU84V3lzRUk/view |
Deployed to: http://staging.quran.com:32950 |
display: inline-block; | ||
vertical-align: middle; | ||
margin: 0 5px; | ||
font-family: 'ArialRoundedMTBold', Arial; |
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.
IMO we should use font that we have used in quran.com. Font family should be either source sans pro
or Montserrat
or combination of both.
width: 100%; | ||
height: 80px; | ||
line-height: 80px; | ||
font-family: 'Helvetica Neue', sans-serif; |
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.
IMO we should use font that we have used in quran.com. Font family should be either source sans pro
or Montserrat
or combination of both.
@naveed-ahmad This might help you with react. |
6a316f1
to
d1ff813
Compare
Deployed to: http://staging.quran.com:32952 |
Deployed to: http://staging.quran.com:32953 |
Deployed to: http://staging.quran.com:32954 |
@arshdkhn1 removed the fonts, thanks for the course link. |
@naveed-ahmad Few suggestions - 1- Quran logo is too blurry to be used. 2- I see styling is different for different browsers/os. Did you change the colors of banner recently ? 3- IMO colors should be used that are complementary to our sites' color. They are looking a bit off the color scheme that is used in site. |
Deployed to: http://staging.quran.com:32971 |
strange, the build is failing because of the favicon for some odd reason...
|
out of curiosity, does this use whatever banner stuff Apple and Google have (i.e. will it detect if the app is installed and either not show the banner or show it with 'open' instead?) |
Safari on iOS 10.1.1 |
not to mention for Android, the native one is a lot nicer because it also pulls in info from Google Play and looks platform native - https://developer.android.com/distribute/users/banners.html |
For android, native banner is available only for Chrome 44 and greater version: And native iOS banners are available for safari 6 or greater. |
can we do both then? native if we can, else fallback to this? sorry, i am not trying to be difficult! |
Yep working on it. |
@naveed-ahmad is this good to go? |
@mmahalwy No, working on showing native banner for advance browsers and fallback to custom banner for older browsers. Ill try to finish this tonight. |
…m-frontend into app_install_banner
Deployed to: http://staging.quran.com:32981 |
Deployed to: http://staging.quran.com:32982 |
good to go? |
@mmahalwy Gooood to go! |
Deployed to: http://staging.quran.com:32983 |
22d3296
to
af0e3c6
Compare
Deployed to: http://staging.quran.com:32984 |
Deployed to: http://staging.quran.com:32985 |
…m-frontend into app_install_banner
Deployed to: http://staging.quran.com:32986 |
good now? No more commits? :) |
@mmahalwy lol yeah good to go now. |
This should resolved #427
Opening PR for reviews and suggestions. Sorry still learning reactjs( and hating it so far ) so bear my bad ugly for now :)