Skip to content

Commit

Permalink
Added containers and classes to host section. Restyled vans list items
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnajman committed Jun 11, 2024
1 parent e6f8bae commit 9042519
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 7 deletions.
13 changes: 12 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ img {
gap: 2rem;
padding: 2rem 2.5rem;
box-shadow: var(--shadow);
background-color: var(--content-bg);
color: var(--fg);
}

& p {
Expand All @@ -359,7 +361,11 @@ img {

& svg {
margin-inline-start: auto;
font-size: 3rem;
font-size: 3.5rem;
fill: var(--btn-blue);
background-color: white;
border: 0.3rem solid white;
border-radius: 50%;
}
}
}
Expand Down Expand Up @@ -403,6 +409,11 @@ img {
}
}

/** Hosts */
.hosts-nav {
margin-bottom: 3rem;
}

/* Screenreader only */
.visually-hidden {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion src/layout/LayoutHost.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NavLink, Outlet } from "react-router-dom"
function LayoutHost() {
return (
<>
<nav className="site-navigation">
<nav className="site-navigation hosts-nav">
<ul>
<li>
<NavLink
Expand Down
6 changes: 5 additions & 1 deletion src/pages/host/Dashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
function Dashboard() {
return <h1>Dashboard Updated</h1>
return (
<div className="hosts-container content-container hosts-dashboard">
<h1>Dashboard Updated</h1>
</div>
)
}

export default Dashboard
6 changes: 5 additions & 1 deletion src/pages/host/HostVanDetail.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
function HostVanDetail() {
return <h1>Your Listed Van Details</h1>
return (
<div className="hosts-container content-container host-van-detail">
<h1>Your Listed Van Details</h1>
</div>
)
}

export default HostVanDetail
6 changes: 5 additions & 1 deletion src/pages/host/HostVans.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
function HostVans() {
return <h1>Your Listed Vans</h1>
return (
<div className="hosts-container content-container host-vans">
<h1>Your Listed Vans</h1>
</div>
)
}

export default HostVans
6 changes: 5 additions & 1 deletion src/pages/host/Income.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
function Income() {
return <h1>Income</h1>
return (
<div className="hosts-container content-container hosts-income">
<h1>Income</h1>
</div>
)
}

export default Income
6 changes: 5 additions & 1 deletion src/pages/host/Reviews.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
function Reviews() {
return <h1>Reviews</h1>
return (
<div className="hosts-container content-container hosts-reviews">
<h1>Reviews</h1>
</div>
)
}

export default Reviews

0 comments on commit 9042519

Please sign in to comment.