Skip to content

Commit

Permalink
Merge pull request #24 from OpenUpSA/feature/testing-banner
Browse files Browse the repository at this point in the history
Notice banner
  • Loading branch information
paulmwatson authored Nov 20, 2024
2 parents 030d5d8 + ae85e71 commit 69c2a6d
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 18 deletions.
18 changes: 18 additions & 0 deletions src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ h1 {
display: none;
}
}

&.size-sm {
button {
padding: 0.25em 0.65em;
Expand Down Expand Up @@ -151,3 +152,20 @@ h1 {
text-align: left;
}
}

.testing-notice {
background-color: #E03C31;
font-family: "Inter", sans-serif;
font-size: 14px;
line-height: 16.94px;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: #FFFFFF;
padding: 1.4rem;
padding-top: 1.5rem;

strong {
color: #fff;
}
}
2 changes: 1 addition & 1 deletion src/components/attendance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ function Attendance() {
<PMHeader />

<PMTabs active="attendance-tracker" />
<Container fluid className="py-5">
<Container fluid className="py-4">
<div className="bill-tracker-container">
<Row>
<Col>
Expand Down
2 changes: 1 addition & 1 deletion src/components/billtracker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ function BillTracker() {
<Fragment>
<PMHeader />
<PMTabs active="bill-tracker" />
<Container fluid className="py-5">
<Container fluid className="py-4">
<div className="bill-tracker-container">
<Row>
<Col>
Expand Down
39 changes: 23 additions & 16 deletions src/components/pmtabs/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { Fragment } from "react";

import Container from "react-bootstrap/Container";

Expand All @@ -7,22 +7,29 @@ import "./style.scss";
function PMTabs(props) {
const { active } = props;
return (
<div className="tabs">
<Container fluid>
<a
className={`tab ${active === "bill-tracker" ? "active" : ""}`}
href="/"
>
Bill Tracker
</a>
<a
className={`tab ${active === "attendance-tracker" ? "active" : ""}`}
href="/attendance"
>
Attendance Tracker
</a>
<Fragment>
<div className="tabs">
<Container fluid>
<a
className={`tab ${active === "bill-tracker" ? "active" : ""}`}
href="/"
>
Bill Tracker
</a>
<a
className={`tab ${active === "attendance-tracker" ? "active" : ""}`}
href="/attendance"
>
Attendance Tracker
</a>
</Container>
</div>
<Container fluid className="pt-3">
<div className="testing-notice">
<strong>Notice:</strong> The data on this dashboard is for testing purposes only and is not accurate.
</div>
</Container>
</div>
</Fragment>
);
}

Expand Down

0 comments on commit 69c2a6d

Please sign in to comment.