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

feat: dynamically set meta tags #1453

Merged
merged 52 commits into from
Nov 20, 2024
Merged

feat: dynamically set meta tags #1453

merged 52 commits into from
Nov 20, 2024

Conversation

spsjvc
Copy link
Member

@spsjvc spsjvc commented Jan 19, 2024

closes FS-238

@cla-bot cla-bot bot added the cla-signed label Jan 19, 2024
Copy link

vercel bot commented Jan 19, 2024

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

Name Status Preview Updated (UTC)
arbitrum-token-bridge ✅ Ready (Inspect) Visit Preview Nov 20, 2024 1:22pm

@spsjvc spsjvc changed the title feat: dynamic meta tags feat: dynamically set meta tags Jan 19, 2024
packages/arb-token-bridge-ui/SpaceGrotesk-Medium.ttf Outdated Show resolved Hide resolved
transform: 'rotate(180deg)',
mixBlendMode: 'overlay',
backgroundImage:
'url("https://arbitrum.io/background/grains_bottom.png")',
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have it as part of this repo, we had issues in the past where images were moved on arbitrum.io

Copy link
Member

Choose a reason for hiding this comment

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

relative url does not work with satori.... only possible alternatives are

  1. change the element layout, and use this png in base64 form, or
  2. keep the image here, and do not use the current version but refer to prod bridge.arbitrum.io version

I think given that it's just grains for artistic effect, it's ok to use arbitrum.io, it's also not so bad if it's gone missing because the bg would just become pure black

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move it to bridge.arbitrum.io?

height={168}
/>
<img
src={`data:image/png;base64,${imageContent.toString('base64')}`}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use the image directly instead?

Copy link
Member

@fionnachan fionnachan Nov 11, 2024

Choose a reason for hiding this comment

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

as above, no

  1. relative links don't work, and
  2. svg format doesn't work

</span>
<img
src={chainToLogo[chain]}
alt="logo"
Copy link
Contributor

Choose a reason for hiding this comment

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

We should have the chain's name + logo in alt text

packages/arb-token-bridge-ui/package.json Show resolved Hide resolved
[
customInfuraProvider(),
publicProvider(),
jsonRpcProvider({
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this diff required in this PR?

Copy link
Member

Choose a reason for hiding this comment

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

it is because otherwise the transfer panel will not render

#1918 (comment)

packages/arb-token-bridge-ui/tsconfig.json Show resolved Hide resolved
@fionnachan fionnachan merged commit 1286e2b into master Nov 20, 2024
74 checks passed
@fionnachan fionnachan deleted the feat-dynamic-meta branch November 20, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants