mention swap source in ui

This commit is contained in:
Matthias Kretschmann 2024-04-01 04:19:05 +01:00
parent 82254994de
commit 5e90976479
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 10 additions and 2 deletions

View File

@ -2,6 +2,7 @@ import type { Metadata } from 'next'
import { Hanken_Grotesk } from 'next/font/google' import { Hanken_Grotesk } from 'next/font/google'
import '@/styles/globals.css' import '@/styles/globals.css'
import '@/styles/loading-ui.css' import '@/styles/loading-ui.css'
import Script from 'next/script'
const hankenGrotesk = Hanken_Grotesk({ const hankenGrotesk = Hanken_Grotesk({
subsets: ['latin'], subsets: ['latin'],
@ -20,6 +21,13 @@ export default function RootLayout({
}>) { }>) {
return ( return (
<html lang="en"> <html lang="en">
<head>
<Script
async
src="https://a.kretschmann.io/script.js"
data-website-id="6565eff1-a1c8-4b3e-a6c4-08ecb00b06ab"
/>
</head>
<body className={hankenGrotesk.variable}>{children}</body> <body className={hankenGrotesk.variable}>{children}</body>
</html> </html>
) )

View File

@ -1,5 +1,5 @@
.label { .label {
font-size: 0.65rem; font-size: 0.75rem;
color: rgba(var(--foreground-rgb), 0.6); color: rgba(var(--foreground-rgb), 0.6);
border: 1px solid rgba(var(--foreground-rgb), 0.15); border: 1px solid rgba(var(--foreground-rgb), 0.15);
border-radius: var(--border-radius); border-radius: var(--border-radius);

View File

@ -22,7 +22,7 @@ export function Swap() {
setAmount={setAmount} setAmount={setAmount}
setToken={setTokenSymbol} setToken={setTokenSymbol}
/>{' '} />{' '}
right now gets you: on Uniswap right now gets you:
</h3> </h3>
<SwapResults tokenSymbol={tokenSymbol} amount={debouncedAmount} /> <SwapResults tokenSymbol={tokenSymbol} amount={debouncedAmount} />