Skip to content

Commit

Permalink
Feat/meta (#365)
Browse files Browse the repository at this point in the history
* add meta

* remove old

* update url

* use react helmet

* update to jpg
  • Loading branch information
jmzwar authored Jul 18, 2024
1 parent 3bf4958 commit 28d5dc6
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 16 deletions.
2 changes: 1 addition & 1 deletion liquidity/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta content="initial-scale=1, width=device-width" name="viewport" />
<meta content="ie=edge" http-equiv="X-UA-Compatible" />
<meta name="description" content="Synthetix V3" />
<meta charset="utf-8" />
<link rel="icon" href="favicon.ico" />
<title>Synthetix Liquidity</title>
<!-- Matomo -->
Expand Down
Binary file added liquidity/ui/public/Liquidity.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 37 additions & 15 deletions liquidity/ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { TermsModal } from '@snx-v3/TermsModal';
import { SESSION_STORAGE_KEYS } from '@snx-v3/constants';
import { Router } from './Router';
import { Web3OnboardProvider } from '@web3-onboard/react';
import Head from 'react-helmet';
import { onboard } from './utils/onboard';
import { Progress } from './utils/theme';

Expand Down Expand Up @@ -57,20 +58,41 @@ export const App = () => {
sessionStorage.getItem(SESSION_STORAGE_KEYS.TERMS_CONDITIONS_ACCEPTED) === 'true';

return (
<QueryClientProvider client={queryClient}>
<Web3OnboardProvider web3Onboard={onboard}>
<ChakraProvider theme={extendedTheme}>
<ColorMode />
<Fonts />
<GasSpeedProvider>
<HashRouter>
<TermsModal defaultOpen={!TERMS_CONDITIONS_ACCEPTED} />
<Router />
</HashRouter>
</GasSpeedProvider>
<ReactQueryDevtools />
</ChakraProvider>
</Web3OnboardProvider>
</QueryClientProvider>
<>
<Head>
{/* open graph */}
<meta property="og:url" content="https://liquidity.synthetix.eth.limo/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Synthetix | Liquidity" />
<meta
property="og:description"
content="The Liquidity Layer of DeFi. Provide liquidity for the next generation of permissionless protocols"
/>
<meta property="og:image" content="/Liquidity.jpg" />
<meta property="og:image:alt" content="Synthetix | Liquidity" />
<meta property="og:site_name" content="" />
{/* twitter */}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@synthetix_io" />
<meta name="twitter:creator" content="@synthetix_io" />
<meta name="twitter:image" content="/Liquidity.jpg" />
<meta name="twitter:url" content="https://liquidity.synthetix.eth.limo/" />
</Head>
<QueryClientProvider client={queryClient}>
<Web3OnboardProvider web3Onboard={onboard}>
<ChakraProvider theme={extendedTheme}>
<ColorMode />
<Fonts />
<GasSpeedProvider>
<HashRouter>
<TermsModal defaultOpen={!TERMS_CONDITIONS_ACCEPTED} />
<Router />
</HashRouter>
</GasSpeedProvider>
<ReactQueryDevtools />
</ChakraProvider>
</Web3OnboardProvider>
</QueryClientProvider>
</>
);
};

0 comments on commit 28d5dc6

Please sign in to comment.