diff --git a/assets/src/bundles/webapp/webapp.css b/assets/src/bundles/webapp/webapp.css --- a/assets/src/bundles/webapp/webapp.css +++ b/assets/src/bundles/webapp/webapp.css @@ -252,7 +252,7 @@ width: 100%; padding: 5px; margin-bottom: 10px; - margin-top: 30px; + margin-top: 60px; justify-content: normal; flex-wrap: nowrap; height: 72px; @@ -312,8 +312,8 @@ color: #fecd1b; } -.swh-fundraising-banner-iframe { - height: 60px; +.swh-banner-iframe { + height: 30px; position: fixed; top: 30px; left: 0; @@ -358,7 +358,7 @@ } .main-sidebar { - margin-top: 30px; + margin-top: 60px; } .sidebar { @@ -752,7 +752,7 @@ text-align: center; letter-spacing: 1px; box-shadow: 0 0 3px rgb(0 0 0 / 30%); - top: 55px; + top: 85px; right: -50px; left: auto; transform: rotate(45deg); diff --git a/swh/web/misc/urls.py b/swh/web/misc/urls.py --- a/swh/web/misc/urls.py +++ b/swh/web/misc/urls.py @@ -11,6 +11,7 @@ from django.contrib.staticfiles import finders from django.http import JsonResponse from django.shortcuts import render +from django.views.decorators.clickjacking import xframe_options_exempt from swh.web.common import archive from swh.web.common.exc import sentry_capture_exception @@ -44,6 +45,20 @@ return JsonResponse(counters) +@xframe_options_exempt +def hiring_banner(request): + + lang = request.GET.get("lang") + + return render( + request, + "misc/hiring-banner.html", + { + "lang": lang if lang else "en", + }, + ) + + urlpatterns = [ url(r"^", include("swh.web.misc.coverage")), url(r"^jslicenses/$", _jslicenses, name="jslicenses"), @@ -53,6 +68,7 @@ url(r"^metrics/prometheus/$", prometheus_metrics, name="metrics-prometheus"), url(r"^", include("swh.web.misc.iframe")), url(r"^", include("swh.web.misc.fundraising")), + url(r"^hiring/banner/$", hiring_banner, name="swh-hiring-banner"), ] diff --git a/swh/web/templates/layout.html b/swh/web/templates/layout.html --- a/swh/web/templates/layout.html +++ b/swh/web/templates/layout.html @@ -138,7 +138,7 @@ - {% comment %} {% endcomment %} +