Welcome to the Odin Protocol UI project repository. This project is a user interface for the Odin Protocol, developed using Next.js, a React framework that enables server-side rendering and static site generation. This repository includes the necessary code to set up and run the Odin Protocol UI.
The Odin Protocol UI is designed to provide users with a seamless and intuitive experience when interacting with the Odin Protocol. This UI offers various features to help users manage and monitor their interactions with the protocol effectively.
- User Dashboard: View your current status and activity within the Odin Protocol.
- Transaction Management: Easily manage and track your transactions.
- Protocol Interactions: Interact with the Odin Protocol directly from the UI.
- Responsive Design: Optimized for both desktop and mobile devices.
- Framework: Next.js
- Frontend: React, HTML, CSS, JavaScript
- State Management: Redux
- API Interaction: Axios
- Styling: Tailwind CSS
- Database: SQLite3
- Node.js
- npm (Node Package Manager) or yarn
-
Clone the Repository
git clone https://github.com/NagiPragalathan/odin_protocol_UI.git cd odin_protocol_UI
-
Install Dependencies
Using npm:
npm install
Using yarn:
yarn install
-
Run the Development Server
Using npm:
npm run dev
Using yarn:
yarn dev
Open your browser and navigate to
http://localhost:3000
to see the UI.
odin_protocol_UI/ ├── components/ │ ├── Header.js │ ├── Footer.js │ ├── Dashboard.js │ ├── TransactionList.js │ └── ProtocolInteraction.js ├── pages/ │ ├── index.js │ ├── dashboard.js │ └── transactions.js ├── public/ │ ├── favicon.ico │ └── logo.png ├── styles/ │ ├── Home.module.css │ └── globals.css ├── .gitignore ├── package.json └── README.md
`import Link from 'next/link';
const Header = () => (
- Home
- Dashboard
- Transactions
export default Header;`
`const Footer = () => (
© 2024 Odin Protocol UI
);export default Footer;`
`const Dashboard = () => (
);export default Dashboard;`
`const TransactionList = () => (
);export default TransactionList;`
`const ProtocolInteraction = () => (
);export default ProtocolInteraction;`
`import Layout from '../components/Layout'; import styles from '../styles/Home.module.css';
export default function Home() { return (
); }``import Layout from '../components/Layout'; import Dashboard from '../components/Dashboard';
export default function DashboardPage() { return ( ); }`
`import Layout from '../components/Layout'; import TransactionList from '../components/TransactionList';
export default function TransactionsPage() { return ( ); }`
`body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background-color: #f0f0f0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
nav ul { display: flex; gap: 1rem; }`
`.container { padding: 2rem; text-align: center; }
h1 { color: #0070f3; }
p { color: #333; }`
This project is licensed under the MIT License. See the LICENSE file for details.