Skip to content

Commit

Permalink
Add and display school type information
Browse files Browse the repository at this point in the history
  • Loading branch information
gocemitevski committed Jan 26, 2024
1 parent 3f79e2d commit d060a5b
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/components/SchoolItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ const SchoolItem = (props) => {
return (
<article className="card school" key={props.index}>
<div className="row no-gutters">
<div className="col-lg-6 p-4 d-flex">
<h2 className="h5 mb-0 flex-fill">
<div className="col-lg-6 p-4 d-flex flex-column">
<h2 className={`h5 flex-fill ${props.data.tip ? `mb-2` : `mb-0`}`}>
<SchoolItemLink {...props} data={props.data} />
</h2>
{props.data.tip && <p className='text-muted'>{props.data.tip}</p>}
</div>
<div className="col-lg-6">
<div className="card-body">
Expand Down
1 change: 1 addition & 0 deletions src/components/SchoolItemMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const SchoolItemMap = (props) => {
<div className="col-lg-6">
<div className="card-body p-5 d-flex flex-column h-100">
<h1 className="h2 mb-3 font-weight-bold card-title">{props.data.ime}</h1>
{props.data.tip && <p className='text-muted'>{props.data.tip}</p>}
<dl className="mb-0">
<dt>Адреса:</dt>
<dd><address className="mb-0">{props.data.adresa}<br />{props.data.opstina}</address></dd>
Expand Down
Loading

0 comments on commit d060a5b

Please sign in to comment.