Skip to content

Commit

Permalink
Merge pull request #10330 from Carlosfengv/main
Browse files Browse the repository at this point in the history
docs: Add Blog Contact us module
  • Loading branch information
mergify[bot] authored Mar 3, 2023
2 parents 09468d5 + f334701 commit 26ea23d
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 2 deletions.
2 changes: 2 additions & 0 deletions website/src/components/CustomBlog/BlogPostDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ArrowLeft, ArrowRight, Return, Pencil} from "../Icons";
import Link from "@docusaurus/Link";
import useBaseUrl from "@docusaurus/useBaseUrl";
import AvatarGroup from "../BaseComponents/AvatarGroup";
import Connectwithus from "./Connectwithus";

const BlogPostNav = ({ nextPost, prevPost }) => {
return (
Expand Down Expand Up @@ -103,6 +104,7 @@ const BlogPostDetails = (props) => {
) : (
<></>
)}
<Connectwithus/>
<div className={styles.tagsBox}>
<h5>Tags:</h5>
{metadata.tags.map((tag,index) => {
Expand Down
59 changes: 59 additions & 0 deletions website/src/components/CustomBlog/Connectwithus.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import React from "react";
import styles from "./styles.module.scss";
import clsx from "clsx";
import { Github, Twitter, Slack } from "../Icons";
import Link from "@docusaurus/Link";

const Connectwithus = () => {
const items = [
{
name: "GitHub Discussions",
icon: <Github />,
des: "Feature requests, bug reports, and contributions",
link: "https://github.com/datafuselabs/databend/discussions",
},
{
name: "Follow our twitter",
icon: <Twitter />,
des: "Feature requests, bug reports, and contributions",
link: "https://twitter.com/DatabendLabs",
},
{
name: "Slack Channel",
icon: <Slack />,
des: "Chat with the community",
link: "https://link.databend.rs/join-slack",
},
];

return (
<div className={clsx(styles.Connectwithus)}>
<h2>🎈Connect With Us</h2>
<p>
We'd love to hear from you. Feel free to run the code and see if
Databend works for you. Submit an issue with your problem if you need
help.
</p>
<p>
<a href="https://github.com/datafuselabs/">DatafuseLabs Community</a> is
open to everyone who loves data warehouses. Please join the community
and share your thoughts.
</p>
<ul className={clsx(styles.Connecttype)}>
{items.map((item, index) => {
return (
<li key={index}>
<Link to={item.link}>
{item.icon}
<h6>{item.name}</h6>
<p>{item.des}</p>
</Link>
</li>
);
})}
</ul>
</div>
);
};

export default Connectwithus;
49 changes: 47 additions & 2 deletions website/src/components/CustomBlog/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,52 @@
}
}

.Connectwithus{
padding: 24px;
background-image: linear-gradient(194.35deg, rgba(1, 118, 248, 0.12) 19.68%, rgba(255, 255, 255, 0) 78.88%);
background-color: var(--color-bg-1);
border-radius: 12px;
box-shadow: 0 12px 16px rgb(1 14 41 / 3%), 0 4px 6px rgb(1 14 41 / 3%);
margin: 20px 0;
margin-top: 40px;
.Connecttype{
display: flex;
gap: 12px;
flex-wrap: wrap;
padding: 0;
margin: 0;
li{
margin: 0;
list-style: none;
background-color: var(--color-bg-1);
padding: 12px;
flex: 1;
border-radius: 6px;
transition: all 0.2s;
border: 0.5px solid transparent;
a{
text-decoration: none;
color: var(--color-text-0);
p{
font-size: 14px;
font-weight: 400;
}
}
&:hover{
border-color: var(--color-primary);
transform: translateY(-4px);
cursor: pointer;
box-shadow: 0 12px 16px rgb(1 14 41 / 3%), 0 4px 6px rgb(1 14 41 / 3%);
}
@include media{
flex: none;
width: 100%;
border-color: var(--color-border);
}
}
}
}

.PostNav{
display: flex;
gap: 12px;
Expand Down Expand Up @@ -395,8 +441,7 @@
align-items: center;
flex-wrap: wrap;
gap: 8px;
padding: 32px 0;
padding-bottom: 24px;
padding: 20px 0;

h5,a{
display: flex;
Expand Down

1 comment on commit 26ea23d

@vercel
Copy link

@vercel vercel bot commented on 26ea23d Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

databend – ./

databend-git-main-databend.vercel.app
databend.vercel.app
databend-databend.vercel.app
databend.rs

Please sign in to comment.