You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@baremaps.apache.org by le...@apache.org on 2023/06/27 11:40:22 UTC

[incubator-baremaps-site] branch feature/community-tab created (now 1cbe13d)

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

leonardcs pushed a change to branch feature/community-tab
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps-site.git


      at 1cbe13d  Update homepage title

This branch includes the following new commits:

     new ddf0f9a  Add button component
     new 55163b6  Add mailing list component
     new 882fd0a  Add maling list page
     new 1cbe13d  Update homepage title

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-baremaps-site] 04/04: Update homepage title

Posted by le...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

leonardcs pushed a commit to branch feature/community-tab
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps-site.git

commit 1cbe13d6ef180509e0ce420d0c0799fa2b0a8129
Author: Leonard <le...@gmail.com>
AuthorDate: Tue Jun 27 13:40:13 2023 +0200

    Update homepage title
---
 src/pages/index.mdx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pages/index.mdx b/src/pages/index.mdx
index e4b0f2b..542b2aa 100644
--- a/src/pages/index.mdx
+++ b/src/pages/index.mdx
@@ -1,5 +1,5 @@
 ---
-title: Mapping Infrastructure Made Easy
+title: Apache Baremaps
 ---
 
 import Link from 'next/link';


[incubator-baremaps-site] 03/04: Add maling list page

Posted by le...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

leonardcs pushed a commit to branch feature/community-tab
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps-site.git

commit 882fd0ab37e0194dbebc296930ad3125eca58312
Author: Leonard <le...@gmail.com>
AuthorDate: Tue Jun 27 13:40:00 2023 +0200

    Add maling list page
---
 src/pages/_meta.json                  | 15 +++++++++++++++
 src/pages/community/mailing-lists.mdx | 19 +++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/src/pages/_meta.json b/src/pages/_meta.json
index c6b3571..201da86 100644
--- a/src/pages/_meta.json
+++ b/src/pages/_meta.json
@@ -15,6 +15,21 @@
     "title": "Documentation",
     "type": "page"
   },
+  "community": {
+    "title": "Community",
+    "type": "menu",
+    "items": {
+      "mailing-lists": {
+        "title": "Mailing Lists",
+        "href": "/community/mailing-lists"
+      },
+      "contact": {
+        "title": "Contribute to Baremaps",
+        "href": "https://github.com/apache/incubator-baremaps/blob/main/CONTRIBUTING.md",
+        "newWindow": true
+      }
+    }
+  },
   "experiments": {
     "title": "Experiments",
     "type": "page",
diff --git a/src/pages/community/mailing-lists.mdx b/src/pages/community/mailing-lists.mdx
new file mode 100644
index 0000000..6e29df2
--- /dev/null
+++ b/src/pages/community/mailing-lists.mdx
@@ -0,0 +1,19 @@
+---
+title: Mailing Lists
+layout: default
+sidebar: hide
+---
+
+import { MailingListButtons } from '@/components/buttons/MailingListButtons';
+
+# Mailing Lists
+
+The following mailing lists are available for users of Apache Baremaps:
+
+- user@baremaps.apache.org is for questions, help and general discussion about using Baremaps.
+
+  <MailingListButtons list="user" />
+
+- dev@baremaps.apache.org is for people who want to contribute code to Baremaps.
+
+  <MailingListButtons list="dev" />


[incubator-baremaps-site] 01/04: Add button component

Posted by le...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

leonardcs pushed a commit to branch feature/community-tab
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps-site.git

commit ddf0f9a8509953cb9c11024925f0bb5a9890c4fd
Author: Leonard <le...@gmail.com>
AuthorDate: Tue Jun 27 13:39:35 2023 +0200

    Add button component
---
 src/components/buttons/Button/index.tsx        | 23 +++++++++++++++++++++++
 src/components/buttons/Button/style.module.css | 20 ++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/src/components/buttons/Button/index.tsx b/src/components/buttons/Button/index.tsx
new file mode 100644
index 0000000..efc9e6e
--- /dev/null
+++ b/src/components/buttons/Button/index.tsx
@@ -0,0 +1,23 @@
+import styles from './style.module.css';
+
+interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
+  children: React.ReactNode;
+  size?: 'sm' | 'md';
+}
+
+export const Button: React.FC<ButtonProps> = props => {
+  const classes = [
+    'nx-rounded',
+    'nx-transition-colors',
+    styles.btn,
+    props.className
+  ];
+  if (props.size === 'sm') {
+    classes.push(styles['btn-sm']);
+  }
+  return (
+    <button {...props} className={classes.join(' ')}>
+      {props.children}
+    </button>
+  );
+};
diff --git a/src/components/buttons/Button/style.module.css b/src/components/buttons/Button/style.module.css
new file mode 100644
index 0000000..bdaf05d
--- /dev/null
+++ b/src/components/buttons/Button/style.module.css
@@ -0,0 +1,20 @@
+.btn {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  gap: 0.5rem;
+  padding: 0.5rem 1rem;
+  background-color: hsl(var(--nextra-primary-hue) 100% 45%);
+  color: white;
+  font-weight: bold;
+  font-size: smaller;
+}
+
+.btn:hover {
+  background-color: hsl(var(--nextra-primary-hue) 100% 55%);
+}
+
+.btn.btn-sm {
+  padding: 0.3rem 0.6rem;
+  font-size: smaller;
+}


[incubator-baremaps-site] 02/04: Add mailing list component

Posted by le...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

leonardcs pushed a commit to branch feature/community-tab
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps-site.git

commit 55163b6597f5a9bb245faf1e537943c41058c9bf
Author: Leonard <le...@gmail.com>
AuthorDate: Tue Jun 27 13:39:48 2023 +0200

    Add mailing list component
---
 .../buttons/MailingListButtons/index.tsx           | 37 ++++++++++++++++++++++
 .../buttons/MailingListButtons/style.module.css    |  6 ++++
 2 files changed, 43 insertions(+)

diff --git a/src/components/buttons/MailingListButtons/index.tsx b/src/components/buttons/MailingListButtons/index.tsx
new file mode 100644
index 0000000..45d3a03
--- /dev/null
+++ b/src/components/buttons/MailingListButtons/index.tsx
@@ -0,0 +1,37 @@
+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
+import { faArrowUpRightFromSquare } from '@fortawesome/free-solid-svg-icons';
+
+import { Button } from '../Button';
+import styles from './style.module.css';
+
+interface MailingListButtonsProps {
+  list: string;
+}
+
+export const MailingListButtons: React.FC<MailingListButtonsProps> = ({
+  list
+}) => {
+  return (
+    <div className={styles.container}>
+      <a
+        href={`mailto:${list}-subscribe@baremaps.apache.org?subject=(send%20this%20email%20to%20subscribe)`}
+      >
+        <Button size="sm">Subscribe</Button>
+      </a>
+      <a
+        href={`mailto:${list}-unsubscribe@baremaps.apache.org?subject=(send%20this%20email%20to%20unsubscribe)`}
+      >
+        <Button size="sm">Unsubscribe</Button>
+      </a>
+      <a
+        href={`https://lists.apache.org/list.html?${list}@baremaps.apache.org`}
+        target="_blank"
+      >
+        <Button size="sm">
+          <span>Archive</span>
+          <FontAwesomeIcon icon={faArrowUpRightFromSquare}></FontAwesomeIcon>
+        </Button>
+      </a>
+    </div>
+  );
+};
diff --git a/src/components/buttons/MailingListButtons/style.module.css b/src/components/buttons/MailingListButtons/style.module.css
new file mode 100644
index 0000000..040ca32
--- /dev/null
+++ b/src/components/buttons/MailingListButtons/style.module.css
@@ -0,0 +1,6 @@
+.container {
+  display: inline-flex;
+  align-items: center;
+  gap: 0.5rem;
+  padding: 0.5rem 0;
+}