Updates
This commit is contained in:
+56
-44
@@ -78,102 +78,111 @@ body {
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.legal-prose {
|
||||
/* Text colors only — scoped to /legal routes via data-legal-page */
|
||||
[data-legal-page] .legal-prose {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.125rem;
|
||||
font-size: 1.0625rem;
|
||||
line-height: 1.75;
|
||||
color: rgb(75 85 99);
|
||||
color: rgb(3 7 18);
|
||||
}
|
||||
|
||||
.dark .legal-prose {
|
||||
color: rgb(209 213 219);
|
||||
[data-legal-page] .dark .legal-prose,
|
||||
.dark [data-legal-page] .legal-prose {
|
||||
color: rgb(243 244 246);
|
||||
}
|
||||
|
||||
.legal-prose > h2 {
|
||||
[data-legal-page] .legal-prose > h2 {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 0.25rem;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.025em;
|
||||
color: rgb(17 24 39);
|
||||
color: rgb(3 7 18);
|
||||
}
|
||||
|
||||
.legal-prose > h2:first-child {
|
||||
[data-legal-page] .legal-prose > h2:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.legal-prose > h2 + p {
|
||||
[data-legal-page] .legal-prose > h2 + p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.dark .legal-prose > h2 {
|
||||
[data-legal-page] .dark .legal-prose > h2,
|
||||
.dark [data-legal-page] .legal-prose > h2 {
|
||||
color: rgb(255 255 255);
|
||||
}
|
||||
|
||||
.legal-prose > h3 {
|
||||
[data-legal-page] .legal-prose > h3 {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 600;
|
||||
color: rgb(17 24 39);
|
||||
color: rgb(3 7 18);
|
||||
}
|
||||
|
||||
.dark .legal-prose > h3 {
|
||||
[data-legal-page] .dark .legal-prose > h3,
|
||||
.dark [data-legal-page] .legal-prose > h3 {
|
||||
color: rgb(255 255 255);
|
||||
}
|
||||
|
||||
.legal-prose p {
|
||||
[data-legal-page] .legal-prose p,
|
||||
[data-legal-page] .legal-prose li {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.legal-prose a {
|
||||
[data-legal-page] .legal-prose a {
|
||||
font-weight: 500;
|
||||
color: rgb(37 99 235);
|
||||
color: rgb(29 78 216);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.legal-prose a:hover {
|
||||
color: rgb(29 78 216);
|
||||
[data-legal-page] .legal-prose a:hover {
|
||||
color: rgb(30 64 175);
|
||||
}
|
||||
|
||||
.dark .legal-prose a {
|
||||
color: rgb(96 165 250);
|
||||
}
|
||||
|
||||
.dark .legal-prose a:hover {
|
||||
[data-legal-page] .dark .legal-prose a,
|
||||
.dark [data-legal-page] .legal-prose a {
|
||||
color: rgb(147 197 253);
|
||||
}
|
||||
|
||||
.legal-prose strong {
|
||||
font-weight: 600;
|
||||
color: rgb(17 24 39);
|
||||
[data-legal-page] .dark .legal-prose a:hover,
|
||||
.dark [data-legal-page] .legal-prose a:hover {
|
||||
color: rgb(191 219 254);
|
||||
}
|
||||
|
||||
.dark .legal-prose strong {
|
||||
[data-legal-page] .legal-prose strong {
|
||||
font-weight: 600;
|
||||
color: rgb(3 7 18);
|
||||
}
|
||||
|
||||
[data-legal-page] .dark .legal-prose strong,
|
||||
.dark [data-legal-page] .legal-prose strong {
|
||||
color: rgb(255 255 255);
|
||||
}
|
||||
|
||||
.legal-prose ul,
|
||||
.legal-prose ol {
|
||||
[data-legal-page] .legal-prose ul,
|
||||
[data-legal-page] .legal-prose ol {
|
||||
margin-top: 0.75rem;
|
||||
margin-bottom: 0;
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.legal-prose ul > li,
|
||||
.legal-prose ol > li {
|
||||
[data-legal-page] .legal-prose ul > li,
|
||||
[data-legal-page] .legal-prose ol > li {
|
||||
position: relative;
|
||||
padding-left: 1.75rem;
|
||||
margin-top: 0.625rem;
|
||||
}
|
||||
|
||||
.legal-prose ul > li::before {
|
||||
[data-legal-page] .legal-prose ul > li::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0.5rem;
|
||||
@@ -181,41 +190,43 @@ body {
|
||||
width: 0.375rem;
|
||||
height: 0.375rem;
|
||||
border-radius: 9999px;
|
||||
background-color: rgb(59 130 246);
|
||||
background-color: rgb(37 99 235);
|
||||
}
|
||||
|
||||
.dark .legal-prose ul > li::before {
|
||||
[data-legal-page] .dark .legal-prose ul > li::before,
|
||||
.dark [data-legal-page] .legal-prose ul > li::before {
|
||||
background-color: rgb(96 165 250);
|
||||
}
|
||||
|
||||
.legal-prose ol {
|
||||
[data-legal-page] .legal-prose ol {
|
||||
counter-reset: legal-ol;
|
||||
}
|
||||
|
||||
.legal-prose ol > li {
|
||||
[data-legal-page] .legal-prose ol > li {
|
||||
counter-increment: legal-ol;
|
||||
}
|
||||
|
||||
.legal-prose ol > li::before {
|
||||
[data-legal-page] .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);
|
||||
color: rgb(29 78 216);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.dark .legal-prose ol > li::before {
|
||||
color: rgb(96 165 250);
|
||||
[data-legal-page] .dark .legal-prose ol > li::before,
|
||||
.dark [data-legal-page] .legal-prose ol > li::before {
|
||||
color: rgb(147 197 253);
|
||||
}
|
||||
|
||||
.legal-prose li > ul,
|
||||
.legal-prose li > ol {
|
||||
[data-legal-page] .legal-prose li > ul,
|
||||
[data-legal-page] .legal-prose li > ol {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.legal-prose hr {
|
||||
[data-legal-page] .legal-prose hr {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 2rem;
|
||||
border: 0;
|
||||
@@ -223,7 +234,7 @@ body {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.legal-prose blockquote {
|
||||
[data-legal-page] .legal-prose blockquote {
|
||||
margin-top: 1.5rem;
|
||||
margin-bottom: 0;
|
||||
padding: 1rem 1.25rem;
|
||||
@@ -233,7 +244,8 @@ body {
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
|
||||
.dark .legal-prose blockquote {
|
||||
[data-legal-page] .dark .legal-prose blockquote,
|
||||
.dark [data-legal-page] .legal-prose blockquote {
|
||||
background-color: rgb(30 58 138 / 0.25);
|
||||
color: rgb(191 219 254);
|
||||
}
|
||||
|
||||
+10
-7
@@ -27,22 +27,25 @@ 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 bg-[#111829]" data-legal-page>
|
||||
<section
|
||||
data-legal-hero
|
||||
className="py-20 bg-gradient-to-b from-blue-50 to-white dark:from-gray-900 dark:to-gray-800 text-gray-950 dark:text-gray-100"
|
||||
>
|
||||
<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">
|
||||
Legal
|
||||
</h1>
|
||||
<p className="text-xl text-gray-600 dark:text-gray-300">
|
||||
<p className="text-xl text-gray-800 dark:text-gray-200">
|
||||
Policies and agreements for the P2NS open-source project and this website.
|
||||
</p>
|
||||
<p className="mt-4 text-sm text-gray-500 dark:text-gray-400">
|
||||
<p className="mt-4 text-sm text-gray-700 dark:text-gray-300">
|
||||
Last updated {LEGAL_LAST_UPDATED}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="py-20 bg-white dark:bg-gray-900">
|
||||
<section data-legal-content className="py-20 bg-white dark:bg-gray-900 text-gray-950 dark:text-gray-100">
|
||||
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{legalDocuments.map((doc) => {
|
||||
@@ -57,11 +60,11 @@ export default function LegalHubPage() {
|
||||
<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">
|
||||
<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">
|
||||
<h2 className="text-xl font-semibold text-gray-950 dark:text-white">
|
||||
{doc.title}
|
||||
</h2>
|
||||
</div>
|
||||
<p className="text-gray-600 dark:text-gray-400">{doc.description}</p>
|
||||
<p className="text-gray-800 dark:text-gray-200">{doc.description}</p>
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
|
||||
@@ -20,36 +20,39 @@ export default function LegalDocumentLayout({
|
||||
showNotice = false,
|
||||
}: LegalDocumentLayoutProps) {
|
||||
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 bg-[#111829]" data-legal-page>
|
||||
<section
|
||||
data-legal-hero
|
||||
className="py-20 bg-gradient-to-b from-blue-50 to-white dark:from-gray-900 dark:to-gray-800 text-gray-950 dark:text-gray-100"
|
||||
>
|
||||
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<nav
|
||||
aria-label="Breadcrumb"
|
||||
className="flex flex-wrap items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400 mb-6"
|
||||
className="flex flex-wrap items-center gap-1.5 text-sm text-gray-700 dark:text-gray-300 mb-6"
|
||||
>
|
||||
<Link
|
||||
href="/legal"
|
||||
className="inline-flex items-center gap-1 hover:text-blue-600 dark:hover:text-blue-400 transition-colors"
|
||||
className="inline-flex items-center gap-1 text-gray-900 dark:text-white hover:text-blue-600 dark:hover:text-blue-400 transition-colors"
|
||||
>
|
||||
<Scale className="h-4 w-4 shrink-0 opacity-70" aria-hidden />
|
||||
Legal
|
||||
</Link>
|
||||
<ChevronRight className="h-4 w-4 shrink-0 opacity-50" aria-hidden />
|
||||
<span className="font-medium text-gray-700 dark:text-gray-200">{title}</span>
|
||||
<span className="font-medium text-gray-900 dark:text-white">{title}</span>
|
||||
</nav>
|
||||
<h1 className="text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white mb-4">
|
||||
{title}
|
||||
</h1>
|
||||
{description && (
|
||||
<p className="text-xl text-gray-600 dark:text-gray-300">{description}</p>
|
||||
<p className="text-xl text-gray-800 dark:text-gray-200">{description}</p>
|
||||
)}
|
||||
<p className="mt-4 text-sm text-gray-500 dark:text-gray-400">
|
||||
<p className="mt-4 text-sm text-gray-700 dark:text-gray-300">
|
||||
Last updated {LEGAL_LAST_UPDATED}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="py-20 bg-white dark:bg-gray-900">
|
||||
<section data-legal-content className="py-20 bg-white dark:bg-gray-900 text-gray-950 dark:text-gray-100">
|
||||
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
{showNotice && (
|
||||
<div
|
||||
@@ -67,7 +70,7 @@ export default function LegalDocumentLayout({
|
||||
|
||||
{seeAlso && seeAlso.length > 0 && (
|
||||
<aside className="mt-12 pt-8">
|
||||
<h2 className="text-lg font-semibold text-gray-900 dark:text-white mb-4">
|
||||
<h2 className="text-lg font-semibold text-gray-950 dark:text-white mb-4">
|
||||
See also
|
||||
</h2>
|
||||
<ul className="grid gap-3 sm:grid-cols-2">
|
||||
@@ -75,10 +78,10 @@ export default function LegalDocumentLayout({
|
||||
<li key={link.href}>
|
||||
<Link
|
||||
href={link.href}
|
||||
className="group flex items-center justify-between gap-3 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 px-4 py-3 text-sm font-medium text-gray-900 dark:text-white transition-all hover:border-blue-500 dark:hover:border-blue-500 hover:shadow-md"
|
||||
className="group flex items-center justify-between gap-3 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 px-4 py-3 text-sm font-medium text-gray-950 dark:text-white transition-all hover:border-blue-500 dark:hover:border-blue-500 hover:shadow-md"
|
||||
>
|
||||
<span>{link.label}</span>
|
||||
<ChevronRight className="h-4 w-4 shrink-0 text-gray-400 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors" />
|
||||
<ChevronRight className="h-4 w-4 shrink-0 text-gray-600 dark:text-gray-400 group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors" />
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user