You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/03/17 09:14:11 UTC
[incubator-opendal] branch main updated: website: move some content of footer to navbar. (#1660)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 440c9e24 website: move some content of footer to navbar. (#1660)
440c9e24 is described below
commit 440c9e24078c11a959d179d3d6f3b52c49d355c3
Author: jakevin <ja...@gmail.com>
AuthorDate: Fri Mar 17 17:14:05 2023 +0800
website: move some content of footer to navbar. (#1660)
---
website/docusaurus.config.js | 42 +++++++++++++-----------------------------
website/src/css/custom.css | 14 ++++++++++++++
website/src/pages/index.js | 1 -
3 files changed, 27 insertions(+), 30 deletions(-)
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index 5f0eb253..9e3c874f 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -130,18 +130,9 @@ const config = {
position: 'right'
},
{
- href: repoAddress,
+ type: 'dropdown',
+ label: 'ASF Links',
position: 'right',
- className: 'header-github-link',
- 'aria-label': 'GitHub repository',
- },
- ],
- },
- footer: {
- style: 'light',
- links: [
- {
- title: 'ASF',
items: [
{
label: 'Apache Software Foundation',
@@ -170,28 +161,21 @@ const config = {
]
},
{
- title: 'Community',
- items: [
- {
- label: 'Discord',
- to: 'https://discord.gg/XQy8yGR2dg',
- },
- ],
+ href: repoAddress,
+ position: 'right',
+ className: 'header-github-link',
+ 'aria-label': 'GitHub repository',
},
{
- title: 'More',
- items: [
- {
- label: 'Blog',
- to: '/blog',
- },
- {
- label: 'GitHub',
- to: repoAddress,
- },
- ],
+ href: 'https://discord.gg/XQy8yGR2dg',
+ position: 'right',
+ className: 'header-discord-link',
+ 'aria-label': 'Discord',
},
],
+ },
+ footer: {
+ style: 'light',
logo: {
alt: 'Apache Software Foundation',
src: 'https://www.apache.org/foundation/press/kit/asf_logo.png',
diff --git a/website/src/css/custom.css b/website/src/css/custom.css
index c09c7c46..2df96e8c 100644
--- a/website/src/css/custom.css
+++ b/website/src/css/custom.css
@@ -73,6 +73,20 @@
no-repeat;
}
+.header-discord-link:hover {
+ opacity: 0.6;
+}
+
+/* Already suitable for dark mode */
+.header-discord-link::before {
+ content: '';
+ width: 24px;
+ height: 24px;
+ display: flex;
+ background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='currentColor' class='bi bi-discord' viewBox='0 0 16 16'%3E%3Cpath d='M13.545 2.907a13.227 13.227 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.19 12.19 0 0 0-3.658 0 8.258 8.258 0 0 0-.412-.833.051.051 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.041.041 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032c.001.014.01.028.021.037a13.276 13.276 0 0 0 3.995 2.0 [...]
+ no-repeat;
+}
+
/* set copyright font size */
.footer__copyright {
font-size: .7em;
diff --git a/website/src/pages/index.js b/website/src/pages/index.js
index 546ceb8f..1f747453 100644
--- a/website/src/pages/index.js
+++ b/website/src/pages/index.js
@@ -19,7 +19,6 @@
import React from 'react';
import clsx from 'clsx';
-import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';