Skip to content

Commit

Permalink
DBC22-1883: Styling empty states for advisories and bulletins
Browse files Browse the repository at this point in the history
  • Loading branch information
minORC committed Mar 20, 2024
1 parent b95b668 commit a1ad84a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 27 deletions.
7 changes: 7 additions & 0 deletions src/frontend/src/Components/advisories/AdvisoriesList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,11 @@
.timestamp-container--mobile {
display: none;
}
}

.empty-advisory-display {
h2 {
margin-bottom: 2rem;
color: $BC-Blue;
}
}
26 changes: 11 additions & 15 deletions src/frontend/src/Components/advisories/EmptyAdvisory.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@ import Container from 'react-bootstrap/Container';
export default function EmptyAdvisory() {
// Rendering
return (
<div>
<h4 className='advisory-li-title'>No advisories are active at the moment</h4>
<Container className="advisory-body-container cms-body">
<div className="advisory-body-container cms-body container">
<p>
If there are widespread travel advisories, they will be posted here to give you guidance on:
</p>
<ul>
<li>how to navigate safely through the affected area</li>
<li>where to detour if available, and</li>
<li>keep you informed with the most up-to-date information we have.</li>
</ul>
</div>
</Container>
</div>
<Container className="empty-advisory-display">
<h2>No advisories are active at the moment</h2>
<p>
If there are widespread travel advisories, they will be posted here to give you guidance on:
</p>
<ul>
<li>how to navigate safely through the affected area</li>
<li>where to detour if available, and</li>
<li>keep you informed with the most up-to-date information we have.</li>
</ul>
</Container>
);
}
6 changes: 6 additions & 0 deletions src/frontend/src/Components/bulletins/BulletinsList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@
cursor: pointer;
width: fit-content;
}
}
.empty-bulletin-display {
h2 {
margin-bottom: 2rem;
color: $BC-Blue;
}
}
20 changes: 8 additions & 12 deletions src/frontend/src/Components/bulletins/EmptyBulletin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ import Container from 'react-bootstrap/Container';
export default function EmptyBulletin() {
// Rendering
return (
<div>
<h4 className='bulletin-li-title'>No bulletins at the moment</h4>
<Container className="bulletin-body-container cms-body">
<div className="bulletin-body-container cms-body container">
<p>
There are currently no bulletins to display.
As we continue to evolve DriveBC to better meet the needs of British Columbians,
watch this space for updates as they come!
</p>
</div>
</Container>
</div>
<Container className="empty-advisory-display">
<h2>No bulletins at the moment</h2>
<p>
There are currently no bulletins to display.
As we continue to evolve DriveBC to better meet the needs of British Columbians,
watch this space for updates as they come!
</p>
</Container>
);
}

0 comments on commit a1ad84a

Please sign in to comment.