Skip to content

Commit 6de8e30

Browse files
committed
Banner pointing to new site
1 parent 81890a4 commit 6de8e30

9 files changed

Lines changed: 74 additions & 1 deletion

_includes/archive-banner.html

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<style>
2+
.archive-site-banner {
3+
position: absolute;
4+
top: 28px;
5+
left: 50%;
6+
transform: translateX(-50%);
7+
z-index: 11;
8+
background: rgba(36, 40, 58, 0.92);
9+
border: 1px solid rgba(225, 232, 255, 0.28);
10+
border-radius: 999px;
11+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
12+
color: #eef2ff;
13+
font-size: 13px;
14+
line-height: 1.35;
15+
padding: 5px 12px;
16+
text-align: center;
17+
white-space: nowrap;
18+
}
19+
20+
.archive-site-banner a {
21+
color: #9fd7ff;
22+
font-weight: 600;
23+
text-decoration: underline;
24+
}
25+
26+
.archive-site-banner a:hover,
27+
.archive-site-banner a:focus {
28+
color: #d4ecff;
29+
}
30+
31+
@media (max-width: 767px) {
32+
.archive-site-banner {
33+
position: static;
34+
transform: none;
35+
border-radius: 0;
36+
border-left: 0;
37+
border-right: 0;
38+
white-space: normal;
39+
padding: 6px 10px;
40+
font-size: 12px;
41+
}
42+
}
43+
</style>
44+
45+
<div class="archive-site-banner" role="status" aria-live="polite">
46+
This is an archive of the old site. Visit the latest version at
47+
<a id="archive-site-banner-link" href="https://dexie.org/">dexie.org</a>.
48+
</div>
49+
50+
<script>
51+
(function () {
52+
var link = document.getElementById("archive-site-banner-link");
53+
if (!link) {
54+
return;
55+
}
56+
57+
var path = window.location.pathname || "/";
58+
var search = window.location.search || "";
59+
var hash = window.location.hash || "";
60+
61+
link.href = "https://dexie.org" + path + search + hash;
62+
})();
63+
</script>

_layouts/default.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<body>
1010
{% include navbar.html %}
1111

12+
{% include archive-banner.html %}
13+
1214
{% include header.html %}
1315

1416
<main class="container">

_layouts/dexie-cloud-landing-page.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{% include head.html %}
77
<body class="dexie-cloud-landing-page">
88
{% include navbar.html %}
9+
{% include archive-banner.html %}
910
{% include dexie-cloud-header.html %}
1011

1112
<main class="container">

_layouts/dexie-cloud-minimal.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<body>
77

88
{% include navbar.html %}
9+
{% include archive-banner.html %}
910
{% include dexie-cloud-header-tiny.html %}
1011

1112
<main class="container">

_layouts/dexie-cloud-pricing.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{% include head.html %}
77
<body>
88
{% include navbar.html %}
9+
{% include archive-banner.html %}
910
{% include dexie-cloud-header-tiny.html %}
1011

1112
<main class="container">

_layouts/dexie-cloud.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<body>
1010

1111
{% include navbar.html %}
12+
{% include archive-banner.html %}
1213
{% include dexie-cloud-header.html %}
1314

1415
<main class="container">

_layouts/dexie-frontpage-template.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<body class='language-javascript'>
1919

2020
{% include navbar.html %}
21+
{% include archive-banner.html %}
2122

2223
<div class='jumbotron' id='parallax'>
2324
<div class='parallax-wrap'>

_layouts/dexie-hackathon-template.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262

6363
<body class="language-javascript hackathon-page">
6464
{% include navbar.html %}
65+
{% include archive-banner.html %}
6566

6667
<!-- Jumbotron / Parallax Section -->
6768
<div class="jumbotron" id="parallax" style="min-height: 100vh; background-color: black;">

_layouts/docs-dexie-cloud.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
{% include head.html %}
88

99
<body>
10-
{% include navbar.html %} {% include dexie-cloud-docs-header.html %}
10+
{% include navbar.html %}
11+
{% include archive-banner.html %}
12+
{% include dexie-cloud-docs-header.html %}
1113

1214
<main class="container">
1315
<div class="row">

0 commit comments

Comments
 (0)