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

BFE-300: Update Pools Banner #322

Open
wants to merge 5 commits into
base: v2
Choose a base branch
from

Conversation

PaulMcInnis
Copy link
Collaborator

@PaulMcInnis PaulMcInnis commented Jan 8, 2025

This:

  • displays the banner image across the full width of the screen
  • renders text and icons on top with responsiveness

Things we should consider:

  • we might want a max width
  • we should seek a SVG or Webp version of this background image to deal with resolution issues at even moderate screen sizes.

image

image
image

@PaulMcInnis PaulMcInnis self-assigned this Jan 8, 2025
Copy link

vercel bot commented Jan 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
v2-hub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 7:39pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
bartio-dex ⬜️ Ignored (Inspect) Visit Preview Jan 9, 2025 7:39pm
bartio-honey ⬜️ Ignored (Inspect) Visit Preview Jan 9, 2025 7:39pm
bartio-lend ⬜️ Ignored (Inspect) Visit Preview Jan 9, 2025 7:39pm
bartio-perps ⬜️ Ignored (Inspect) Visit Preview Jan 9, 2025 7:39pm
bartio-station ⬜️ Ignored (Inspect) Visit Preview Jan 9, 2025 7:39pm
berajs-docs ⬜️ Ignored (Inspect) Jan 9, 2025 7:39pm
storybook ⬜️ Ignored (Inspect) Visit Preview Jan 9, 2025 7:39pm
v2-honey ⬜️ Ignored (Inspect) Visit Preview Jan 9, 2025 7:39pm

Copy link
Contributor

@bearpong bearpong left a comment

Choose a reason for hiding this comment

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

Please respect design grid, also look at mobile design

Screenshot 2025-01-08 at 14 26 06 Screenshot 2025-01-08 at 14 26 28

Comment on lines 30 to 35
src={`${cloudinaryUrl}/station/pools-bg.png`}
alt="Pools Banner"
layout="responsive"
width={1200}
height={600}
className="h-auto w-full object-cover"
className="z-0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use fill instead height and width and set the ratio

Copy link
Collaborator Author

@PaulMcInnis PaulMcInnis Jan 8, 2025

Choose a reason for hiding this comment

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

unfortunately this will throw @bera/hub:dev: ⨯ Internal error: Error: Image with src "https://res.cloudinary.com/duv0g402y/image/upload/f_auto,q_auto/v1/station/pools-bg.png" is missing required "width" property.

@PaulMcInnis
Copy link
Collaborator Author

OK I've updated this to use the same insets (breakpoints) as exist in the container + updated the mobile design

image

It seems like the design we're using a different aspect ratio for the banner for mobile views, if we really need that we can do it as well (its better to do when we have the final asset really)

@Bearlinguer
Copy link
Collaborator

Here are some UI feedback:

Screen 1) There is no drop shadow/blur at the top and you can see a border that is not there on figma. Needs to be added to the menu bar.
Screen 2) The banner is in direct contact with the end of the screen without blur/dropshadow.
Screen 3) All text is yellowish and should be white, what happened?
Screen 4) Mobile UI is still very strange and all components are messy

  1. Screenshot 2025-01-09 alle 10 23 50
  2. Screenshot 2025-01-09 alle 10 23 59
  3. Screenshot 2025-01-09 alle 10 24 07
  4. Screenshot 2025-01-09 alle 10 29 02

@PaulMcInnis
Copy link
Collaborator Author

thanks! will circle back to this when I have a banner with a taller aspect ratio

…issue with text colour tag in the wrong level
@PaulMcInnis
Copy link
Collaborator Author

PaulMcInnis commented Jan 9, 2025

ok managed to rework this to handle the mobile view per the figma.

I think what's left is to set a max width as well / potentially render a the higher res asset

edit: OK we're getting a higher res asset ETA soon.

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