This is an automated email from the ASF dual-hosted git repository.

erose pushed a commit to branch HDDS-9225-website-v2
in repository https://gitbox.apache.org/repos/asf/ozone-site.git


The following commit(s) were added to refs/heads/HDDS-9225-website-v2 by this 
push:
     new ede509de HDDS-9924. Add icons next to community links in footer (#97)
ede509de is described below

commit ede509de7e0d8ff8d21d986ace928fcfea328e55
Author: Will Xiao <[email protected]>
AuthorDate: Sat Jul 27 00:44:36 2024 +0800

    HDDS-9924. Add icons next to community links in footer (#97)
---
 .gitignore                         |  3 ++
 src/theme/Footer/LinkItem/index.js | 58 ++++++++++++++++++++++++++++++++++++++
 static/img/social/github.svg       | 22 +++++++++++++++
 static/img/social/jira.svg         | 22 +++++++++++++++
 static/img/social/mail.svg         | 22 +++++++++++++++
 static/img/social/slack.svg        | 22 +++++++++++++++
 static/img/social/twitter-x.svg    | 22 +++++++++++++++
 static/img/social/youtube.svg      | 22 +++++++++++++++
 8 files changed, 193 insertions(+)

diff --git a/.gitignore b/.gitignore
index 000fb009..badcc832 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,3 +35,6 @@
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*
+
+# IDE - JetBrains IntelliJ
+.idea/
\ No newline at end of file
diff --git a/src/theme/Footer/LinkItem/index.js 
b/src/theme/Footer/LinkItem/index.js
new file mode 100644
index 00000000..3d9ebc18
--- /dev/null
+++ b/src/theme/Footer/LinkItem/index.js
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import React from 'react';
+import Link from '@docusaurus/Link';
+import useBaseUrl from '@docusaurus/useBaseUrl';
+import isInternalUrl from '@docusaurus/isInternalUrl';
+import IconExternalLink from '@theme/Icon/ExternalLink';
+
+const iconMapping = {
+  'GitHub Discussions': '/img/social/github.svg',
+  'Jira Issues': '/img/social/jira.svg',
+  'Slack': '/img/social/slack.svg',
+  'Mailing List': '/img/social/mail.svg',
+  'YouTube': '/img/social/youtube.svg',
+  'Twitter': '/img/social/twitter-x.svg'
+};
+export default function FooterLinkItem({item}) {
+  const {to, href, label, prependBaseUrlToHref, ...props} = item;
+  const toUrl = useBaseUrl(to);
+  const normalizedHref = useBaseUrl(href, {forcePrependBaseUrl: true});
+  const iconPath = iconMapping[label];  // Get icon path from mapping
+
+  return (
+      <Link
+          className="footer__link-item"
+          {...(href
+              ? {
+                href: prependBaseUrlToHref ? normalizedHref : href,
+              }
+              : {
+                to: toUrl,
+              })}
+          {...props}>
+
+        {iconPath && <img src={iconPath} alt={`${label} Icon`} style={{width: 
'1em', height: '1em', marginRight: '0.5em', verticalAlign: 'middle'}} />}
+
+        {label}
+        {href && !isInternalUrl(href) && <IconExternalLink />}
+      </Link>
+  );
+}
\ No newline at end of file
diff --git a/static/img/social/github.svg b/static/img/social/github.svg
new file mode 100644
index 00000000..7a53c162
--- /dev/null
+++ b/static/img/social/github.svg
@@ -0,0 +1,22 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+
+<svg xmlns="http://www.w3.org/2000/svg"; fill="#ccc" width="24" height="24" 
viewBox="0 0 24 24">
+    <path fill-rule="nonzero" d="M12 0C5.373 0 0 5.373 0 12c0 5.303 3.438 9.8 
8.207 11.386.6.11.819-.26.819-.577 
0-.286-.011-1.232-.017-2.234-3.337.725-4.042-1.415-4.042-1.415-.547-1.386-1.333-1.755-1.333-1.755-1.09-.744.083-.73.083-.73
 1.205.084 1.84 1.237 1.84 1.237 1.07 1.834 2.809 1.304 
3.491.996.11-.773.42-1.304.762-1.602-2.664-.304-5.466-1.333-5.466-5.932 
0-1.31.468-2.38 1.234-3.22-.122-.305-.535-1.526.119-3.177 0 0 1.006-.322 3.3 
1.23.957-.267 1.983-.399 3.003-.403 1.02.004 2.046. [...]
+</svg>
diff --git a/static/img/social/jira.svg b/static/img/social/jira.svg
new file mode 100644
index 00000000..12dd12d8
--- /dev/null
+++ b/static/img/social/jira.svg
@@ -0,0 +1,22 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+
+<svg xmlns="http://www.w3.org/2000/svg"; fill="#ccc" width="134" height="142" 
viewBox="0 0 134 142">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M130.64 63.9289L67 
0.289307L3.36039 63.9289C-0.544924 67.8342 -0.544924 74.1657 3.36039 78.0711L67 
141.711L130.64 78.0711C134.545 74.1657 134.545 67.8342 130.64 63.9289ZM88.2132 
71L67 49.7868L45.7868 71L67 92.2132L88.2132 71Z"/>
+</svg>
diff --git a/static/img/social/mail.svg b/static/img/social/mail.svg
new file mode 100644
index 00000000..08bb7391
--- /dev/null
+++ b/static/img/social/mail.svg
@@ -0,0 +1,22 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+
+<svg xmlns="http://www.w3.org/2000/svg"; fill="#ccc" width="16" height="16" 
viewBox="0 0 16 16">
+  <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 
3.555ZM0 4.697v7.104l5.803-3.558zM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 
0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 
11.801V4.697l-5.803 3.546Z"/>
+</svg>
diff --git a/static/img/social/slack.svg b/static/img/social/slack.svg
new file mode 100644
index 00000000..4f5873e5
--- /dev/null
+++ b/static/img/social/slack.svg
@@ -0,0 +1,22 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+
+<svg xmlns="http://www.w3.org/2000/svg"; fill="#ccc" width="16" height="16" 
viewBox="0 0 16 16">
+  <path d="M3.362 10.11c0 .926-.756 1.681-1.681 1.681S0 11.036 0 10.111C0 
9.186.756 8.43 1.68 8.43h1.682zm.846 0c0-.924.756-1.68 1.681-1.68s1.681.756 
1.681 1.68v4.21c0 .924-.756 1.68-1.68 1.68a1.685 1.685 0 0 1-1.682-1.68zM5.89 
3.362c-.926 0-1.682-.756-1.682-1.681S4.964 0 5.89 0s1.68.756 1.68 1.68v1.682zm0 
.846c.924 0 1.68.756 1.68 1.681S6.814 7.57 5.89 7.57H1.68C.757 7.57 0 6.814 0 
5.89c0-.926.756-1.682 1.68-1.682zm6.749 1.682c0-.926.755-1.682 1.68-1.682.925 0 
1.681.756 1.681 1.681s-.75 [...]
+</svg>
diff --git a/static/img/social/twitter-x.svg b/static/img/social/twitter-x.svg
new file mode 100644
index 00000000..ebbed6db
--- /dev/null
+++ b/static/img/social/twitter-x.svg
@@ -0,0 +1,22 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+
+<svg xmlns="http://www.w3.org/2000/svg"; fill="#ccc" width="16" height="16" 
viewBox="0 0 16 16">
+  <path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 
5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 
2.145H2.865l8.875 11.633Z"/>
+</svg>
diff --git a/static/img/social/youtube.svg b/static/img/social/youtube.svg
new file mode 100644
index 00000000..91fa8ccf
--- /dev/null
+++ b/static/img/social/youtube.svg
@@ -0,0 +1,22 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+
+<svg xmlns="http://www.w3.org/2000/svg"; fill="#ccc" width="16" height="16" 
viewBox="0 0 16 16">
+  <path d="M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 
1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 
1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 
1.14-.235 1.558a2.007 2.007 0 0 1-1.415 
1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 
0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.007
 2.007 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A 
[...]
+</svg>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to