-
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.
- Loading branch information
Showing
11 changed files
with
131 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import {JSX} from 'react'; | ||
import MemoizedHeader from '../../components/header/header.tsx'; | ||
import {Helmet} from 'react-helmet-async'; | ||
|
||
export function MainEmptyScreen() : JSX.Element { | ||
return ( | ||
<div className="page page--gray page--main"> | ||
<Helmet> | ||
<title>6 cities</title> | ||
</Helmet> | ||
<MemoizedHeader /> | ||
<main className="page__main page__main--index page__main--index-empty"> | ||
<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"> | ||
<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 tabs__item--active" href="#"> | ||
<span>Dusseldorf</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</section> | ||
</div> | ||
<div className="cities"> | ||
<div className="cities__places-container cities__places-container--empty container"> | ||
<section className="cities__no-places"> | ||
<div className="cities__status-wrapper tabs__content"> | ||
<b className="cities__status">No places to stay available</b> | ||
<p className="cities__status-description">We could not find any property available at the moment in | ||
Dusseldorf | ||
</p> | ||
</div> | ||
</section> | ||
<div className="cities__right-section"></div> | ||
</div> | ||
</div> | ||
</main> | ||
</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
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
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,5 +1,7 @@ | ||
import {State} from '../../types/state.ts'; | ||
import {Namespace} from '../../const.ts'; | ||
import {LoadingStatus, Namespace} from '../../const.ts'; | ||
import {City} from '../../types/city.ts'; | ||
|
||
export const getActiveCity = (state: State): City => state[Namespace.App].city; | ||
|
||
export const getLoadingStatus = (state: State): LoadingStatus | null => state[Namespace.App].loadingStatus; |
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