Updates
This commit is contained in:
+170
@@ -76,3 +76,173 @@ body {
|
||||
color: rgb(243 244 246);
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.legal-prose {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.125rem;
|
||||
font-size: 1.0625rem;
|
||||
line-height: 1.75;
|
||||
color: rgb(75 85 99);
|
||||
}
|
||||
|
||||
.dark .legal-prose {
|
||||
color: rgb(209 213 219);
|
||||
}
|
||||
|
||||
.legal-prose > h2 {
|
||||
margin-top: 1.25rem;
|
||||
margin-bottom: 0.25rem;
|
||||
padding-bottom: 0.625rem;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.025em;
|
||||
color: rgb(17 24 39);
|
||||
border-bottom: 1px solid rgb(229 231 235);
|
||||
}
|
||||
|
||||
.legal-prose > h2:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.legal-prose > h2 + p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.dark .legal-prose > h2 {
|
||||
color: rgb(255 255 255);
|
||||
border-bottom-color: rgb(55 65 81);
|
||||
}
|
||||
|
||||
.legal-prose > h3 {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
color: rgb(31 41 55);
|
||||
}
|
||||
|
||||
.dark .legal-prose > h3 {
|
||||
color: rgb(243 244 246);
|
||||
}
|
||||
|
||||
.legal-prose p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.legal-prose a {
|
||||
font-weight: 500;
|
||||
color: rgb(37 99 235);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.legal-prose a:hover {
|
||||
color: rgb(29 78 216);
|
||||
}
|
||||
|
||||
.dark .legal-prose a {
|
||||
color: rgb(96 165 250);
|
||||
}
|
||||
|
||||
.dark .legal-prose a:hover {
|
||||
color: rgb(147 197 253);
|
||||
}
|
||||
|
||||
.legal-prose strong {
|
||||
font-weight: 600;
|
||||
color: rgb(31 41 55);
|
||||
}
|
||||
|
||||
.dark .legal-prose strong {
|
||||
color: rgb(243 244 246);
|
||||
}
|
||||
|
||||
.legal-prose ul,
|
||||
.legal-prose ol {
|
||||
margin-top: 0.75rem;
|
||||
margin-bottom: 0;
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.legal-prose ul > li,
|
||||
.legal-prose ol > li {
|
||||
position: relative;
|
||||
padding-left: 1.75rem;
|
||||
margin-top: 0.625rem;
|
||||
}
|
||||
|
||||
.legal-prose ul > li::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0.5rem;
|
||||
top: 0.65em;
|
||||
width: 0.375rem;
|
||||
height: 0.375rem;
|
||||
border-radius: 9999px;
|
||||
background-color: rgb(59 130 246);
|
||||
}
|
||||
|
||||
.dark .legal-prose ul > li::before {
|
||||
background-color: rgb(96 165 250);
|
||||
}
|
||||
|
||||
.legal-prose ol {
|
||||
counter-reset: legal-ol;
|
||||
}
|
||||
|
||||
.legal-prose ol > li {
|
||||
counter-increment: legal-ol;
|
||||
}
|
||||
|
||||
.legal-prose ol > li::before {
|
||||
content: counter(legal-ol) '.';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
font-weight: 600;
|
||||
font-size: 0.875rem;
|
||||
color: rgb(37 99 235);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.dark .legal-prose ol > li::before {
|
||||
color: rgb(96 165 250);
|
||||
}
|
||||
|
||||
.legal-prose li > ul,
|
||||
.legal-prose li > ol {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.legal-prose hr {
|
||||
margin-top: 2.5rem;
|
||||
margin-bottom: 2.5rem;
|
||||
border: 0;
|
||||
border-top: 1px solid rgb(229 231 235);
|
||||
}
|
||||
|
||||
.dark .legal-prose hr {
|
||||
border-top-color: rgb(55 65 81);
|
||||
}
|
||||
|
||||
.legal-prose blockquote {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 0;
|
||||
padding: 1rem 1.25rem;
|
||||
border-left: 4px solid rgb(59 130 246);
|
||||
border-radius: 0 0.5rem 0.5rem 0;
|
||||
background-color: rgb(239 246 255);
|
||||
color: rgb(30 58 138);
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
|
||||
.dark .legal-prose blockquote {
|
||||
border-left-color: rgb(96 165 250);
|
||||
background-color: rgb(30 58 138 / 0.25);
|
||||
color: rgb(191 219 254);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ export default function DisclaimerPage() {
|
||||
<LegalDocumentLayout
|
||||
title="Disclaimer"
|
||||
description="Important limitations regarding P2NS and peer-to-peer networks."
|
||||
showNotice
|
||||
seeAlso={[
|
||||
{ href: '/legal/eula', label: 'End User License Agreement' },
|
||||
{ href: '/legal/acceptable-use', label: 'Acceptable Use Policy' },
|
||||
|
||||
+30
-20
@@ -1,6 +1,7 @@
|
||||
import type { Metadata } from 'next';
|
||||
import Link from 'next/link';
|
||||
import { legalDocuments, LEGAL_LAST_UPDATED, LEGAL_NOTICE } from '@/lib/legal/documents';
|
||||
import { ArrowRight, Scale } from 'lucide-react';
|
||||
import { legalDocuments, LEGAL_LAST_UPDATED } from '@/lib/legal/documents';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Legal - P2NS',
|
||||
@@ -27,44 +28,53 @@ export const metadata: Metadata = {
|
||||
|
||||
export default function LegalHubPage() {
|
||||
return (
|
||||
<div className="min-h-screen bg-[#111829]">
|
||||
<section className="py-20 bg-gradient-to-b from-blue-50 to-white dark:from-gray-900 dark:to-gray-800">
|
||||
<div className="min-h-screen">
|
||||
<section className="py-16 sm:py-20 bg-gradient-to-b from-blue-50 via-white to-white dark:from-gray-900 dark:via-gray-900 dark:to-gray-900 border-b border-gray-200/80 dark:border-gray-800">
|
||||
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<h1 className="text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white mb-6">
|
||||
<div className="inline-flex items-center gap-2 rounded-full border border-blue-200 dark:border-blue-800 bg-blue-50 dark:bg-blue-950/50 px-3 py-1 text-sm font-medium text-blue-800 dark:text-blue-200 mb-6">
|
||||
<Scale className="h-4 w-4" aria-hidden />
|
||||
Legal
|
||||
</div>
|
||||
<h1 className="text-4xl sm:text-5xl font-bold tracking-tight text-gray-900 dark:text-white mb-4 text-balance">
|
||||
Policies & agreements
|
||||
</h1>
|
||||
<p className="text-xl text-gray-600 dark:text-gray-300 mb-4">
|
||||
Policies and agreements for the P2NS open-source project and this website.
|
||||
<p className="text-lg sm:text-xl text-gray-600 dark:text-gray-300 leading-relaxed max-w-2xl">
|
||||
Documents for the P2NS open-source project and the p2ns.space website. Choose a topic below.
|
||||
</p>
|
||||
<p className="text-sm text-gray-500 dark:text-gray-400">
|
||||
Last updated: {LEGAL_LAST_UPDATED}
|
||||
<p className="mt-6 text-sm text-gray-500 dark:text-gray-400">
|
||||
Last updated {LEGAL_LAST_UPDATED}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="py-20 bg-white dark:bg-gray-900">
|
||||
<section className="py-12 sm:py-20 bg-gray-50/80 dark:bg-gray-950">
|
||||
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="mb-10 rounded-lg border border-amber-200 dark:border-amber-800 bg-amber-50 dark:bg-amber-900/30 px-4 py-3 text-sm text-amber-900 dark:text-amber-100 max-w-4xl">
|
||||
{LEGAL_NOTICE}
|
||||
</div>
|
||||
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-5 sm:gap-6">
|
||||
{legalDocuments.map((doc) => {
|
||||
const Icon = doc.icon;
|
||||
return (
|
||||
<Link
|
||||
key={doc.href}
|
||||
href={doc.href}
|
||||
className="group bg-white dark:bg-gray-800 p-6 rounded-lg border border-gray-200 dark:border-gray-700 hover:border-blue-500 dark:hover:border-blue-500 transition-all hover:shadow-lg"
|
||||
className="group flex flex-col rounded-2xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 p-6 shadow-sm transition-all hover:border-blue-400 dark:hover:border-blue-500 hover:shadow-lg hover:shadow-blue-500/5"
|
||||
>
|
||||
<div className="flex items-center space-x-3 mb-4">
|
||||
<div className="p-2 bg-blue-100 dark:bg-blue-900 rounded-lg group-hover:bg-blue-200 dark:group-hover:bg-blue-800 transition-colors">
|
||||
<div className="flex items-start gap-4 mb-4">
|
||||
<div className="shrink-0 p-2.5 rounded-xl bg-gradient-to-br from-blue-100 to-indigo-100 dark:from-blue-900/60 dark:to-indigo-900/40 group-hover:from-blue-200 group-hover:to-indigo-200 dark:group-hover:from-blue-800/80 dark:group-hover:to-indigo-800/60 transition-colors">
|
||||
<Icon className="h-6 w-6 text-blue-600 dark:text-blue-400" />
|
||||
</div>
|
||||
<h2 className="text-xl font-semibold text-gray-900 dark:text-white">
|
||||
{doc.title}
|
||||
</h2>
|
||||
<div className="min-w-0 flex-1">
|
||||
<h2 className="text-lg font-semibold text-gray-900 dark:text-white group-hover:text-blue-700 dark:group-hover:text-blue-300 transition-colors leading-snug">
|
||||
{doc.title}
|
||||
</h2>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-gray-600 dark:text-gray-400">{doc.description}</p>
|
||||
<p className="text-sm leading-relaxed text-gray-600 dark:text-gray-400 flex-1">
|
||||
{doc.description}
|
||||
</p>
|
||||
<span className="mt-5 inline-flex items-center gap-1 text-sm font-medium text-blue-600 dark:text-blue-400">
|
||||
Read document
|
||||
<ArrowRight className="h-4 w-4 transition-transform group-hover:translate-x-0.5" />
|
||||
</span>
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user