This is an automated email from the ASF dual-hosted git repository.
urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new f9853ec fix: component rename
f9853ec is described below
commit f9853eceac9ca907b618fc87638fe31dc7352235
Author: LiLi <[email protected]>
AuthorDate: Mon Feb 21 12:50:34 2022 +0800
fix: component rename
Signed-off-by: LiLi <[email protected]>
---
site2/website-next/src/components/PillButton.js | 12 ++++++++++++
site2/website-next/src/components/PromoCallout.js | 14 ++++++++++++++
site2/website-next/src/pages/community.js | 2 +-
site2/website-next/src/pages/index.js | 2 +-
4 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/site2/website-next/src/components/PillButton.js
b/site2/website-next/src/components/PillButton.js
new file mode 100644
index 0000000..6fb471f
--- /dev/null
+++ b/site2/website-next/src/components/PillButton.js
@@ -0,0 +1,12 @@
+import React from "react";
+import { docUrl } from "../utils/index";
+
+
+const PillButton = (props) => {
+ return(
+ <a className={`pill-btn ${props.variant}`} href={props.href}
target={props.target}>
+ {props.children}
+ </a>
+ )
+}
+export default PillButton;
\ No newline at end of file
diff --git a/site2/website-next/src/components/PromoCallout.js
b/site2/website-next/src/components/PromoCallout.js
new file mode 100644
index 0000000..4d0a5cf
--- /dev/null
+++ b/site2/website-next/src/components/PromoCallout.js
@@ -0,0 +1,14 @@
+import React from "react";
+import { docUrl } from "../utils/index";
+
+
+const PromoCallout = (props) => {
+ return(
+ <div className="promo-callout py-24 px-4 flex content-center">
+ <div className="border-solid border-2 border-gray-800 w-auto mx-auto
max-w-screen-sm py-2 px-8 rounded-full text--center">
+ <strong>{props.text} <a href={props.url}>{props.linkText}</a></strong>
+ </div>
+ </div>
+ )
+}
+export default PromoCallout;
\ No newline at end of file
diff --git a/site2/website-next/src/pages/community.js
b/site2/website-next/src/pages/community.js
index ebfb1b3..e3f5b8e 100644
--- a/site2/website-next/src/pages/community.js
+++ b/site2/website-next/src/pages/community.js
@@ -6,7 +6,7 @@ import useDocusaurusContext from
"@docusaurus/useDocusaurusContext";
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from "./index.module.css";
import CommunityList from "../components/CommunityList";
-import PromoCallout from "../components/promoCallout";
+import PromoCallout from "../components/PromoCallout";
import PillButton from "../components/PillButton";
import GroupsIcon from '@mui/icons-material/Groups';
import WavySeparatorFive from '@site/static/img/separator-5.svg';
diff --git a/site2/website-next/src/pages/index.js
b/site2/website-next/src/pages/index.js
index e3a8e23..093ec6c 100644
--- a/site2/website-next/src/pages/index.js
+++ b/site2/website-next/src/pages/index.js
@@ -7,7 +7,7 @@ import styles from "./index.module.css";
import HomepageFeatures from "../components/HomepageFeatures";
import HomeQuotes from "../components/HomeQuotes";
import SubHeroBlock from "../components/SubHeroBlock";
-import PromoCallout from "../components/promoCallout";
+import PromoCallout from "../components/PromoCallout";
import PillButton from "../components/PillButton";
import GitHubIcon from '@mui/icons-material/GitHub';
import { docUrl, githubUrl } from "../utils/index";