Skip to content

Commit 07dd271

Browse files
committed
Mark HyperclayJS deprecated: fixed site banner linking to ClayJS, README notice
1 parent 5bc2693 commit 07dd271

6 files changed

Lines changed: 33 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# HyperclayJS™
22

3+
> **Deprecated.** HyperclayJS has been replaced by ClayJS and only receives maintenance fixes. New projects should use [ClayJS](https://clayjs.com) (`@panphora/clayjs` on npm). Existing documents that load HyperclayJS keep working.
4+
35
A modular JavaScript library for building interactive malleable documents with Hyperclay. Load only what you need with automatic dependency resolution.
46

57
## Features

‎build/README.template.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# HyperclayJS™
22

3+
> **Deprecated.** HyperclayJS has been replaced by ClayJS and only receives maintenance fixes. New projects should use [ClayJS](https://clayjs.com) (`@panphora/clayjs` on npm). Existing documents that load HyperclayJS keep working.
4+
35
A modular JavaScript library for building interactive malleable documents with Hyperclay. Load only what you need with automatic dependency resolution.
46

57
## Features

‎website/config.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
</style>
4040
</head>
4141
<body>
42+
<div class="deprecation-banner" role="note">HyperclayJS is deprecated. New projects should use <a href="https://clayjs.com">ClayJS</a>, its successor.</div>
43+
4244
<div class="container">
4345
<div class="header">
4446
<div class="header-row">

‎website/docs.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
</style>
1818
</head>
1919
<body>
20+
<div class="deprecation-banner" role="note">HyperclayJS is deprecated. New projects should use <a href="https://clayjs.com">ClayJS</a>, its successor.</div>
21+
2022
<div class="top-nav">
2123
<div class="top-nav-inner">
2224
<h1>HyperclayJS</h1>

‎website/index.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
<link rel="stylesheet" href="./styles.css">
2121
</head>
2222
<body>
23+
<div class="deprecation-banner" role="note">HyperclayJS is deprecated. New projects should use <a href="https://clayjs.com">ClayJS</a>, its successor.</div>
24+
2325
<div class="container">
2426
<div class="header">
2527
<div class="header-row">

‎website/styles.css‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,29 @@ body {
6969
text-wrap: pretty;
7070
}
7171

72+
.deprecation-banner {
73+
position: fixed;
74+
top: 0;
75+
left: 0;
76+
right: 0;
77+
z-index: 1000;
78+
padding: 0.6rem 1rem;
79+
background: var(--yellow-dark);
80+
color: var(--text-primary);
81+
font-size: 0.9rem;
82+
text-align: center;
83+
}
84+
85+
.deprecation-banner a {
86+
color: inherit;
87+
font-weight: 700;
88+
text-decoration: underline;
89+
}
90+
91+
body:has(.deprecation-banner) {
92+
padding-top: 4rem;
93+
}
94+
7295
code {
7396
font-family: inherit;
7497
}

0 commit comments

Comments
 (0)