Skip to content

Commit

Permalink
Merge pull request #2 from hollow-leaf/feat/opbnb_connect
Browse files Browse the repository at this point in the history
feat: opBNB testnet default connect
  • Loading branch information
crypto0627 authored Dec 8, 2023
2 parents 52c37a6 + 1b31cf7 commit 2437cec
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 45 deletions.
8 changes: 8 additions & 0 deletions apps/web3/src/app/about.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from "react"
export default function About () {
return(
<>
About
</>
)
}
10 changes: 0 additions & 10 deletions apps/web3/src/app/hospital/page.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions apps/web3/src/app/insurance/page.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions apps/web3/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// components
import { Navbar, Footer } from "@/components";

// sections
import Hero from "./hero";
import VideoIntro from "./video-intro";
Expand All @@ -12,14 +9,12 @@ import Faqs from "./faqs";
export default function Campaign() {
return (
<>
<Navbar />
<Hero />
<VideoIntro />
<Feature />
<MobileConvenience />
<Testimonials />
<Faqs />
<Footer />
</>
);
}
10 changes: 0 additions & 10 deletions apps/web3/src/app/result/page.tsx

This file was deleted.

18 changes: 12 additions & 6 deletions apps/web3/src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ import {
RainbowKitProvider,
Theme,
} from "@rainbow-me/rainbowkit";
import { configureChains, createConfig, sepolia, WagmiConfig } from "wagmi";
import { goerli, mainnet, polygonMumbai } from "wagmi/chains";
import { configureChains, createConfig, WagmiConfig } from "wagmi";
import { opBNB, opBNBTestnet } from "wagmi/chains";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { publicProvider } from "wagmi/providers/public";
import Navbar from "./navbar";
import Footer from "./footer";

const { chains, publicClient, webSocketPublicClient } = configureChains(
[goerli],
[opBNBTestnet],
[publicProvider()]
);

const { connectors } = getDefaultWallets({
appName: "Cathay Co2 App",
projectId: "aee029c7cbcb082fb760081017c3dec5",
appName: "Psyduck",
projectId: "966691db73928f3c8a904ea62261b457",
chains,
});

Expand All @@ -43,7 +45,11 @@ export function Layout({ children }: { children: React.ReactNode }) {
<QueryClientProvider client={queryClient}>
<WagmiConfig config={wagmiConfig}>
<RainbowKitProvider chains={chains} coolMode>
<ThemeProvider>{children}</ThemeProvider>
<ThemeProvider>
<Navbar/>
{children}
<Footer/>
</ThemeProvider>
</RainbowKitProvider>
</WagmiConfig>
</QueryClientProvider>
Expand Down
8 changes: 4 additions & 4 deletions apps/web3/src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export function Navbar() {
className={`ml-10 hidden items-center gap-6 lg:flex ${isScrolling ? "text-gray-900" : "text-white"
}`}
>
<Link href="/hospital"><NavItem>hospital</NavItem></Link>
<Link href="/insurance"><NavItem>insurance</NavItem></Link>
<Link href="/article"><NavItem>article</NavItem></Link>
<Link href="/about"><NavItem>about</NavItem></Link>
<Link href="/result"><NavItem>result</NavItem></Link>
</ul>
<div className="hidden gap-2 lg:flex lg:items-center">
Expand All @@ -88,8 +88,8 @@ export function Navbar() {
<Collapse open={open}>
<div className="container mx-auto mt-4 rounded-lg border-t border-blue-gray-50 bg-white px-6 py-5">
<ul className="flex flex-col gap-4 text-blue-gray-900">
<Link href="/hospital"><NavItem>hospital</NavItem></Link>
<Link href="/insurance"><NavItem>insurance</NavItem></Link>
<Link href="/article"><NavItem>article</NavItem></Link>
<Link href="/about"><NavItem>about</NavItem></Link>
<Link href="/result"><NavItem>result</NavItem></Link>
</ul>
<div className="mt-4 flex items-center gap-2">
Expand Down

0 comments on commit 2437cec

Please sign in to comment.