Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sonln99 committed Jun 21, 2024
1 parent 9a76e0f commit 3fe87b3
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 36 deletions.
8 changes: 0 additions & 8 deletions src/app/get-aura/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
"use client";

import { RainbowKitProvider } from "@rainbow-me/rainbowkit";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
import { useEffect, useState } from "react";
import "./style.css";

Expand All @@ -18,11 +14,7 @@ export default function Layout({
}
return (
<div className="bg-[#000] pb-24">
<RainbowKitProvider>
{children}
</RainbowKitProvider>

<ToastContainer position="top-right" autoClose={3000} hideProgressBar={true} newestOnTop={false} closeOnClick rtl={false} pauseOnFocusLoss draggable pauseOnHover theme="dark"></ToastContainer>
</div>
);
}
2 changes: 1 addition & 1 deletion src/app/get-aura/wallet-connect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function WalletConnectEVM() {
Your Journey Start Here
</h1>
<div className="text-medium-gray text-center text-xl lg:text-[20px] font-normal leading-8 max-w-[717px]">
But first, let’s get you some AURA
But first, let's connect your wallet
</div>
</div>
<ConnectButton.Custom>
Expand Down
71 changes: 44 additions & 27 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { WagmiProvider } from "wagmi";
import { aura } from "@/common/aura-chain";
import { RainbowKitProvider, getDefaultConfig } from "@rainbow-me/rainbowkit";
import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";

const ppmori = localFont({
src: "./../assets/fonts/PPMori-SemiBold.otf",
Expand Down Expand Up @@ -42,39 +44,54 @@ export default function RootLayout({
return (
<WagmiProvider config={configWallet}>
<QueryClientProvider client={queryClient}>

<html lang="en">
<Script
id="gtm-script"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
<html lang="en">
<Script
id="gtm-script"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-K3NWXQS');`,
}}
/>
<body
className={`${inter.className} ${ppmori.variable} scroll-smooth`}
>
<div>
<input
className="nav-input hidden"
type="checkbox"
id="nav-input"
/>
<Header />
<RainbowKitProvider>{children}</RainbowKitProvider>
<ToastContainer
position="top-right"
autoClose={3000}
hideProgressBar={true}
newestOnTop={false}
closeOnClick
rtl={false}
pauseOnFocusLoss
draggable
pauseOnHover
theme="dark"
></ToastContainer>
<Footer />
<label htmlFor="nav-input" className="nav-overlay">
{" "}
</label>
</div>
<noscript
dangerouslySetInnerHTML={{
__html: `<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K3NWXQS"
height="0" width="0" style="display:none;visibility:hidden"></iframe>`,
}}
/>
<body className={`${inter.className} ${ppmori.variable} scroll-smooth`}>
<div>
<input className="nav-input hidden" type="checkbox" id="nav-input" />
<Header />
<RainbowKitProvider>
{children}
</RainbowKitProvider>
<Footer />
<label htmlFor="nav-input" className="nav-overlay">
{" "}
</label>
</div>
<noscript
dangerouslySetInnerHTML={{
__html: `<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K3NWXQS"
height="0" width="0" style="display:none;visibility:hidden"></iframe>`,
}}
/>
</body>
</html>
</body>
</html>
</QueryClientProvider>
</WagmiProvider>
);
Expand Down

0 comments on commit 3fe87b3

Please sign in to comment.