Skip to content

Commit

Permalink
feat(dapp): ✨ add mobile app
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonpete32 committed Nov 12, 2023
1 parent 75ee642 commit e54d349
Show file tree
Hide file tree
Showing 47 changed files with 559 additions and 12,012 deletions.
Binary file modified .DS_Store
Binary file not shown.
51 changes: 0 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,19 @@
<<<<<<< HEAD
<h1 align="center">DAOBox - Budget</h1>
=======
# budget2

>>>>>>> Incoming
<<<<<<< HEAD
<p align="center">
<img src="./assets/banner.png" alt="daobox-banner" />
<br>
<i>DAOBox - Budget is an Aragon OSx Plugin that allows the execution of payments bypassing the need for regular voting.</i>
<br>
</p>
=======
Note: Please ensure you have installed <code><a href="https://nodejs.org/en/download/">nodejs</a></code>

>>>>>>> Incoming

<<<<<<< HEAD
<p align="center">
<a href="https://github.com/DAObox/budget/actions"><img src="https://github.com/DAObox/budget/actions/workflows/ci.yml/badge.svg" alt="Github Actions"></a>
<a href="https://getfoundry.sh/"><img src="https://img.shields.io/badge/Built%20with-Foundry-FFDB1C.svg" alt="Foundry"></a>
<a href="https://opensource.org/license/agpl-v3/"><img src="https://img.shields.io/badge/License-AGPL-blue.svg" alt="License: AGPL-3-0"></a>
<a href="https://use-aragon.daobox.app"><img src="https://img.shields.io/badge/Docs-DAOBox-blue.svg" alt="Docs"></a>
<a href="https://discord.gg/d5nCgVt4kE"><img alt="Discord" src="https://img.shields.io/discord/1019114018545352734"></a>
=======
To preview and run the project on your device:

>>>>>>> Incoming
<<<<<<< HEAD
</p>

<hr>
Expand Down Expand Up @@ -246,38 +230,3 @@ constraints of this system, this is a non-issue:
## License

This project is licensed under AGPL-3.0-or-later

---

```
[submodule "lib/forge-std"]
branch = "v1"
path = "lib/forge-std"
url = "https://github.com/foundry-rs/forge-std"
[submodule "lib/prb-test"]
branch = "release-v0"
path = "lib/prb-test"
url = "https://github.com/PaulRBerg/prb-test"
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/osx"]
path = lib/osx
url = https://github.com/aragon/osx
[submodule "lib/openzeppelin-contracts-upgradeable"]
branch = "release-v4.9"
path = lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "lib/ens-contracts"]
path = lib/ens-contracts
url = https://github.com/ensdomains/ens-contracts
[submodule "lib/BokkyPooBahsDateTimeLibrary"]
path = lib/BokkyPooBahsDateTimeLibrary
url = https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary
```
=======
1. Open project folder in <a href="https://code.visualstudio.com/download">Visual Studio Code</a>
2. In the terminal, run `npm install`
3. Run `npm start` to view project in browser

>>>>>>> Incoming
50 changes: 0 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,12 @@
{
<<<<<<< HEAD
"name": "budget-monorepo",
"version": "1.0.0",
"description": "",
"main": "index.js",
=======
"name": "budget2",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^29.5.0",
"@types/node": "^16.11.14",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4",
"typescript": "^4.5.4",
"react-router-dom": "^6.2.1"
},
"devDependencies": {
"autoprefixer": "^10.4.8",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8"
},

>>>>>>> Incoming
"scripts": {
<<<<<<< HEAD
"test": "echo \"Error: no test specified\" && exit 1"
=======
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"

>>>>>>> Incoming
},
<<<<<<< HEAD
"keywords": [],
"author": "pythonpete32",
"license": "ISC"
=======
"eslintConfig": {
"root": true
},
"browserslist": {
"production": [">0.2%", "not dead", "not op_mini all"],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}

>>>>>>> Incoming
}
Binary file removed packages/.DS_Store
Binary file not shown.
13 changes: 0 additions & 13 deletions packages/dapp/app/about/layout.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions packages/dapp/app/about/page.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions packages/dapp/app/blog/layout.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions packages/dapp/app/blog/page.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions packages/dapp/app/docs/layout.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions packages/dapp/app/docs/page.tsx

This file was deleted.

39 changes: 7 additions & 32 deletions packages/dapp/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@ import "@/styles/globals.css";
import { Metadata } from "next";
import { siteConfig } from "@/config/site";
import { fontSans } from "@/config/fonts";
import { Providers } from "./providers";
import { Navbar } from "@/components/navbar";
import { Providers } from "../components/providers";

import clsx from "clsx";
import { BottomNav } from "@/components/bottom-nav";
import { Suspense } from "react";
import Loading from "./loading";

export const metadata: Metadata = {
title: {
default: siteConfig.name,
template: `%s - ${siteConfig.name}`,
},
description: siteConfig.description,
// themeColor: [
// { media: "(prefers-color-scheme: light)", color: "white" },
// { media: "(prefers-color-scheme: dark)", color: "black" },
// ],

icons: {
icon: "/favicon.ico",
shortcut: "/favicon-16x16.png",
Expand All @@ -40,33 +37,11 @@ export default function RootLayout({
)}
>
<Providers themeProps={{ attribute: "class", defaultTheme: "dark" }}>
{/* <Navbar /> */}
{/* <main className="container mx-auto max-w-7xl pt-16 px-6 flex-grow">
{children}
</main> */}
{/* <BottomNav /> */}
<SplashScreen />
<div className="flex flex-col h-screen bg-[#101010]">
<Suspense fallback={<Loading />}>{children}</Suspense>
</div>
</Providers>
</body>
</html>
);
}

function SplashScreen() {
return (
<div className="relative flex flex-col h-screen bg-[#101010]">
<div id="NewRootRoot" className="flex flex-col w-full">
<div className="flex flex-col justify-between h-[812px] shrink-0 items-center pt-[321px] pb-8">
<img
src="https://file.rendit.io/n/jqavy1CcE0owESKvTO7a.svg"
alt="Logo"
id="Logo"
/>
<div className="text-sm font-['Poppins'] font-medium text-white">
Welcome to payup mobile app
</div>
</div>
</div>
</div>
);
}
12 changes: 12 additions & 0 deletions packages/dapp/app/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { LoadingDiv } from "@/components/framer";
import { PayupLogo } from "@/components/icons";

export default function Loading() {
return (
<div className="flex flex-col items-center justify-center h-full pb-8">
<LoadingDiv>
<PayupLogo />
</LoadingDiv>
</div>
);
}
18 changes: 18 additions & 0 deletions packages/dapp/app/main/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { BottomNav } from "@/components/bottom-nav";
import { Navbar } from "@/components/navbar";

export default function MainLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<Navbar />
<main className="container mx-auto max-w-7xl pt-16 px-6 flex-grow">
{children}
</main>
<BottomNav />
</>
);
}
28 changes: 28 additions & 0 deletions packages/dapp/app/main/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { BudgetCard } from "@/components/budget-card";

export default function MainPage() {
return (
<div>
<section className="flex flex-col items-center justify-center gap-4">
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
<BudgetCard />
</section>
</div>
);
}
37 changes: 15 additions & 22 deletions packages/dapp/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
import { BudgetCard } from "../components/BudgetCard";
import { PayupLogo } from "@/components/icons";
import { title } from "@/components/primitives";
import { LoginButton } from "@/components/login-button";
import { EaseInDiv } from "@/components/framer";

export default function Home() {
return (
// <section className="flex flex-col items-center justify-center gap-4">
// <BudgetCard />
// <BudgetCard />
// <BudgetCard />
// <BudgetCard />
// <BudgetCard />
// <BudgetCard />
// </section>
export default async function Home() {
await new Promise((resolve) => setTimeout(resolve, 6000));

<div id="NewRootRoot" className="flex flex-col w-full">
<div className="bg-[#101010] flex flex-col justify-between h-[812px] shrink-0 items-center pt-[321px] pb-8">
<img
src="https://file.rendit.io/n/jqavy1CcE0owESKvTO7a.svg"
alt="Logo"
id="Logo"
/>
<div className="text-sm font-['Poppins'] font-medium text-white">
Welcome to payup mobile app
</div>
return (
<EaseInDiv className="flex flex-col items-center justify-between h-full px-6 pt-48 py-14">
<div className="flex flex-col items-center justify-center w-full pb-4 align-middle">
<PayupLogo />
<h1 className={title({ class: "mt-12" })}> Scalable Secure </h1>
<h1 className={title()}> Frictionless </h1>
<h2 className="mt-4">DAO payments without all the bloodclart votes</h2>
</div>
</div>
<LoginButton />
</EaseInDiv>
);
}
13 changes: 0 additions & 13 deletions packages/dapp/app/pricing/layout.tsx

This file was deleted.

Loading

0 comments on commit e54d349

Please sign in to comment.