Skip to content

Commit f801423

Browse files
committed
Modify version announcement bar and sponsor callout
1 parent ff95b9d commit f801423

File tree

2 files changed

+90
-38
lines changed

2 files changed

+90
-38
lines changed

feascript-website.css

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,58 @@ mjx-container {
469469
margin-bottom: 1em;
470470
}
471471

472+
/* Announcement bar (top-of-page strip) */
473+
.announcement-bar {
474+
display: flex;
475+
flex-wrap: wrap;
476+
align-items: center;
477+
justify-content: center;
478+
gap: 0.5em;
479+
padding: 8px 16px;
480+
margin: -20px -20px 0;
481+
background: #f4f4f5;
482+
border-bottom: 1px solid #e0e0e0;
483+
font-size: 0.9em;
484+
color: #555;
485+
}
486+
487+
.announcement-bar .version-label {
488+
font-weight: bold;
489+
color: #333;
490+
}
491+
492+
.announcement-bar .version-sep {
493+
color: #bbb;
494+
}
495+
496+
.announcement-bar a img {
497+
vertical-align: middle;
498+
}
499+
500+
.announcement-bar a {
501+
color: #0056b3;
502+
}
503+
504+
/* Sponsor callout */
505+
.sponsor-cta {
506+
display: flex;
507+
align-items: center;
508+
gap: 0.5em;
509+
padding: 12px 16px;
510+
border: 1px solid #e4c9f9;
511+
border-radius: 10px;
512+
background: #faf5ff;
513+
max-width: 1000px;
514+
margin: 1.5em 0;
515+
/* font-size: 0.95em; */
516+
font-size: 100%;
517+
}
518+
519+
.sponsor-cta a {
520+
color: #7c3aed;
521+
font-weight: bold;
522+
}
523+
472524
/* Helper classes and utilities */
473525
/* Notice bars */
474526
.notice-dev {
@@ -619,6 +671,10 @@ mjx-container {
619671
padding: 10px;
620672
}
621673

674+
.announcement-bar {
675+
margin: -10px -10px 0;
676+
}
677+
622678
h1 {
623679
font-size: 155%;
624680
}
@@ -660,6 +716,10 @@ mjx-container {
660716
padding: 15px;
661717
}
662718

719+
.announcement-bar {
720+
margin: -15px -15px 0;
721+
}
722+
663723
h1 {
664724
font-size: 170%;
665725
}

index.html

Lines changed: 30 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@
4343
</script>
4444

4545
<body>
46+
<div class="announcement-bar">
47+
<span class="version-label">Latest release</span>
48+
<a href="https://github.com/FEAScript/FEAScript-core/releases/tag/0.2.0"
49+
><img
50+
src="https://img.shields.io/github/v/release/FEAScript/FEAScript-core?logo=github"
51+
alt="GitHub release badge"
52+
/></a>
53+
<a href="https://www.npmjs.com/package/feascript"
54+
><img src="https://img.shields.io/npm/v/feascript" alt="npm version badge"
55+
/></a>
56+
<span class="version-sep">·</span>
57+
<a href="https://github.com/orgs/FEAScript/discussions/72">Roadmap for 0.3.0</a>
58+
</div>
59+
4660
<h1 class="top">
4761
<a href="index.html">
4862
<img
@@ -287,34 +301,6 @@ <h2 id="howtousefeascript"><a name="Getting Started"></a>How to Use FEAScript</h
287301
>.
288302
</p>
289303

290-
<div class="highlight-container" style="margin-bottom: 1.5em">
291-
<strong>Current stable release</strong>
292-
<a href="https://github.com/FEAScript/FEAScript-core/releases/tag/0.2.0"
293-
><img
294-
src="https://img.shields.io/github/v/release/FEAScript/FEAScript-core?logo=github"
295-
alt="Gibhub Badge"
296-
style="
297-
vertical-align: middle;
298-
margin-left: 2px;
299-
margin-bottom: 4px;
300-
" /></a
301-
>
302-
<a href="https://www.npmjs.com/package/feascript"
303-
><img
304-
src="https://img.shields.io/npm/v/feascript"
305-
alt="npm Badge"
306-
style="
307-
vertical-align: middle;
308-
margin-left: 2px;
309-
margin-bottom: 4px;
310-
" /></a
311-
><br/>See also the <a href="https://github.com/orgs/FEAScript/discussions/72">roadmap</a> for the upcoming release 0.3.0
312-
<div style="height: 0.5em"></div>
313-
💖 If you find FEAScript useful, please consider supporting its development:
314-
<a href="https://github.com/sponsors/FEAScript">GitHub Sponsors</a>
315-
<a href="https://liberapay.com/FEAScript/donate">Liberapay</a>
316-
</div>
317-
318304
<p class="blue-label" style="margin-bottom: 0">QUICK START</p>
319305
<div class="blue-box" style="margin-top: 5px">
320306
<p>
@@ -467,16 +453,6 @@ <h2 id="howtousefeascript"><a name="Getting Started"></a>How to Use FEAScript</h
467453
}
468454
</script>
469455

470-
<p class="notice-dev">
471-
🚧
472-
<strong>FEAScript is currently under heavy development with new features being added regularly</strong>.
473-
<br />Interested in contributing? Check out our
474-
<a href="https://github.com/FEAScript/FEAScript-core/blob/main/CONTRIBUTING.md"
475-
>contribution guidelines</a
476-
>
477-
to get started.
478-
</p>
479-
480456
<h2 id="features"><a name="Features"></a>Features</h2>
481457

482458
<p>The following list highlights key FEAScript features:</p>
@@ -636,6 +612,16 @@ <h2 id="features"><a name="Features"></a>Features</h2>
636612
</li>
637613
</ul>
638614

615+
<p class="notice-dev">
616+
🚧
617+
<strong>FEAScript is currently under heavy development with new features being added regularly</strong>.
618+
<br />Interested in contributing? Check out our
619+
<a href="https://github.com/FEAScript/FEAScript-core/blob/main/CONTRIBUTING.md"
620+
>contribution guidelines</a
621+
>
622+
to get started.
623+
</p>
624+
639625
<div style="margin-top: 0.5em"></div>
640626
<h2 id="tutorials"><a name="Tutorials"></a>Tutorials</h2>
641627
<p>
@@ -952,6 +938,12 @@ <h2 id="documentation"><a name="Documentation"></a>Documentation</h2>
952938
<a href="https://blog.feascript.com">FEAScript blog</a>.
953939
</p>
954940

941+
<div class="sponsor-cta">
942+
💖 If you find FEAScript useful, please consider supporting its development:
943+
<a href="https://github.com/sponsors/FEAScript">GitHub Sponsors</a> ·
944+
<a href="https://liberapay.com/FEAScript/donate">Liberapay</a>
945+
</div>
946+
955947
<h2 id="licensing"><a name="Licensing"></a>Licensing</h2>
956948
<p>
957949
The core library of FEAScript is distributed under the terms of the

0 commit comments

Comments
 (0)