diff --git a/cl/assets/static-global/css/override.css b/cl/assets/static-global/css/override.css index ce071745d2..1cdfdbb510 100644 --- a/cl/assets/static-global/css/override.css +++ b/cl/assets/static-global/css/override.css @@ -1491,6 +1491,10 @@ emphasis { border-color: #999999; } +.alert-dismissible .second-row-btn { + margin-bottom: 10px; +} + .h-captcha > div { color: #333333 !important; font-family: Helvetica; diff --git a/cl/assets/templates/base.html b/cl/assets/templates/base.html index 0cc58c47f3..667546f937 100644 --- a/cl/assets/templates/base.html +++ b/cl/assets/templates/base.html @@ -84,7 +84,7 @@

You did not supply the "private" variable to your template.
{% if FUNDRAISING_MODE %} - {% include 'includes/dismissible_nav_banner.html' with link="https://donate.free.law/forms/givingtuesday" text="Today is GivingTuesday. Your support of Free Law Project helps make the justice system more transparent and accessible to all." cookie_name="giving_tuesday" button_text="Donate Today!"%} + {% include 'includes/dismissible_nav_banner.html' with link="https://donate.free.law/forms/supportflp" cookie_name="eoy_banner" button_text="Make your DONATION TODAY" button_emoji='' text="Your support has grown CourtListener to over 10 million opinions, with improved search and API functionality. Help us continue expanding and enhancing access to the law. Donate before the end of 2024 to power free and open legal information for everyone" %} {% endif %} diff --git a/cl/assets/templates/includes/dismissible_nav_banner.html b/cl/assets/templates/includes/dismissible_nav_banner.html index c1f3480830..7467d105cf 100644 --- a/cl/assets/templates/includes/dismissible_nav_banner.html +++ b/cl/assets/templates/includes/dismissible_nav_banner.html @@ -8,6 +8,9 @@ - cookie_name: Name of the cookie used to remember if the user has already dismissed the banner. This prevents them from seeing the same message repeatedly. + - single_row (optional): A Boolean flag that, when set to True for medium + and large resolutions, condenses the banner into a single line of text + with a button positioned to the right. Defaults to False. - button_text (optional): Text for the button. Defaults to "Learn More". - button_emoji (optional): An Idiomatic Text element () to display inside the button. @@ -27,7 +30,7 @@ {% endcomment %} {% if cookie_name not in request.COOKIES %} -