Skip to content

Commit 2459cbf

Browse files
authored
Merge pull request #3729 from IntersectMBO/3728-update-red-banner-copy-and-behavior-on-govtool
fix(#3728): update red banner copy and behavior
2 parents 3af09f5 + 80b6d53 commit 2459cbf

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

govtool/frontend/src/components/organisms/MaintenanceEndingBanner/MaintenanceEndingBanner.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
44
import { Trans, useTranslation } from "react-i18next";
55
import { useMaintenanceEndingBannerContext } from "./MaintenanceEndingBannerContext";
66

7-
const EXPANDED_HEIGHT = 135;
8-
const COLLAPSED_HEIGHT = 50;
9-
107
export const MaintenanceEndingBanner = () => {
118
const { ref, isExpanded, toggleExpanded } =
129
useMaintenanceEndingBannerContext();
@@ -16,7 +13,7 @@ export const MaintenanceEndingBanner = () => {
1613
<Box
1714
ref={ref}
1815
sx={{
19-
backgroundColor: "#9c2224",
16+
backgroundColor: isExpanded ? "#212A3D" : "#9c2224",
2017
width: "100%",
2118
overflow: "hidden",
2219
transition: "all 0.3s ease-in-out",
@@ -64,8 +61,8 @@ export const MaintenanceEndingBanner = () => {
6461
{/* Expandable Content */}
6562
<Box
6663
sx={{
67-
height: isExpanded ? EXPANDED_HEIGHT - COLLAPSED_HEIGHT : "0px",
68-
transition: "max-height 0.3s ease-in-out",
64+
maxHeight: isExpanded ? '300px' : "0px", // 300px is a safe value for transition effect
65+
transition: "max-height 0.4s ease-in-out",
6966
overflow: "hidden",
7067
}}
7168
>

govtool/frontend/src/i18n/locales/en.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,10 @@
755755
"title": "This tool is connected to {{networkName}}",
756756
"bootstrappingWarning": "Govtool is in the Bootstrapping phase. Some features are not available. <docs>Learn more</docs>",
757757
"maintenanceEnding": {
758-
"title": "⚠️ Funding for GovTool is at risk",
759-
"description1": "GovTool was not included in the current Cardano budget.",
760-
"description2": "Without new support, active development and <0>maintenance will end in June 2025.</0>",
761-
"description3": "Learn what this means and what’s next:",
758+
"title": "⚠️ GovTool needs your support",
759+
"description1": "GovTool wasn’t included in the current Cardano budget.",
760+
"description2": "A 100k ada maintenance grant will sustain essential infrastructure and bug fixes through 2025 — but future development depends on renewed community backing.",
761+
"description3": "Find out what this means and how you can help:",
762762
"linkText": "The future of GovTool"
763763
}
764764
},

0 commit comments

Comments
 (0)