-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from aryanbhasin/master
Adds 'My Rentals' zero-state & Updates homepage
- Loading branch information
Showing
8 changed files
with
73 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from "react"; | ||
import { Link } from "react-router-dom"; | ||
import { Navbar } from "../components/Navbar"; | ||
import { Footer } from "../components/Footer"; | ||
|
||
const Rentals = () => { | ||
return ( | ||
<div className="flex bg-white-100 flex-col justify-start h-screen"> | ||
<Navbar /> | ||
<MyListingsView /> | ||
<MyRentalsView /> | ||
<div className="flex flex-col items-center"> | ||
<Footer /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
const MyListingsView = () => { | ||
return ( | ||
<div className="m-20 space-y-6"> | ||
<h1 className="text-4xl font-bold">My Listings</h1> | ||
{/* TODO: Check if user has listed NFTs */} | ||
<p>You haven't listed any NFTs!</p> | ||
<div> | ||
<Link to="/create" className="bg-indigo-600 hover:bg-indigo-700 text-white font-bold px-8 py-3 rounded">List a Rental</Link> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
const MyRentalsView = () => { | ||
return ( | ||
<div className="m-20 space-y-6"> | ||
<h1 className="text-4xl font-bold">My Rentals</h1> | ||
{/* TODO: Check if user has rented NFTs */} | ||
<p>You haven't rented any NFTs!</p> | ||
<div> | ||
<Link to="/find" className="bg-indigo-600 hover:bg-indigo-700 text-white font-bold px-8 py-3 rounded">Explore Current Rentals!</Link> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Rentals; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
// declare modules here | ||
|
||
declare module "*.png" { | ||
const value: any; | ||
export = value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8e18c2c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nerp – ./
nerp-gstenger98.vercel.app
nerp-git-master-gstenger98.vercel.app
nerp.vercel.app
n3rp.com
www.n3rp.com