-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
offerdetails and online comments list and add comment online
- Loading branch information
1 parent
d834564
commit e742bde
Showing
20 changed files
with
506 additions
and
365 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,7 +1,9 @@ | ||
import { createAction } from '@reduxjs/toolkit'; | ||
import { OfferObject } from './types/types'; | ||
import { OfferObject, OfferIdDetails } from './types/types'; | ||
export const changeCity = createAction<string>('ChangeCity'); | ||
|
||
export const AddOffer = createAction<OfferObject[]>('AddOffer'); | ||
|
||
export const loadOffers = createAction<OfferObject[]>('data/fetchOffers'); | ||
|
||
export const loadOfferDetails = createAction<OfferIdDetails>('data/loadOffer'); |
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
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,81 @@ | ||
import {Link} from 'react-router-dom'; | ||
|
||
function NotFoundPage():JSX.Element{ | ||
return( | ||
<div className="page page--gray page--main"> | ||
<header className="header"> | ||
<div className="container"> | ||
<div className="header__wrapper"> | ||
<div className="header__left"> | ||
<a className="header__logo-link header__logo-link--active"> | ||
<img className="header__logo" src="img/logo.svg" alt="6 cities logo" width="81" height="41"/> | ||
</a> | ||
</div> | ||
<nav className="header__nav"> | ||
<ul className="header__nav-list"> | ||
<li className="header__nav-item user"> | ||
<a className="header__nav-link header__nav-link--profile" href="#"> | ||
<div className="header__avatar-wrapper user__avatar-wrapper"> | ||
</div> | ||
<span className="header__user-name user__name">[email protected]</span> | ||
<span className="header__favorite-count">3</span> | ||
</a> | ||
</li> | ||
<li className="header__nav-item"> | ||
<a className="header__nav-link" href="#"> | ||
<span className="header__signout">Sign out</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
<main className="page__main page__main--index"> | ||
<h1 className="visually-hidden">Cities</h1> | ||
<div className="tabs"> | ||
<section className="locations container"> | ||
<ul className="locations__list tabs__list"> | ||
<li className="locations__item"> | ||
<a className="locations__item-link tabs__item" href="#"> | ||
<span>Paris</span> | ||
</a> | ||
</li> | ||
<li className="locations__item"> | ||
<a className="locations__item-link tabs__item" href="#"> | ||
<span>Cologne</span> | ||
</a> | ||
</li> | ||
<li className="locations__item"> | ||
<a className="locations__item-link tabs__item" href="#"> | ||
<span>Brussels</span> | ||
</a> | ||
</li> | ||
<li className="locations__item"> | ||
<a className="locations__item-link tabs__item tabs__item--active"> | ||
<span>Amsterdam</span> | ||
</a> | ||
</li> | ||
<li className="locations__item"> | ||
<a className="locations__item-link tabs__item" href="#"> | ||
<span>Hamburg</span> | ||
</a> | ||
</li> | ||
<li className="locations__item"> | ||
<a className="locations__item-link tabs__item" href="#"> | ||
<span>Dusseldorf</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</section> | ||
<h2 style={{ textAlign : 'center'}}>Error 404. Page not found. <Link to = "/"> Back to main page</Link></h2> | ||
<div className="cities__right-section"> | ||
<section className="cities__map map"></section> | ||
</div> | ||
</div> | ||
</main> | ||
</div> | ||
); | ||
} | ||
export default NotFoundPage; |
Oops, something went wrong.