mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-04-23 03:01:03 -04:00
@@ -1,9 +1,12 @@
|
||||
import { LABELS } from "@/app/labels"
|
||||
import { blogArticleCardTagCardVariants } from "@/components/blog/blog-article-card"
|
||||
import { BlogContent } from "@/components/blog/blog-content"
|
||||
import { Icons } from "@/components/icons"
|
||||
import { AppContent } from "@/components/ui/app-content"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { Label } from "@/components/ui/label"
|
||||
import { Markdown } from "@/components/ui/markdown"
|
||||
import { siteConfig } from "@/config/site"
|
||||
import { getArticles, getArticleById } from "@/lib/content"
|
||||
import { cn, getBackgroundImage } from "@/lib/utils"
|
||||
import { Metadata } from "next"
|
||||
@@ -67,7 +70,22 @@ export default function BlogArticle({ params }: any) {
|
||||
post?.tldr?.toLowerCase()?.includes("newsletter")
|
||||
|
||||
return (
|
||||
<div className="flex flex-col">
|
||||
<div className="flex flex-col relative">
|
||||
<Link
|
||||
href={siteConfig.editBlogPage(slug)}
|
||||
target="_blank"
|
||||
className="fixed lg:bottom-10 lg:left-10 z-10"
|
||||
>
|
||||
<Button className="w-full md:w-auto" size="sm">
|
||||
<div className="flex items-center gap-1">
|
||||
<Icons.gitHub size={18} />
|
||||
<span className="pl-2 text-left text-sm font-medium uppercase">
|
||||
{LABELS.COMMON.EDIT_THIS_PAGE}
|
||||
</span>
|
||||
<Icons.externalUrl size={22} />
|
||||
</div>
|
||||
</Button>
|
||||
</Link>
|
||||
<div className="flex items-start justify-center z-0 relative">
|
||||
<div
|
||||
className={cn(
|
||||
|
||||
@@ -87,7 +87,22 @@ export const ProjectContent = ({ id }: { id: string }) => {
|
||||
}
|
||||
|
||||
return (
|
||||
<section className="bg-project-page-gradient dark:bg-transparent-gradient">
|
||||
<section className="bg-project-page-gradient dark:bg-transparent-gradient relative">
|
||||
<Link
|
||||
href={siteConfig.editProjectPage(project.id)}
|
||||
target="_blank"
|
||||
className="fixed lg:bottom-10 lg:left-10 z-10"
|
||||
>
|
||||
<Button className="w-full md:w-auto" size="sm">
|
||||
<div className="flex items-center gap-1">
|
||||
<Icons.gitHub size={18} />
|
||||
<span className="pl-2 text-left text-sm font-medium uppercase">
|
||||
{LABELS.COMMON.EDIT_THIS_PAGE}
|
||||
</span>
|
||||
<Icons.externalUrl size={22} />
|
||||
</div>
|
||||
</Button>
|
||||
</Link>
|
||||
<div className="flex flex-col">
|
||||
<Divider.Section className="flex flex-col items-center">
|
||||
<AppContent className="flex flex-col gap-12 py-16">
|
||||
|
||||
@@ -111,6 +111,9 @@ export const metadata: Metadata = {
|
||||
],
|
||||
},
|
||||
},
|
||||
icons: {
|
||||
icon: "/favicon.svg",
|
||||
},
|
||||
}
|
||||
|
||||
interface RootLayoutProps {
|
||||
|
||||
@@ -27,7 +27,9 @@ export const siteConfig = {
|
||||
"https://docs.google.com/forms/d/e/1FAIpQLSendzYY0z_z7fZ37g3jmydvzS9I7OWKbY2JrqAnyNqeaBHvMQ/viewform",
|
||||
},
|
||||
addGithubResource:
|
||||
"https://github.com/privacy-scaling-explorations/website-v2/blob/main/app/%5Blang%5D/content/resources.md",
|
||||
"https://github.com/privacy-scaling-explorations/website-v2/blob/main/content/resources.md",
|
||||
editProjectPage: (id: string) =>
|
||||
`https://github.com/privacy-scaling-explorations/pse.dev/blob/main/data/projects/${id}.ts`,
|
||||
`https://github.com/privacy-scaling-explorations/website-v2/blob/main/content/projects/${id}.md`,
|
||||
editBlogPage: (slug: string) =>
|
||||
`https://github.com/privacy-scaling-explorations/website-v2/blob/main/content/articles/${slug}.md`,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user