Skip to content

Commit 4ede0a5

Browse files
authored
Add decomission banner (#1692)
* Add decomission banner * Update decomission banner date and post link
1 parent 7ebe3e1 commit 4ede0a5

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

via/templates/index.html.jinja2

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,21 @@
6767
.annotate-btn:hover {
6868
background-color: #d00032;
6969
}
70+
71+
.decommission-banner {
72+
padding: 10px 15px;
73+
background: #fceedb;
74+
position: relative;
75+
z-index: 1000;
76+
font-weight: bold;
77+
border: 1px solid #fbc168;
78+
}
7079
</style>
7180
</head>
7281
<body>
82+
<div class="decommission-banner">
83+
Access to Via is being restricted as of Monday, February 2nd, 2026. You can find information <a href="https://web.hypothes.is/blog/changes-to-via-hypothesis-proxy-server-for-annotation/" target="_blank">here</a>, and you can <a href="https://web.hypothes.is/get-help/" target="_blank">reach our team here</a>.
84+
</div>
7385
<div class="content">
7486
<a href="https://hypothes.is">
7587
<svg xmlns="http://www.w3.org/2000/svg"

via/templates/proxy.html.jinja2

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
1818
.proxied-content-iframe {
1919
position: fixed;
20-
top: 0;
20+
top: 40px;
2121
left: 0;
2222
bottom: 0;
2323
right: 0;
@@ -98,6 +98,14 @@
9898
opacity: 0.0;
9999
}
100100
}
101+
102+
.decommission-banner {
103+
padding: 10px 15px;
104+
background: #fceedb;
105+
position: relative;
106+
font-weight: bold;
107+
border: 1px solid #fbc168;
108+
}
101109
</style>
102110

103111
<script>
@@ -154,10 +162,23 @@
154162
history.replaceState(null, document.title, viaURL);
155163
}
156164
});
165+
166+
document.addEventListener('DOMContentLoaded', () => {
167+
const frame = /** @type {HTMLElement} */ document.getElementById('proxied-content-iframe');
168+
const banner = document.getElementById('decommission-banner');
169+
const observer = new ResizeObserver(() => {
170+
const { height } = banner.getBoundingClientRect();
171+
frame.style.top = `${height}px`;
172+
});
173+
observer.observe(frame);
174+
});
157175
</script>
158176
</head>
159177
<body>
160-
<iframe class="js-content-frame proxied-content-iframe" allow="clipboard-write" src={{ src }}></iframe>
178+
<div class="decommission-banner" id="decommission-banner">
179+
Access to Via is being restricted as of Monday, February 2nd, 2026. You can find information <a href="https://web.hypothes.is/blog/changes-to-via-hypothesis-proxy-server-for-annotation/" target="_blank">here</a>, and you can <a href="https://web.hypothes.is/get-help/" target="_blank">reach our team here</a>.
180+
</div>
181+
<iframe id="proxied-content-iframe" class="js-content-frame proxied-content-iframe" allow="clipboard-write" src={{ src }}></iframe>
161182

162183
{# Loading indicator.
163184

0 commit comments

Comments
 (0)