This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory-site.git
The following commit(s) were added to refs/heads/main by this push:
new fd4ec2bae Fix: Changes the navbar-logo for better visual appeal in
both the dark and light themes. (#377)
fd4ec2bae is described below
commit fd4ec2bae824ed1d76cc492e5b572469f3fe555a
Author: Ayush Kumar <[email protected]>
AuthorDate: Fri Dec 19 03:43:11 2025 +0530
Fix: Changes the navbar-logo for better visual appeal in both the dark and
light themes. (#377)
Fixes #376
Changes i've made -
Edited the `static/img/navbar-logo.png`, now it's visually appealing in
both the light and dark theme of the website.
Here's how it looks -
In the dark mode -
<img width="1920" height="536" alt="image"
src="https://github.com/user-attachments/assets/275823ac-010b-4dfb-9bcf-fd9b1ace1040"
/>
In the light mode -
<img width="1920" height="536" alt="image"
src="https://github.com/user-attachments/assets/5f30de48-4dd6-4e50-98b8-d6ce41c9884b"
/>
---
docusaurus.config.ts | 3 ++-
src/css/custom.css | 15 +++++++++++++++
static/img/fory-logo-dark.png | Bin 0 -> 71461 bytes
static/img/fory-logo-light.png | Bin 0 -> 77963 bytes
static/img/navbar-logo.png | Bin 57104 -> 0 bytes
.../version-0.14/docs/introduction/introduction.md | 5 ++++-
6 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/docusaurus.config.ts b/docusaurus.config.ts
index 097740819..736c5b217 100644
--- a/docusaurus.config.ts
+++ b/docusaurus.config.ts
@@ -111,7 +111,8 @@ const config: Config = {
title: '',
logo: {
alt: 'Apache Fory™ Logo',
- src: 'img/navbar-logo.png',
+ src: 'img/fory-logo-light.png',
+ srcDark: 'img/fory-logo-dark.png',
},
items: [
// {
diff --git a/src/css/custom.css b/src/css/custom.css
index 60032d2a7..d5ee709de 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -68,3 +68,18 @@
.footer__links {
text-align: center;
}
+
+.themed-logo-light {
+ display: block;
+}
+.themed-logo-dark {
+ display: none;
+}
+
+[data-theme='dark'] .themed-logo-light {
+ display: none;
+}
+
+[data-theme='dark'] .themed-logo-dark {
+ display: block;
+}
\ No newline at end of file
diff --git a/static/img/fory-logo-dark.png b/static/img/fory-logo-dark.png
new file mode 100644
index 000000000..8f0ead587
Binary files /dev/null and b/static/img/fory-logo-dark.png differ
diff --git a/static/img/fory-logo-light.png b/static/img/fory-logo-light.png
new file mode 100644
index 000000000..de31ca450
Binary files /dev/null and b/static/img/fory-logo-light.png differ
diff --git a/static/img/navbar-logo.png b/static/img/navbar-logo.png
deleted file mode 100644
index 265695145..000000000
Binary files a/static/img/navbar-logo.png and /dev/null differ
diff --git a/versioned_docs/version-0.14/docs/introduction/introduction.md
b/versioned_docs/version-0.14/docs/introduction/introduction.md
index bc7ef847a..deb3bdfd2 100644
--- a/versioned_docs/version-0.14/docs/introduction/introduction.md
+++ b/versioned_docs/version-0.14/docs/introduction/introduction.md
@@ -4,7 +4,10 @@ title: Introduction
sidebar_position: 1
---
-<img width="65%" alt="Apache Fory logo" src="/img/navbar-logo.png"/>
+<div class="themed-logo">
+ <img width="65%" alt="Apache Fory logo" src="/img/fory-logo-dark.png"
class="themed-logo-dark"/>
+ <img width="65%" alt="Apache Fory logo" src="/img/fory-logo-light.png"
class="themed-logo-light"/>
+</div>
**Apache Fory™** is a blazingly-fast multi-language serialization framework
powered by **JIT compilation**, **zero-copy** techniques, and **advanced code
generation**, achieving up to **170x performance improvement** while
maintaining simplicity and ease of use.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]