Skip to content

Commit

Permalink
17
Browse files Browse the repository at this point in the history
  • Loading branch information
bobgus39 committed Jan 16, 2024
1 parent 17e87fe commit b038d97
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function App() {
<>
<BrowserRouter>
<Routes>
<Route path="/" element={<Home></Home>}></Route>
<Route path="/panes" element={<Panes></Panes>}></Route>
<Route path="/marielWebPage" element={<Home></Home>}></Route>
<Route path="/marielWebPage/panes" element={<Panes></Panes>}></Route>
</Routes>
</BrowserRouter>
</>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function Body() {
<div className="portada">
<div className="textOver">
<h2 className="fornMariu">FORN MARIU</h2>
<NavLink to="/panes">
<NavLink to="/marielWebPage/panes">
<button className="btnCart">Ver panes</button>
</NavLink>
</div>
Expand All @@ -37,7 +37,7 @@ function Body() {
cultiu. Vine a conèixer-nos a Ibi, Alacant, i gaudeix de pa i dolços
tradicionals elaborats artesanalment.
</p>
<NavLink to="/panes">
<NavLink to="/marielWebPage/panes">
<button className="btnCart">Ver panes</button>
</NavLink>
</div>
Expand Down
16 changes: 11 additions & 5 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Header() {

return (
<div className="header">
<NavLink to="/">
<NavLink to="/marielWebPage">
<img
className="imgHeader"
src="../../img/mariuHeader.png"
Expand Down Expand Up @@ -66,17 +66,23 @@ function Header() {
<li>
<NavLink
className={
location.pathname !== "/panes" ? "menuNav" : "activated"
location.pathname !== "/marielWebPage/panes"
? "menuNav"
: "activated"
}
to="/panes"
to="/marielWebPage/panes"
>
Carta de panes
</NavLink>
</li>
<li>
<NavLink
className={location.pathname !== "/" ? "menuNav" : "activated"}
to="/"
className={
location.pathname !== "/marielWebPage"
? "menuNav"
: "activated"
}
to="/marielWebPage"
>
Menu
</NavLink>
Expand Down

0 comments on commit b038d97

Please sign in to comment.