-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
fec27be
commit 181d98a
Showing
5 changed files
with
92 additions
and
4 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,43 @@ | ||
import React from 'react'; | ||
import style from "./PostBerth.module.css"; | ||
import {NavLink} from "react-router-dom"; | ||
|
||
const PostBerth = (props) => { | ||
return ( | ||
<div className="rounded-3 col p-3"> | ||
<div className="pt-1"> | ||
<h2 className="text-start m-0">{props?.name}</h2> | ||
<div className="shadow rounded mt-1 p-2"> | ||
{props?.urlClassMoreInfo.constructor === Array ? | ||
props?.ship.map((obj,index) => { | ||
return( | ||
<div className="p-1 m-0 mt-1" key={obj?.name + "_" + props?.id + "_" + "_" + obj?.id}> | ||
{obj.typeShip==="Яхта" | ||
? | ||
<div> | ||
<NavLink className={["text-decoration-none",style.name_ship].join(" ")} to={props.urlClassMoreInfo[1]+"/"+obj?.id}>{obj?.name}</NavLink> | ||
<span className={style.type_ship}>Яхта</span> | ||
<span className="float-end">от {obj?.price} ₽/час</span> | ||
<hr/> | ||
</div> | ||
: | ||
<div> | ||
<NavLink className={["text-decoration-none",style.name_ship].join(" ")} to={props.urlClassMoreInfo[0]+"/"+obj?.id}>{obj?.name}</NavLink> | ||
<span className={style.type_ship}>Катер</span> | ||
<span className="float-end">от {obj?.price} ₽/час</span> | ||
<hr/> | ||
</div> | ||
} | ||
</div> | ||
) | ||
}) | ||
: null} | ||
|
||
|
||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PostBerth; |
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,12 @@ | ||
.name_ship{ | ||
color: black; | ||
} | ||
|
||
.name_ship:hover{ | ||
color: #007bff; | ||
} | ||
|
||
.type_ship{ | ||
padding-left: 12px; | ||
font-size: 12px; | ||
} |
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