This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-website.git
The following commit(s) were added to refs/heads/master by this push:
new 7d0eeee7a docs: add OpenSSF Best Practices badge to homepage
7d0eeee7a is described below
commit 7d0eeee7aa0dc3f1fee07122af608aa3db6f34a8
Author: Yang Luo <[email protected]>
AuthorDate: Mon Oct 5 12:05:32 2026 +0800
docs: add OpenSSF Best Practices badge to homepage
---
src/pages/index.js | 7 ++++++-
src/pages/index.module.css | 28 ++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/src/pages/index.js b/src/pages/index.js
index 412a71e05..7a4579274 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -11,7 +11,7 @@ import EditorPreview from "../components/EditorPreview";
import LanguageIntegration from "../components/LanguageIntegration";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import AnimatedText from "../components/AnimatedText";
-import {Code, Zap} from "lucide-react";
+import {Code, ShieldCheck, Zap} from "lucide-react";
import LogoCarousel from "@site/src/components/LogoCarousel";
import latestReleaseData from "@site/src/data/latest-release.json";
@@ -81,6 +81,11 @@ function HomepageHeader() {
<Translate>Try Online Editor</Translate>
</Link>
</div>
+ <a className={styles.trustBadge}
href="https://www.bestpractices.dev/projects/15229" target="_blank"
rel="noopener noreferrer">
+ <ShieldCheck size={16} className={styles.trustBadgeIcon} />
+ <span>OpenSSF Best Practices</span>
+ <span className={styles.trustBadgeLevel}>Passing</span>
+ </a>
{/* logo carousel in hero */}
<div style={{marginTop: "18px"}}>
<LogoCarousel />
diff --git a/src/pages/index.module.css b/src/pages/index.module.css
index 3ec4a7eab..c7f27527d 100644
--- a/src/pages/index.module.css
+++ b/src/pages/index.module.css
@@ -303,6 +303,34 @@ html[data-theme="light"] .highlightedKeyword {
margin-top: 1rem;
}
+.trustBadge {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.45rem;
+ margin-top: 1.25rem;
+ font-size: 0.875rem;
+ font-weight: 500;
+ color: rgb(255 255 255 / 75%);
+ transition: color 150ms ease;
+}
+
+.trustBadge:hover,
+.trustBadge:focus {
+ color: #fff;
+ text-decoration: none;
+}
+
+.trustBadgeIcon {
+ color: #4ade80;
+}
+
+.trustBadgeLevel {
+ padding-left: 0.45rem;
+ border-left: 1px solid rgb(255 255 255 / 30%);
+ color: #4ade80;
+ font-weight: 600;
+}
+
/* Hero pill above the title */
.heroPill {
display: inline-flex;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]