forked from Anjaliavv51/Retro
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Anjaliavv51#108 from vashukashyap/added-dashboard
Admin Dashboard Added
- Loading branch information
Showing
16 changed files
with
209 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* /index.html 200 |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions
9
src/components/dashboard-components/AddNewRental/AddNewRental.jsx
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,9 @@ | ||
|
||
|
||
const AddNewRental = () => { | ||
return( | ||
<h1>Add New Rental</h1> | ||
) | ||
} | ||
|
||
export default AddNewRental; |
9 changes: 9 additions & 0 deletions
9
src/components/dashboard-components/CreateNewRental/CreateNewRental.jsx
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,9 @@ | ||
|
||
|
||
const CreateNewRental = () => { | ||
return( | ||
<h1>Create New Rental</h1> | ||
) | ||
} | ||
|
||
export default CreateNewRental; |
22 changes: 22 additions & 0 deletions
22
src/components/dashboard-components/Header-section/Header.jsx
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,22 @@ | ||
import { Link } from "react-router-dom"; | ||
import banner from '../../../assets/Images/dashboardbanner.png' | ||
const Header = () => { | ||
return ( | ||
<> | ||
<div className="w-full mt-20"> | ||
<section className="h-[90vh] flex justify-around p-6 flex-col lg:flex-row"> | ||
<div className="mt-10 flex flex-col justify-center items-start"> | ||
<h1 className="mb-4 text-4xl font-extrabold text-gray-900 md:text-5xl lg:text-6xl"> | ||
Dashboard | ||
</h1> | ||
<p className="mb-8 text-lg font-medium text-gray-500 lg:text-xl"> | ||
Hello <span className="text-customRed">name</span>, Welcome to your Dashboard | ||
</p> | ||
</div> | ||
<img src={banner}></img> | ||
</section> | ||
</div> | ||
</> | ||
); | ||
}; | ||
export default Header; |
11 changes: 11 additions & 0 deletions
11
src/components/dashboard-components/ListedProperty/ListedProperty.jsx
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,11 @@ | ||
|
||
|
||
const ListedProperty= () => { | ||
return( | ||
<> | ||
<h1>Listed Property</h1> | ||
</> | ||
) | ||
} | ||
|
||
export default ListedProperty; |
11 changes: 11 additions & 0 deletions
11
src/components/dashboard-components/PaymentsRecord/PaymentsRecord.jsx
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,11 @@ | ||
|
||
|
||
const PaymentsRecord = () =>{ | ||
return( | ||
<> | ||
<h1>PaymentsRecord</h1> | ||
</> | ||
) | ||
} | ||
|
||
export default PaymentsRecord; |
11 changes: 11 additions & 0 deletions
11
src/components/dashboard-components/PropertyListing/PropertyListing.jsx
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,11 @@ | ||
|
||
|
||
const PropertyListing = () => { | ||
return( | ||
<> | ||
<h1>Property Listing</h1> | ||
</> | ||
) | ||
} | ||
|
||
export default PropertyListing; |
11 changes: 11 additions & 0 deletions
11
src/components/dashboard-components/RenterDetails/RenterDetails.jsx
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,11 @@ | ||
|
||
|
||
const RenterDetails = () => { | ||
return( | ||
<> | ||
<h1>RenterDetails</h1> | ||
</> | ||
) | ||
} | ||
|
||
export default RenterDetails; |
12 changes: 12 additions & 0 deletions
12
src/components/dashboard-components/SearchRental-section/SearchRental.jsx
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,12 @@ | ||
|
||
|
||
const SearchRental = () =>{ | ||
return( | ||
<> | ||
<h1>Search Rental</h1> | ||
</> | ||
) | ||
} | ||
|
||
|
||
export default SearchRental; |
11 changes: 11 additions & 0 deletions
11
src/components/dashboard-components/TotalRentCollected/TotalRentCollected.jsx
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,11 @@ | ||
|
||
|
||
const TotalRentCollected = () =>{ | ||
return( | ||
<> | ||
<h1>Total Rent Collected</h1> | ||
</> | ||
) | ||
} | ||
|
||
export default TotalRentCollected; |
51 changes: 51 additions & 0 deletions
51
src/components/dashboard-components/Widget-section/Widget-section.jsx
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,51 @@ | ||
import { Link } from "react-router-dom"; | ||
|
||
|
||
const WidgetSection = () => { | ||
return( | ||
<div className="w-full bg-light-blue md:px-20 md:py-10 p-2"> | ||
<div className="flex flex-row justify-between items-center md:mt-10 md:px-10 py-8 px-4"> | ||
<h1 className="font-bold md:text-4xl text-2xl">Widgets</h1> | ||
<Link to="/dashboard/createnewrenter"> | ||
<div className="bg-textWhite p-4 font-semibold rounded-md hover:shadow-widget">Create new Rental</div> | ||
</Link> | ||
</div> | ||
<div className="flex flex-col md:flex-row gap-10 justify-around items-center my-10 md:my-8 mx-2"> | ||
<Link to="/dashboard/renterdetails"> | ||
<section className="md:w-80 md:h-60 w-40 h-40 bg-textWhite font-semibold flex justify-center items-center rounded-lg shadow-widget opacity-1 hover:shadow-widget-hover text-center"> | ||
Rental's Details | ||
</section> | ||
</Link> | ||
<Link to="/dashboard/paymentsrecord"> | ||
<section className="md:w-80 md:h-60 w-40 h-40 bg-textWhite font-semibold flex justify-center items-center rounded-lg shadow-widget opacity-1 hover:shadow-widget-hover text-center"> | ||
Rent Payment Record | ||
</section> | ||
</Link> | ||
<Link to="/dashboard/searchrenter"> | ||
<section className="md:w-80 md:h-60 w-40 h-40 bg-textWhite font-semibold flex justify-center items-center rounded-lg shadow-widget opacity-1 hover:shadow-widget-hover text-center"> | ||
Search Renter | ||
</section> | ||
</Link> | ||
</div> | ||
<div className="flex flex-col md:flex-row gap-10 justify-around items-center my-5 md:my-8 mx-2"> | ||
<Link to="/dashboard/totalrentcollected"> | ||
<section className="md:w-80 md:h-60 w-40 h-40 bg-textWhite font-semibold flex justify-center items-center rounded-lg shadow-widget opacity-1 hover:shadow-widget-hover text-center"> | ||
Total Rent collected | ||
</section> | ||
</Link> | ||
<Link to="/dashboard/propertylisting"> | ||
<section className="md:w-80 md:h-60 w-40 h-40 bg-textWhite font-semibold flex justify-center items-center rounded-lg shadow-widget opacity-1 hover:shadow-widget-hover text-center"> | ||
Property Listing | ||
</section> | ||
</Link> | ||
<Link to="/dashboard/addnewrenter"> | ||
<section className="md:w-80 md:h-60 w-40 h-40 bg-textWhite font-semibold flex justify-center items-center rounded-lg shadow-widget opacity-1 hover:shadow-widget-hover text-center"> | ||
Add New Rental | ||
</section> | ||
</Link> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default WidgetSection; |
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,25 @@ | ||
import Navbar from '../components/Header-section/Navbar'; | ||
import Header from "../components/dashboard-components/Header-section/Header"; | ||
import WidgetSection from "../components/dashboard-components/Widget-section/Widget-section"; | ||
import Footer from "../components/Footer-section/Footer"; | ||
import ScrollToTop from "react-scroll-to-top"; | ||
|
||
|
||
|
||
const Dashboard = () => { | ||
return( | ||
<> | ||
<Navbar/> | ||
<Header/> | ||
<WidgetSection/> | ||
<Footer/> | ||
<ScrollToTop | ||
smooth | ||
color="darkgreen" | ||
className="flex justify-center hover:scale-125 duration-200 transition items-center p-1" | ||
/> | ||
</> | ||
) | ||
} | ||
|
||
export default Dashboard |
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,3 +1,4 @@ | ||
export { default as Home } from "./Home"; | ||
export { default as Login } from "./Login"; | ||
export { default as Registration } from "./Registration"; | ||
export { default as Dashboard } from "./Dashboard"; |
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