-
Notifications
You must be signed in to change notification settings - Fork 54
[Affiliate] Banners styles look different #1571
Comments
I think we should move the warning message to the top (system message) and move the Affiliate program banner down. The cross that closes the banner now looks equal. To integrate the Affiliate program banner with the Profile page itself, I changed the background color of the banner. |
Hey @alongoni , could you please clarify what colors for banner will be for:
|
Light mode Dark mode |
Hei! Agree with @alfetopito About the specific colour I would ask @biocom The two banners showing together, will be in my opinion an edge case. It just happens that right now we show it always for xDAI network, but in general this banner won't be shown in the future. Eager to see Michel's input |
@biocom , what about banners that are displayed on the Swap page? |
@elena-zh On a second thought, my impression was these affiliate URL's would open on the profile/affiliate page. But not sure that page is relevant for a referral (user following an Affiliate url) and is only interesting for an Affiliate. Which in case I wonder if we could place that type of banner also above the Swap container. In your last screenshot, is this banner shown for the Affiliate or the referral? As it says:
So this is a code the Affiliate gave out and is reported to be working for the referrer? I was imagining something along the lines of:
In step 3, I think it makes sense to go to the Swap page (not the profile page) and show this banner right above the Swap container. In this message we can even highlight they can check their metrics/view profile. |
@biocom , based on the scheme
In all the rest cases banners are displayed in the Swap page/across all the app until a user closes them/affiliate program status is changed |
Hey @biocom, I've made this draft PR that you can test here. There are a couple of options that I was thinking with Ramiro and Henry about the position and width of the A) Relocate the component in the same file (AppMod.tsx) and change the width to ~77%: (you can see the draft PR): B) Use the WDYT? |
Hey @alongoni , option A looks better to me. Also, I wonder how these banners will be displayed in a mobile/tablet views? |
Thanks @elena-zh, I've fixed in the PR #1703 |
@alongoni Had just reviewed #1703 and then I saw this issue. I think you already made the suggestion I tried to make :) I think you suggestion B is what I'd go with. We could make it a more 'generic' purpose component 'Page alert box' or something. I can see other scenarios where we want to show a message similar to the affiliate one. |
Closed by #1703 |
Originally reported in #1405 (comment)
Banners styles look different. May be we should show these banners one by one? Or, at least, apply a similar design for both?

The text was updated successfully, but these errors were encountered: