Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
import { Trans, useTranslation } from "react-i18next";
import { useMaintenanceEndingBannerContext } from "./MaintenanceEndingBannerContext";

const EXPANDED_HEIGHT = 135;
const COLLAPSED_HEIGHT = 50;

export const MaintenanceEndingBanner = () => {
const { ref, isExpanded, toggleExpanded } =
useMaintenanceEndingBannerContext();
Expand All @@ -16,7 +13,7 @@ export const MaintenanceEndingBanner = () => {
<Box
ref={ref}
sx={{
backgroundColor: "#9c2224",
backgroundColor: isExpanded ? "#212A3D" : "#9c2224",
width: "100%",
overflow: "hidden",
transition: "all 0.3s ease-in-out",
Expand Down Expand Up @@ -64,8 +61,8 @@ export const MaintenanceEndingBanner = () => {
{/* Expandable Content */}
<Box
sx={{
height: isExpanded ? EXPANDED_HEIGHT - COLLAPSED_HEIGHT : "0px",
transition: "max-height 0.3s ease-in-out",
maxHeight: isExpanded ? '300px' : "0px", // 300px is a safe value for transition effect
transition: "max-height 0.4s ease-in-out",
overflow: "hidden",
}}
>
Expand Down
8 changes: 4 additions & 4 deletions govtool/frontend/src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,10 @@
"title": "This tool is connected to {{networkName}}",
"bootstrappingWarning": "Govtool is in the Bootstrapping phase. Some features are not available. <docs>Learn more</docs>",
"maintenanceEnding": {
"title": "⚠️ Funding for GovTool is at risk",
"description1": "GovTool was not included in the current Cardano budget.",
"description2": "Without new support, active development and <0>maintenance will end in June 2025.</0>",
"description3": "Learn what this means and what’s next:",
"title": "⚠️ GovTool needs your support",
"description1": "GovTool wasn’t included in the current Cardano budget.",
"description2": "A 100k ada maintenance grant will sustain essential infrastructure and bug fixes through 2025 — but future development depends on renewed community backing.",
"description3": "Find out what this means and how you can help:",
"linkText": "The future of GovTool"
}
},
Expand Down