-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Маршрут по тайным тропам #3
Merged
keksobot
merged 1 commit into
htmlacademy-univer-javascript-3:master
from
mgmman:module3-task1
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ Thumbs.db | |
.DS_Store | ||
.env | ||
*.log* | ||
*.lock* | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
|
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,6 @@ | ||
export enum AppRoutes { | ||
MainPage = '/', | ||
Login = '/login', | ||
Offer = '/offer/:id', | ||
Favorites = '/favorites', | ||
} |
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,3 +1,5 @@ | ||
import { Helmet } from 'react-helmet-async'; | ||
|
||
export function FavoritesPage(): React.JSX.Element { | ||
return ( | ||
<div className="page"> | ||
|
@@ -6,16 +8,26 @@ export function FavoritesPage(): React.JSX.Element { | |
<div className="header__wrapper"> | ||
<div className="header__left"> | ||
<a className="header__logo-link" href="main.html"> | ||
<img className="header__logo" src="img/logo.svg" alt="6 cities logo" width="81" height="41"/> | ||
<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> | ||
<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> | ||
|
@@ -31,6 +43,9 @@ export function FavoritesPage(): React.JSX.Element { | |
</header> | ||
|
||
<main className="page__main page__main--favorites"> | ||
<Helmet> | ||
<title>6 cities - favorites</title> | ||
</Helmet> | ||
<div className="page__favorites-container container"> | ||
<section className="favorites"> | ||
<h1 className="favorites__title">Saved listing</h1> | ||
|
@@ -50,25 +65,40 @@ export function FavoritesPage(): React.JSX.Element { | |
</div> | ||
<div className="favorites__image-wrapper place-card__image-wrapper"> | ||
<a href="#"> | ||
<img className="place-card__image" src="img/apartment-small-03.jpg" width="150" height="110" alt="Place image"/> | ||
<img | ||
className="place-card__image" | ||
src="img/apartment-small-03.jpg" | ||
width="150" | ||
height="110" | ||
alt="Place image" | ||
/> | ||
</a> | ||
</div> | ||
<div className="favorites__card-info place-card__info"> | ||
<div className="place-card__price-wrapper"> | ||
<div className="place-card__price"> | ||
<b className="place-card__price-value">€180</b> | ||
<span className="place-card__price-text">/ night</span> | ||
<span className="place-card__price-text"> | ||
/ night | ||
</span> | ||
</div> | ||
<button className="place-card__bookmark-button place-card__bookmark-button--active button" type="button"> | ||
<svg className="place-card__bookmark-icon" width="18" height="19"> | ||
<button | ||
className="place-card__bookmark-button place-card__bookmark-button--active button" | ||
type="button" | ||
> | ||
<svg | ||
className="place-card__bookmark-icon" | ||
width="18" | ||
height="19" | ||
> | ||
<use xlinkHref="#icon-bookmark"></use> | ||
</svg> | ||
<span className="visually-hidden">In bookmarks</span> | ||
</button> | ||
</div> | ||
<div className="place-card__rating rating"> | ||
<div className="place-card__stars rating__stars"> | ||
<span style={{width: '100%'}}></span> | ||
<span style={{ width: '100%' }}></span> | ||
<span className="visually-hidden">Rating</span> | ||
</div> | ||
</div> | ||
|
@@ -82,25 +112,40 @@ export function FavoritesPage(): React.JSX.Element { | |
<article className="favorites__card place-card"> | ||
<div className="favorites__image-wrapper place-card__image-wrapper"> | ||
<a href="#"> | ||
<img className="place-card__image" src="img/room-small.jpg" width="150" height="110" alt="Place image"/> | ||
<img | ||
className="place-card__image" | ||
src="img/room-small.jpg" | ||
width="150" | ||
height="110" | ||
alt="Place image" | ||
/> | ||
</a> | ||
</div> | ||
<div className="favorites__card-info place-card__info"> | ||
<div className="place-card__price-wrapper"> | ||
<div className="place-card__price"> | ||
<b className="place-card__price-value">€80</b> | ||
<span className="place-card__price-text">/ night</span> | ||
<span className="place-card__price-text"> | ||
/ night | ||
</span> | ||
</div> | ||
<button className="place-card__bookmark-button place-card__bookmark-button--active button" type="button"> | ||
<svg className="place-card__bookmark-icon" width="18" height="19"> | ||
<button | ||
className="place-card__bookmark-button place-card__bookmark-button--active button" | ||
type="button" | ||
> | ||
<svg | ||
className="place-card__bookmark-icon" | ||
width="18" | ||
height="19" | ||
> | ||
<use xlinkHref="#icon-bookmark"></use> | ||
</svg> | ||
<span className="visually-hidden">In bookmarks</span> | ||
</button> | ||
</div> | ||
<div className="place-card__rating rating"> | ||
<div className="place-card__stars rating__stars"> | ||
<span style={{width: '100%'}}></span> | ||
<span style={{ width: '100%' }}></span> | ||
<span className="visually-hidden">Rating</span> | ||
</div> | ||
</div> | ||
|
@@ -125,25 +170,40 @@ export function FavoritesPage(): React.JSX.Element { | |
<article className="favorites__card place-card"> | ||
<div className="favorites__image-wrapper place-card__image-wrapper"> | ||
<a href="#"> | ||
<img className="place-card__image" src="img/apartment-small-04.jpg" width="150" height="110" alt="Place image"/> | ||
<img | ||
className="place-card__image" | ||
src="img/apartment-small-04.jpg" | ||
width="150" | ||
height="110" | ||
alt="Place image" | ||
/> | ||
</a> | ||
</div> | ||
<div className="favorites__card-info place-card__info"> | ||
<div className="place-card__price-wrapper"> | ||
<div className="place-card__price"> | ||
<b className="place-card__price-value">€180</b> | ||
<span className="place-card__price-text">/ night</span> | ||
<span className="place-card__price-text"> | ||
/ night | ||
</span> | ||
</div> | ||
<button className="place-card__bookmark-button place-card__bookmark-button--active button" type="button"> | ||
<svg className="place-card__bookmark-icon" width="18" height="19"> | ||
<button | ||
className="place-card__bookmark-button place-card__bookmark-button--active button" | ||
type="button" | ||
> | ||
<svg | ||
className="place-card__bookmark-icon" | ||
width="18" | ||
height="19" | ||
> | ||
<use xlinkHref="#icon-bookmark"></use> | ||
</svg> | ||
<span className="visually-hidden">In bookmarks</span> | ||
</button> | ||
</div> | ||
<div className="place-card__rating rating"> | ||
<div className="place-card__stars rating__stars"> | ||
<span style={{width: '100%'}}></span> | ||
<span style={{ width: '100%' }}></span> | ||
<span className="visually-hidden">Rating</span> | ||
</div> | ||
</div> | ||
|
@@ -161,7 +221,13 @@ export function FavoritesPage(): React.JSX.Element { | |
</main> | ||
<footer className="footer container"> | ||
<a className="footer__logo-link" href="main.html"> | ||
<img className="footer__logo" src="img/logo.svg" alt="6 cities logo" width="64" height="33"/> | ||
<img | ||
className="footer__logo" | ||
src="img/logo.svg" | ||
alt="6 cities logo" | ||
width="64" | ||
height="33" | ||
/> | ||
</a> | ||
</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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нужно зафиксировать версию