-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent banned users from creating new posts and comments
- Loading branch information
1 parent
5d362ae
commit a040f87
Showing
9 changed files
with
134 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
import { | ||
Heading1, | ||
Paragraph, | ||
Heading2, | ||
TextLink, | ||
} from "@/lib/components/ui/typography"; | ||
import { Metadata } from "next"; | ||
import { ReactNode } from "react"; | ||
|
||
|
@@ -18,55 +24,33 @@ export default function CommunityGuidelinesPage() { | |
Frontpage is a decentralised and federated link aggregator that's | ||
built on the same protocol as Bluesky. | ||
</Paragraph> | ||
|
||
<Heading2>Community Guidelines</Heading2> | ||
|
||
<Paragraph> | ||
We want Frontpage to be a safe and welcoming place for everyone. And so | ||
we ask that you follow these guidelines: | ||
</Paragraph> | ||
|
||
<ol className="my-6 ml-6 list-decimal [&>li]:mt-2"> | ||
<li> | ||
Don't post hate speech, harassment, or other forms of abuse. | ||
</li> | ||
<li>Don't post content that is illegal or harmful.</li> | ||
<li>Don't post adult content*.</li> | ||
</ol> | ||
|
||
<small className="text-sm font-medium leading-none"> | ||
* this is a temporary guideline while we build labeling and content | ||
warning features. | ||
</small> | ||
|
||
<Paragraph> | ||
Frontpage is moderated by it's core developers, but we also rely on | ||
reports from users to help us keep the community safe. Please report any | ||
content that violates our guidelines. | ||
</Paragraph> | ||
<Heading2 id="contact">Contact</Heading2> | ||
<Paragraph> | ||
Email us at{" "} | ||
<TextLink href="mailto:[email protected]">[email protected]</TextLink> | ||
. | ||
</Paragraph> | ||
</> | ||
); | ||
} | ||
|
||
function Heading1({ children }: { children: ReactNode }) { | ||
return ( | ||
<h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl"> | ||
{children} | ||
</h1> | ||
); | ||
} | ||
|
||
function Heading2({ children, id }: { children: ReactNode; id?: string }) { | ||
return ( | ||
<h2 | ||
id={id} | ||
className="mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0" | ||
> | ||
{children} | ||
</h2> | ||
); | ||
} | ||
|
||
function Paragraph({ children }: { children: ReactNode }) { | ||
return <p className="leading-7 [&:not(:first-child)]:mt-6">{children}</p>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import Link, { LinkProps } from "next/link"; | ||
import { ReactNode } from "react"; | ||
|
||
export function Heading1({ children }: { children: ReactNode }) { | ||
return ( | ||
<h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl"> | ||
{children} | ||
</h1> | ||
); | ||
} | ||
|
||
export function Heading2({ | ||
children, | ||
id, | ||
}: { | ||
children: ReactNode; | ||
id?: string; | ||
}) { | ||
return ( | ||
<h2 | ||
id={id} | ||
className="mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0" | ||
> | ||
{children} | ||
</h2> | ||
); | ||
} | ||
|
||
export function Paragraph({ children }: { children: ReactNode }) { | ||
return <p className="leading-7 [&:not(:first-child)]:mt-6">{children}</p>; | ||
} | ||
|
||
export function TextLink({ | ||
href, | ||
children, | ||
}: { | ||
href: LinkProps["href"]; | ||
children: ReactNode; | ||
}) { | ||
return ( | ||
<Link | ||
href={href} | ||
className="font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-300" | ||
> | ||
{children} | ||
</Link> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters