From e61897fef929ed199ca701834c2560ad879b3c52 Mon Sep 17 00:00:00 2001 From: NatSquared Date: Tue, 11 Jun 2024 17:02:40 -0700 Subject: [PATCH] Initial commit --- CHANGELOG.MD | 11 ++ .../components/appLayouts/PublicLayout.tsx | 5 +- .../common/Indicators/StatusChip.tsx | 77 ++++++++++++ .../src/components/common/Indicators/index.ts | 1 + met-web/src/components/common/Input/index.tsx | 1 - .../src/components/common/Layout/index.tsx | 49 +++++--- .../src/components/common/Navigation/Link.tsx | 18 ++- .../src/components/common/Typography/Body.tsx | 41 ++---- .../components/common/Typography/Headers.tsx | 108 +++++++++++----- .../components/common/Typography/index.tsx | 2 +- .../engagement/new/view/EngagementHero.tsx | 76 +++++++++++ .../components/engagement/new/view/index.tsx | 118 ++++++++++++------ .../view/EngagementBanner/BannerSection.tsx | 2 +- .../engagement/view/EngagementView.tsx | 20 ++- .../engagement/view/widgets/Map/MapWidget.tsx | 3 +- .../src/components/layout/Footer/index.tsx | 3 +- met-web/src/routes/NotFound.tsx | 2 +- met-web/src/routes/UnauthenticatedRoutes.tsx | 21 +++- 18 files changed, 431 insertions(+), 127 deletions(-) create mode 100644 met-web/src/components/common/Indicators/StatusChip.tsx create mode 100644 met-web/src/components/common/Indicators/index.ts create mode 100644 met-web/src/components/engagement/new/view/EngagementHero.tsx diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 6ff2e5bdc..f8d190160 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,3 +1,14 @@ +## June 11, 2024 + +- **Feature** Add new header to "new look" engagement page [🎟️ DESENG-630](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-630) + - Added a new hero image to the new engagement page + - Added a header overlaying the hero image + - The header uses the sponsor name, CTA message, and CTA URL from DESENG-629, as well as the engagement title, dates, and status + - Added new engagement status chips for use in the header + - Added link from the old engagement page offering the option to preview the new engagement page + - Added global width limit to the public view to avoid display issues on very wide screens +- **Task** De-duplicate link code and only use \s from the common/Navigation module + ## June 10, 2024 - **Feature** Add new fields for use in "new look" design [🎟️ DESENG-629](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-629) diff --git a/met-web/src/components/appLayouts/PublicLayout.tsx b/met-web/src/components/appLayouts/PublicLayout.tsx index 9dafe23b5..3e792654e 100644 --- a/met-web/src/components/appLayouts/PublicLayout.tsx +++ b/met-web/src/components/appLayouts/PublicLayout.tsx @@ -9,10 +9,11 @@ import { FeedbackModal } from 'components/feedback/FeedbackModal'; import Footer from 'components/layout/Footer'; import DocumentTitle from 'DocumentTitle'; import ScrollToTop from 'components/scrollToTop'; +import { WidthLimiter } from 'components/common/Layout'; export const PublicLayout = () => { return ( - <> + @@ -22,6 +23,6 @@ export const PublicLayout = () => {