-
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.
- Loading branch information
Showing
7 changed files
with
88 additions
and
53 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 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,9 +1,44 @@ | ||
import React from 'react' | ||
|
||
import React from "react"; | ||
import { FaStar } from "react-icons/fa"; | ||
import HostYourListVans from "./HostYourListVans"; | ||
export default function Dashboard() { | ||
return ( | ||
<div> | ||
<h1>welcome in dashboard</h1> | ||
<div className="p-10 bg-light-beige"> | ||
<div className="flex items-center justify-between "> | ||
<div className="flex flex-col gap-5"> | ||
<h1 className="text-[2rem] font-bold">Welcome !</h1> | ||
<p className="text-gray-text"> | ||
income last{" "} | ||
<span className="font-semibold underline hover:cursor-pointer"> | ||
30 days | ||
</span> | ||
</p> | ||
<p className="text-[2.7rem] font-bold">$2,260</p> | ||
</div> | ||
<p className="font-semibold hover:cursor-pointer">Details</p> | ||
</div> | ||
</div> | ||
<div className="bg-light-orange flex items-center p-10 font-bold text-2xl gap-3"> | ||
<p>Review Score</p> | ||
<FaStar className="text-orange" /> | ||
<p> | ||
5.0/<span className="text-gray-text font-medium">5</span> | ||
</p> | ||
</div> | ||
<div className="bg-main-background pb-10"> | ||
<div className="flex justify-between items-center p-10"> | ||
<p className="font-bold text-2xl">Your listed vans</p> | ||
<p className="font-medium hover:font-medium hover:underline hover:cursor-pointer"> | ||
View all | ||
</p> | ||
</div> | ||
<div className="px-10 flex flex-col gap-4 "> | ||
<HostYourListVans /> | ||
<HostYourListVans /> | ||
<HostYourListVans /> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
); | ||
} |
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,39 +1,10 @@ | ||
import React from "react"; | ||
import HostHeader from "./HostHeader"; | ||
import { FaStar } from "react-icons/fa"; | ||
import HostYourListVans from "./HostYourListVans"; | ||
|
||
export default function Host() { | ||
return ( | ||
<div> | ||
<HostHeader /> | ||
<div className="p-10 bg-light-beige"> | ||
<div className="flex items-center justify-between "> | ||
<div className="flex flex-col gap-5"> | ||
<h1 className="text-[2rem] font-bold">Welcome !</h1> | ||
<p className="text-gray-text"> | ||
income last <span className="font-semibold underline hover:cursor-pointer">30 days</span> | ||
</p> | ||
<p className="text-[2.7rem] font-bold">$2,260</p> | ||
</div> | ||
<p className="font-semibold hover:cursor-pointer">Details</p> | ||
</div> | ||
</div> | ||
<div className="bg-light-orange flex items-center p-10 font-bold text-2xl gap-3"> | ||
<p>Review Score</p> | ||
<FaStar className="text-orange" /> | ||
<p>5.0/<span className="text-gray-text font-medium">5</span></p> | ||
</div> | ||
<div className="bg-main-background pb-10"> | ||
<div className="flex justify-between items-center p-10"> | ||
<p className="font-bold text-2xl">Your listed vans</p> | ||
<p className="font-medium hover:font-medium hover:underline hover:cursor-pointer">View all</p> | ||
</div> | ||
<div className="px-10 flex flex-col gap-4 "> | ||
<HostYourListVans /> | ||
<HostYourListVans /> | ||
<HostYourListVans /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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,13 +1,21 @@ | ||
import React from "react"; | ||
import HeaderButton from "../HeaderButton"; | ||
|
||
import { Link } from "react-router-dom"; | ||
export default function HostHeader() { | ||
return ( | ||
<div className="flex items-center gap-10 p-5 bg-main-background "> | ||
<HeaderButton>Dashboard</HeaderButton> | ||
<HeaderButton>Income</HeaderButton> | ||
<HeaderButton>Vans</HeaderButton> | ||
<HeaderButton>Reviews</HeaderButton> | ||
<Link to="/VanLife/host/dashboard"> | ||
<HeaderButton>Dashboard</HeaderButton> | ||
</Link> | ||
<Link to="/VanLife/host/income"> | ||
<HeaderButton>Income</HeaderButton> | ||
</Link> | ||
<Link to="/VanLife/host/hostVans"> | ||
<HeaderButton>Vans</HeaderButton> | ||
</Link> | ||
<Link to="/VanLife/host/reviews"> | ||
<HeaderButton>Reviews</HeaderButton> | ||
</Link> | ||
</div> | ||
); | ||
} |
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,15 @@ | ||
import React from 'react' | ||
import { Outlet } from 'react-router-dom' | ||
import Header from '../Header' | ||
import Footer from '../Footer' | ||
import HostHeader from './HostHeader' | ||
export default function HostLayout() { | ||
return ( | ||
<div> | ||
<Header/> | ||
<HostHeader /> | ||
<Outlet /> | ||
<Footer/> | ||
</div> | ||
) | ||
} |
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