-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from btb-finance/staging
welcome added
- Loading branch information
Showing
7 changed files
with
120 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
// src/app/components/Layout.tsx | ||
// Main layout component that includes headers, footers, and navigational elements. | ||
|
||
import React, { ReactNode } from 'react'; | ||
import Navigation from './Navigation'; | ||
|
||
interface LayoutProps { | ||
children: ReactNode; | ||
} | ||
|
||
const Layout: React.FC<LayoutProps> = ({ children }) => ( | ||
<div> | ||
<Navigation /> | ||
<main>{children}</main> | ||
</div> | ||
); | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
// src/app/components/Navigation.tsx | ||
// Navigation component that contains the navigation menu for the application. | ||
|
||
import React from 'react'; | ||
import Link from 'next/link'; | ||
|
||
const Navigation = () => ( | ||
<nav> | ||
<ul> | ||
<li><Link href="/">Home</Link></li> | ||
<li><Link href="/invest">Invest</Link></li> | ||
<li><Link href="/withdraw">Withdraw</Link></li> | ||
</ul> | ||
</nav> | ||
); | ||
|
||
export default Navigation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
// src/app/components/PoolCard.tsx | ||
// Component to display information about a specific pool in a card format. | ||
|
||
import React from 'react'; | ||
|
||
interface Pool { | ||
name: string; | ||
apr: number; | ||
apy: number; | ||
liquidity: number; | ||
} | ||
|
||
interface PoolCardProps { | ||
pool: Pool; | ||
} | ||
|
||
const PoolCard: React.FC<PoolCardProps> = ({ pool }) => ( | ||
<div className="pool-card"> | ||
<h3>{pool.name}</h3> | ||
<p>APR: {pool.apr}%</p> | ||
<p>APY: {pool.apy}%</p> | ||
<p>Total Liquidity: ${pool.liquidity}</p> | ||
</div> | ||
); | ||
|
||
export default PoolCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
// src/app/components/UserPanel.tsx | ||
// Component to display user-specific information and actions, such as wallet details. | ||
import React from 'react'; | ||
|
||
interface User { | ||
name: string; | ||
wallet: string; | ||
disconnect: () => void; | ||
} | ||
|
||
interface UserPanelProps { | ||
user: User; | ||
} | ||
|
||
const UserPanel: React.FC<UserPanelProps> = ({ user }) => ( | ||
<div className="user-panel"> | ||
<h3>Welcome, {user.name}</h3> | ||
<p>Wallet: {user.wallet}</p> | ||
<button onClick={user.disconnect}>Disconnect</button> | ||
</div> | ||
); | ||
|
||
export default UserPanel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import Navigation from './components/Navigation'; | ||
import './styles/globals.css'; | ||
|
||
export const metadata = { | ||
title: 'BTB Finance', | ||
description: 'BTB Finance Liquidity Management Platform', | ||
}; | ||
|
||
const RootLayout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<html lang="en"> | ||
<body> | ||
<Navigation /> | ||
<main>{children}</main> | ||
</body> | ||
</html> | ||
); | ||
}; | ||
|
||
export default RootLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
// src/app/page.tsx | ||
|
||
import React from 'react'; | ||
|
||
"use client"; | ||
|
||
import WalletConnect from './WalletConnect'; | ||
|
||
const Home = () => { | ||
const HomePage = () => { | ||
return ( | ||
<div> | ||
<h1>Hello Solana Dapp</h1> | ||
<WalletConnect /> | ||
<h1>Welcome to BTB Finance</h1> | ||
{/* Add other components or content here */} | ||
</div> | ||
); | ||
}; | ||
|
||
export default Home; | ||
export default HomePage; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
/* src/app/styles/globals.css */ | ||
/* Global CSS styles applied across the entire application */ | ||
/* Global CSS styles applied across the entire application */ | ||
|
||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; | ||
background-color: #f5f5f5; | ||
color: #333; | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
margin: 0; | ||
padding: 0.5rem 0; | ||
} | ||
|
||
p { | ||
margin: 0; | ||
padding: 0.5rem 0; | ||
} | ||
|