Skip to content

Commit

Permalink
Merge pull request #1670 from ten-protocol/jennifer/privacy-policy
Browse files Browse the repository at this point in the history
add privacy policy
  • Loading branch information
Jennievon authored Nov 29, 2023
2 parents 1897b5b + 62bea4f commit f7f0956
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 25 deletions.
1 change: 0 additions & 1 deletion tools/obscuroscan_v3/frontend/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export function Custom404Error({
isFullWidth,
message,
showMessage = true,
isModal,
redirectLink,
children,
}: ErrorType) {
Expand Down
5 changes: 4 additions & 1 deletion tools/obscuroscan_v3/frontend/pages/_error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export function CustomError({
...props
}: ErrorType) {
return (
<section className="min-h-screen flex flex-col justify-center items-center">
<section
className="h-full flex flex-col justify-center items-center"
{...props}
>
<main className={isFullWidth ? "max-w-full" : ""}>
<div className="text-center">
<h1 className="text-4xl font-extrabold mb-6">{heading}</h1>
Expand Down
53 changes: 30 additions & 23 deletions tools/obscuroscan_v3/frontend/pages/docs/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useToast } from "@/src/components/ui/use-toast";
import { siteMetadata } from "@/src/lib/siteMetadata";
import { useRouter } from "next/router";
import React from "react";
import Custom404Error from "../404";

type Document = {
title: string;
Expand Down Expand Up @@ -64,29 +65,35 @@ const Document = () => {
<Layout>
<div className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
{!loading ? (
<>
<div className="mb-8 text-center">
<h1 className="text-4xl font-extrabold mb-6">{document.title}</h1>
<p className="text-sm text-muted-foreground">
{document.subHeading}
</p>
</div>
<div className="prose prose-lg prose-primary">
{document.content &&
document.content.map((section, index) => (
<div key={index} className="mb-8">
<h2 className="mb-2">{section.heading}</h2>
{section.content &&
section.content.map((paragraph, index) => (
<div
key={index}
dangerouslySetInnerHTML={{ __html: paragraph }}
></div>
))}
</div>
))}
</div>
</>
!document.title ? (
<Custom404Error customPageTitle="Document" />
) : (
<>
<div className="mb-8 text-center">
<h1 className="text-4xl font-extrabold mb-6">
{document.title}
</h1>
<p className="text-sm text-muted-foreground">
{document.subHeading}
</p>
</div>
<div className="prose prose-lg prose-primary">
{document.content &&
document.content.map((section, index) => (
<div key={index} className="mb-8">
<h2 className="mb-2">{section.heading}</h2>
{section.content &&
section.content.map((paragraph, index) => (
<div
key={index}
dangerouslySetInnerHTML={{ __html: paragraph }}
></div>
))}
</div>
))}
</div>
</>
)
) : (
<Spinner />
)}
Expand Down
Loading

0 comments on commit f7f0956

Please sign in to comment.