Skip to content

Commit

Permalink
update ui
Browse files Browse the repository at this point in the history
  • Loading branch information
yimingWOW committed Jan 14, 2025
1 parent e945bec commit c87e54b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Binary file added app/public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { NetworkSelect } from './WalletContextProvider';
import { useNetwork } from './contexts/NetworkContext';
import '@solana/wallet-adapter-react-ui/styles.css';
import './style/App.css';
import logo from '../public/favicon.png'; // 请确保图片路径正确


const App: FC = () => {
const { connected } = useWallet();
Expand All @@ -16,6 +18,7 @@ const App: FC = () => {
<nav className="app-nav">
<div className="nav-content">
<div className="nav-left">
<img src={logo} alt="Fall Logo" className="app-logo" />
<h1 className="app-title">Fall</h1>
</div>
<div className="nav-right">
Expand All @@ -32,7 +35,7 @@ const App: FC = () => {
{!connected ? (
<div className="connect-wallet">
<div className="connect-card">
<span className="connect-icon">🌟</span>
<img src={logo} alt="Fall Logo" className="connect-logo" />
<h2>Welcome to Fall</h2>
<p>Please connect your wallet to continue</p>
</div>
Expand Down
17 changes: 17 additions & 0 deletions app/src/style/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,21 @@
padding: 2rem 1rem;
margin: 1rem;
}
}

.app-logo {
height: 32px; /* 调整大小 */
width: auto;
margin-right: 12px;
}

.nav-left {
display: flex;
align-items: center;
}

.connect-logo {
width: 64px; /* 调整大小 */
height: auto;
margin-bottom: 20px;
}

0 comments on commit c87e54b

Please sign in to comment.