Skip to content
Merged
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
7 changes: 6 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ const config: Config = {
{ to: "/showcase", label: "Showcase" },
{ to: "/blog", label: "Blog" },
{ to: "/newsletter", label: "Newsletter" },
{ to: "/sponsorship", label: "Sponsorship" }
{ to: "/sponsorship", label: "Sponsorship" },
{ to: "/contact", label: "Contact" }
]
},
{
Expand Down Expand Up @@ -329,6 +330,10 @@ const config: Config = {
{
label: "Brand & Press",
href: "https://github.com/junobuild/brand"
},
{
label: "Contact",
to: "/contact"
}
]
}
Expand Down
35 changes: 35 additions & 0 deletions src/components/Contact/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { useEffect, useState } from "react";
import styles from "./styles.module.scss";

export default function Contact(): JSX.Element {
// Do not prerender to prevent spam
// See 2.6 - https://spencermortensen.com/articles/email-obfuscation/
let [loaded, setLoaded] = useState(false);

useEffect(() => {
setLoaded(true);
}, []);

return (
<>
<h2 className={styles.sub}>Contact</h2>

<p>
Have a question or want to get in touch? Send an email to{" "}
{loaded && <a href="mailto:hi@juno.build">hi@juno.build</a>}
</p>

<p>
For technical questions, bug reports, or implementation help, the&nbsp;
<a
href="https://discord.gg/wHZ57Z2RAG"
rel="noopener nofollower"
target="_blank"
>
Discord
</a>{" "}
community is the best place to get quick answers from other developers.
</p>
</>
);
}
10 changes: 10 additions & 0 deletions src/components/Contact/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@use "../../mixins/fonts";

.sub {
margin: 1rem 0 0.75rem;
@include fonts.h2;
}

.action {
margin: 0 0 8rem;
}
6 changes: 6 additions & 0 deletions src/pages/contact/index.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.container {
margin: 3rem auto 12rem;
max-width: var(--ifm-container-width);
padding: 0 var(--ifm-spacing-horizontal);
width: 100%;
}
18 changes: 18 additions & 0 deletions src/pages/contact/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Contact from "@site/src/components/Contact";
import Head from "@site/src/components/Head";
import Layout from "@theme/Layout";
import styles from "./index.module.scss";

export default function ContactPage(): JSX.Element {
return (
<Layout>
<Head>
<link href="https://juno.build/newsletter" rel="canonical" />
</Head>

<section className={styles.container}>
<Contact />
</section>
</Layout>
);
}