Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GrantStenger/n3rp
Browse files Browse the repository at this point in the history
  • Loading branch information
cyficowley committed Apr 29, 2022
2 parents de1a9c0 + 6bfc4c2 commit d77a136
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frontend/src/client/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import WalletProvider from "./components/WalletProvider";
import Main from "./pages/Main";
import Create from "./pages/Create";
import Find from "./pages/Find";
import About from "./pages/About";
import { ContextWrapper } from "./Context";

export const App = () => {
Expand All @@ -18,6 +19,7 @@ export const App = () => {
<Route path="/" element={<Main />} />
<Route path="/create" element={<Create />} />
<Route path="/find" element={<Find />} />
<Route path="/about" element={<About />} />
</Routes>
</WalletProvider>
</ContextWrapper>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/client/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Navbar = () => {
<Link to="/find">Find</Link>
</div>
<div className="text-white hover:text-indigo-100 font-bold py-2 pl-4 pr-10">
<a href="https://github.com/gstenger98/N3RP/blob/master/README.md">About</a>
<Link to="/about">About</Link>
</div>
<button className="float-right bg-indigo-800 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded">
Connect Wallet
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/client/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

@import "tailwindcss/utilities";

@layer base {
h1 {
@apply text-4xl;
}
}

body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
Expand All @@ -26,4 +32,4 @@ body {

._card {
@apply p-4 border-2 border-slate-300 rounded-lg;
}
}
67 changes: 67 additions & 0 deletions frontend/src/client/pages/About.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import React from "react";
import { Link } from "react-router-dom";
import { Footer } from "../components/Footer";
import { Navbar } from "../components/Navbar";
import { useAppContext } from "../Context";

const About = () => {
return (
<div className="flex bg-white-100 flex-col justify-between h-screen">
<Navbar />
<MainContent />
<div className="flex flex-col items-center">
<Footer />
</div>
</div>
);
}

const MainContent = () => {
return (
<div className="m-20 space-y-6">
<h1>Welcome to N3RP!</h1>
<p>
N3RP is the world's first NFT rental marketplace!
</p>
<p>
We realized that our NFTs were being used for increasingly practical purposes.
NFTs are being useed as tickets for concerts, sports games, virtual events, and parties.
When you can't use your NFT, you should make some money on it! N3RP allows you to rent your NFT.
</p>
<p>
Here's how it works as a renter:
<br />
<ol className="list-decimal list-inside space-y-6">
<li>
List your NFT.
You'll need to specify:
<ul className="list-disc list-inside ml-4">
<li>a rental price (how much you will be paid)</li>
<li>a collateral amount (how much collateral the user needs to put up)</li>
<li>a date range (when you're willing to part with your NFT)</li>
<li>a late penalty (what percentage of the collateral is paid out per day in the event of a late return)</li>
</ul>
</li>
<li>Someone will rent your NFT.</li>
<li>You'll get an email with the contract address to send your NFT to.</li>
<li>
Once the borrower deposits their funds, your NFT will be transferred to the borrower and you'll get your payment.
Woohoo!
</li>
</ol>
</p>
<p>
As a borrower, you can just explore the listed NFTs and rent the one you like most!
</p>
<p className="text-2xl">
Get started by
</p>
<div>
<Link to="/create" className="bg-indigo-800 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded">Listing an NFT</Link>
<Link to="/find" className="ml-4 bg-indigo-800 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded">Exploring Current Rentals</Link>
</div>
</div>
);
}

export default About;

0 comments on commit d77a136

Please sign in to comment.