Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated banner date/text #802

Merged
merged 1 commit into from
Dec 2, 2024
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
3 changes: 2 additions & 1 deletion browse/static/css/slider.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ body {
float: left;
}
.slider-wrapper .donate-cta {
float: left;
float: right;
margin-right: 15%;
}
}
@media (min-width: 983px) {
Expand Down
12 changes: 6 additions & 6 deletions browse/templates/user_banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
-#}

{# Set these variables to a string of YYYYMMDD of the start and end date #}
{% set BANNER_START_1 = 202410210000 %}
{% set BANNER_END_1 = 202410272359 %}
{% set BANNER_START_1 = 202412030000 %}
{% set BANNER_END_1 = 202412032359 %}
{% set SLIDE = True %}

{%- macro content(request_datetime) -%}
{%- set now=request_datetime.strftime("%Y%m%d%H%M")|int -%}

{%- if now >= BANNER_START_1 and now < BANNER_END_1 -%}
{# October 21 - October 27 #}
{# Dec3 - Dec3 #}
<aside class="slider-wrapper bps-banner forum blue">
<a class="close-slider bps-banner" href="#"><img src="{{ url_for('static', filename='images/icons/close-slider.png') }}" alt="close this message"></a>
<div class="columns">
<img role="presentation" class="bps-banner-image" src="{{ url_for('static', filename='images/icons/smileybones-infinity-large.png') }}" alt="arXiv Smilely Bones">
<img role="presentation" class="bps-banner-image" src="{{ url_for('static', filename='images/icons/smileybones-pixel.png') }}" alt="arXiv Smilely Bones">
<div class="copy-donation bps-banner">
<h2>Happy Open Access Week from arXiv!</h2>
<p>Open access is only possible with YOUR support. Give to arXiv this week to help keep science open for all.</p>
<h2>Happy Giving Tuesday - support arXiv today!</h2>
<p>Thank you to everyone who makes arXiv possible. Give to arXiv today and help keep science open.</p>
</div>
<div class="amount-donation bps-banner">
<div class="donate-cta"><a class="banner_link banner-btn-grad" target="_blank" href="https://securelb.imodules.com/s/1717/giving/interior.aspx?sid=1717&gid=2&pgid=22315&cid=35778&dids=276&bledit=1&sort=1"><b>Donate!</b></a></div>
Expand Down