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#112 from Daveless/Fix-mobile-layout
Fix mobile layout
- Loading branch information
Showing
8 changed files
with
242 additions
and
200 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
import '../Header-section/Header-section.css' | ||
import "../Header-section/Header-section.css"; | ||
import { Link } from "react-router-dom"; | ||
import Navbar from './Navbar'; | ||
import Navbar from "./Navbar"; | ||
const Header = () => { | ||
|
||
|
||
|
||
return ( | ||
<> | ||
<div className="header-section mb-[80px]"> | ||
<Navbar /> | ||
<div id='home'></div> | ||
<div className="header-text"> | ||
<h1>Welcome to <span>Rentalog</span></h1> | ||
<p>Rentalog is the ultimate solution for landlords looking to simplify their rent management process. Keep track of your renters personal details, their payment history, and much more with ease.</p> | ||
<Link to="/register"> | ||
<button className='btn'>Get Started</button> | ||
</Link> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} | ||
return ( | ||
<> | ||
<div className="header-section mb-[80px]"> | ||
<Navbar /> | ||
<div id="home"></div> | ||
<div className="header-text top-[15%] sm:top-[23%]"> | ||
<h1> | ||
Welcome to <span>Rentalog</span> | ||
</h1> | ||
<p> | ||
Rentalog is the ultimate solution for landlords looking to simplify | ||
their rent management process. Keep track of your renters personal | ||
details, their payment history, and much more with ease. | ||
</p> | ||
<Link to="/register"> | ||
<button className="btn">Get Started</button> | ||
</Link> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
export default Header; |
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 |
---|---|---|
@@ -1,28 +1,31 @@ | ||
import PropTypes from "prop-types"; | ||
const ServicesCard = (props) => { | ||
return ( | ||
<div className={props.bgColor + " rounded-xl cursor-pointer hover:scale-105 hover:shadow-lg transition duration-300"} > | ||
<div className="flex gap-4 p-8 "> | ||
<img | ||
className="w-10 h-10 mt-1.5" | ||
src={props.icon} | ||
alt={props.alt} | ||
></img> | ||
<h1 className="text-[#312F2F] font-bold md:text-2xl text-xl"> | ||
{props.title} | ||
</h1> | ||
</div> | ||
<p className="px-8 pb-20"> | ||
{props.description} | ||
</p> | ||
</div> | ||
) | ||
} | ||
return ( | ||
<div | ||
className={ | ||
props.bgColor + | ||
" rounded-xl cursor-pointer hover:scale-105 hover:shadow-lg transition duration-300" | ||
} | ||
> | ||
<div className="flex gap-4 p-8 "> | ||
<img | ||
className="w-10 h-10 mt-1.5" | ||
src={props.icon} | ||
alt={props.alt} | ||
></img> | ||
<h1 className="text-[#312F2F] font-bold md:text-2xl text-xl"> | ||
{props.title} | ||
</h1> | ||
</div> | ||
<p className="px-8 pb-20">{props.description}</p> | ||
</div> | ||
); | ||
}; | ||
ServicesCard.propTypes = { | ||
bgColor: PropTypes.string.isRequired, | ||
icon: PropTypes.string.isRequired, | ||
title: PropTypes.string.isRequired, | ||
alt: PropTypes.string.isRequired, | ||
description: PropTypes.string.isRequired, | ||
bgColor: PropTypes.string.isRequired, | ||
icon: PropTypes.string.isRequired, | ||
title: PropTypes.string.isRequired, | ||
alt: PropTypes.string.isRequired, | ||
description: PropTypes.string.isRequired, | ||
}; | ||
export default ServicesCard; | ||
export default ServicesCard; |
15 changes: 10 additions & 5 deletions
15
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
90 changes: 43 additions & 47 deletions
90
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 |
---|---|---|
@@ -1,51 +1,47 @@ | ||
import { Link } from "react-router-dom"; | ||
|
||
import WidgetCard from "./WidgetCard"; | ||
|
||
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> | ||
) | ||
} | ||
return ( | ||
<div className="w-full bg-light-blue m-auto p-2"> | ||
<div className="flex flex-row justify-between gap-2 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="w-9/12 sm:w-10/12 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 justify-center items-center max-w-[1000px] my-5 mx-auto"> | ||
<WidgetCard | ||
route={"/dashboard/renterdetails"} | ||
widgetName={"Rental's Details"} | ||
/> | ||
<WidgetCard | ||
route={"/dashboard/paymentsrecord"} | ||
widgetName={"Rent Payment Record"} | ||
/> | ||
<WidgetCard | ||
route={"/dashboard/searchrenter"} | ||
widgetName={"Total Rent collected"} | ||
/> | ||
<WidgetCard | ||
route={"/dashboard/totalrentcollected"} | ||
widgetName={"Property Listing"} | ||
/> | ||
<WidgetCard | ||
route={"/dashboard/propertylisting"} | ||
widgetName={"Rental's Details"} | ||
/> | ||
<WidgetCard | ||
route={"/dashboard/addnewrenter"} | ||
widgetName={"Rental's Details"} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default WidgetSection; | ||
export default WidgetSection; |
12 changes: 12 additions & 0 deletions
12
src/components/dashboard-components/Widget-section/WidgetCard.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 @@ | ||
import { Link } from "react-router-dom"; | ||
|
||
const WidgetCard = ({ route, widgetName }) => { | ||
return ( | ||
<Link to={route}> | ||
<section className="w-full m-auto aspect-square bg-textWhite p-4 font-semibold flex justify-center items-center rounded-lg shadow-widget opacity-1 hover:shadow-widget-hover text-center"> | ||
<span>{widgetName}</span> | ||
</section> | ||
</Link> | ||
); | ||
}; | ||
export default WidgetCard; |
Oops, something went wrong.