Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export const SLACK_LINK = "https://s.apache.org/dolphinscheduler-slack#general";
export const TWITTER_LINK = "https://twitter.com/dolphinschedule";
export const GITHUB_LINK = "https://github.com/apache/dolphinscheduler";
export const EMAIL = "users@dolphinscheduler.apache.org";
export const YOUTUBE_LINK = "https://youtube.com/@apachedolphinscheduler?si=2S-G47umYlo94yAI";
149 changes: 25 additions & 124 deletions src/views/Community/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,74 +4,22 @@ import {
SlackOutlined,
TwitterOutlined,
MailFilled,
YoutubeOutlined,
} from "@ant-design/icons";
import { ArrowRightOutlined } from "@ant-design/icons";
import { SLACK_LINK, GITHUB_LINK, TWITTER_LINK, EMAIL } from "../../config";
import { SLACK_LINK, GITHUB_LINK, TWITTER_LINK, EMAIL, YOUTUBE_LINK } from "../../config";
import { useTranslation } from "../../hooks";
import "./index.scss";

const subs = [
{
label: "report_security_issue",
key: "security",
},
{
label: "code_of_conduct",
key: "code-conduct",
},
{
label: "review_issue_or_pull_requests",
key: "review",
},
{
label: "e2e_test_contribution_guide",
key: "e2e-guide",
},
{
label: "submit_code",
key: "submit-code",
},
{
label: "license_notice",
key: "DS-License",
},
{
label: "documentation_notice",
key: "document",
},
{
label: "issue_notice",
key: "issue",
},
{
label: "pull_request_notice",
key: "pull-request",
},
{
label: "commit_message_notice",
key: "commit-message",
},
{
label: "micro_benchMark_notice",
key: "microbench",
},
{
label: "unit_test_writing",
key: "unit-test",
},
];
// ... (keep the subs array as is)

const Community = () => {
const { t } = useTranslation();

return (
<section className="community">
<div className="community-top">
<div className="community-title">
<div>DolphinScheduler</div>
<div className="gradient-text">Community</div>
</div>
<div className="community-top-bg"></div>
{/* ... (keep this section as is) */}
</div>
<div className="community-content">
<div className="community-contacts">
Expand Down Expand Up @@ -128,6 +76,24 @@ const Community = () => {
{t("follow_twitter")}
</Button>
</div>
{/* Add YouTube Section */}
<div className="community-contact">
<div className="community-contact-icon">
<YoutubeOutlined />
</div>
<div className="community-contact-desc">{t("youtube_tips")}</div>
<Button
type="primary"
shape="round"
size="large"
ghost
onClick={() => {
window.open(YOUTUBE_LINK, "_blank");
}}
>
{t("subscribe_youtube")}
</Button>
</div>
<div className="community-contact">
<div className="community-contact-icon">
<MailFilled />
Expand All @@ -146,76 +112,11 @@ const Community = () => {
</div>
</div>
</div>
<div className="community-contribute">
<div className="community-contribute-title">
{t("contribute_to_dolphinScheduler")}
</div>
<div className="community-contribute-desc">
{t("contribute_tips")}
<Button
type="link"
href="https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/contribute.md"
target="_blank"
>
{t("participate_in_contributing")}
<ArrowRightOutlined />
</Button>
</div>
<div className="community-contribute-list">
{subs.map((sub) => (
<div className="community-contribute-item" key={sub.key}>
<div className="community-contribute-item-title">
{t(sub.label)}
</div>
<Button
type="link"
href={`https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/${sub.key}.md`}
target="_blank"
>
{t("read_guides")}
<ArrowRightOutlined />
</Button>
</div>
))}
</div>
</div>
</div>
<div className="community-committer">
<div className="community-committer-title">
{t("becoming_a_committer")}
</div>
<div className="community-committer-desc">
<p className="community-committer-p">
{t("committer_p")}
<Button
type="link"
href={
"https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/become-a-committer.md"
}
target="_blank"
>
{t("read_guides")}
</Button>
</p>
<p className="community-committer-p">
{t("committer_process")}{" "}
<Button
type="link"
href={"https://community.apache.org/newcommitter.html"}
target="_blank"
>
{t("read_community_process")}
</Button>
</p>
<ul className="community-committer-list">
<li className="community-committer-item">{t("commiter_tips1")}</li>
<li className="community-committer-item">{t("commiter_tips2")}</li>
<li className="community-committer-item">{t("commiter_tips3")}</li>
</ul>
</div>

{/* ... (keep the rest of the code as is) */}
</div>
</section>
);
};

export default Community;
export default Community;
Loading