Skip to content

Commit

Permalink
basic skeleton implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
logicalmechanism committed Sep 4, 2024
1 parent 3b6c2a1 commit 18c6585
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 67 deletions.
31 changes: 3 additions & 28 deletions app/README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,11 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:
```bash
npm install
```

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
3 changes: 0 additions & 3 deletions app/components/CardanoWallet/index.ts

This file was deleted.

30 changes: 0 additions & 30 deletions app/components/NavBar.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { useEffect, useState } from 'react';
import { useWallet, useWalletList } from '@meshsdk/react';
import { MenuItem } from './MenuItem'; // Adjust according to actual import paths
import { WalletBalance } from './WalletBalance'; // Adjust according to actual import paths
import { MenuItem } from './menu-item';
import { WalletBalance } from './wallet-balance';

// Define TypeScript interface for the component props
interface CardanoWalletProps {
label?: string;
onConnected?: () => void; // Updated to be a more specific function type
onConnected?: () => void;
isDark?: boolean;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';

interface MenuItemProps {
icon?: string;
label: string;
Expand Down
21 changes: 21 additions & 0 deletions app/components/nav-bar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { CardanoWallet } from './cardano-wallet';


const NavBar: React.FC = () => {

return (
<nav className="light-bg py-1 w-full">
<div className="flex items-center">
<div className="flex mx-5">
<CardanoWallet />
</div>
<div className="flex-grow"></div>
<div className='dark-text font-bold py-1 px-4 mx-2 h-8 hidden md:block'>
<p>Seedelf Wallet</p>
</div>
</div>
</nav>
);
};

export default NavBar;
17 changes: 17 additions & 0 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"@meshsdk/core": "^1.7.1",
"@meshsdk/mesh-csl": "^0.0.5",
"@meshsdk/react": "^1.7.1",
"@noble/curves": "^1.6.0",
"@tailwindcss/typography": "^0.5.15",
"blakejs": "^1.2.1",
"next": "14.2.7",
"react": "^18",
"react-dom": "^18"
Expand Down
2 changes: 1 addition & 1 deletion app/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { NextPage } from "next";
import NavBar from "@/components/NavBar";
import NavBar from "@/components/nav-bar";

const Home: NextPage = () => {

Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 18c6585

Please sign in to comment.