a867fc45d6
CI Pipeline / test (20) (pull_request) Failing after 1m51s
CI Pipeline / test (18) (pull_request) Failing after 2m6s
CI Pipeline / e2e (chromium) (pull_request) Successful in 3m30s
CI Pipeline / e2e (firefox) (pull_request) Successful in 4m50s
CI Pipeline / e2e (webkit) (pull_request) Successful in 4m17s
CI Pipeline / performance (pull_request) Successful in 2m48s
CI Pipeline / visual-regression (pull_request) Failing after 6m15s
CI Pipeline / storybook (pull_request) Failing after 1m40s
CI Pipeline / lint (pull_request) Successful in 1m12s
CI Pipeline / build (pull_request) Successful in 1m26s
117 lines
3.6 KiB
JavaScript
117 lines
3.6 KiB
JavaScript
import ContentThumbnailTemplate from "../components/ContentThumbnailTemplate";
|
|
|
|
// Mock blog post data for testing
|
|
const mockPost1 = {
|
|
slug: "resolving-active-conflicts",
|
|
frontmatter: {
|
|
title: "Resolving Active Conflicts",
|
|
description:
|
|
"Practical steps for resolving conflicts while maintaining trust, cooperation, and shared goals",
|
|
author: "Author name",
|
|
date: "2025-04-15",
|
|
},
|
|
};
|
|
|
|
const mockPost2 = {
|
|
slug: "operational-security-mutual-aid",
|
|
frontmatter: {
|
|
title: "Operational Security for Mutual Aid",
|
|
description:
|
|
"Tactics to protect members, secure communication, and prevent Infiltration",
|
|
author: "Author name",
|
|
date: "2025-04-10",
|
|
},
|
|
};
|
|
|
|
const mockPost3 = {
|
|
slug: "making-decisions-without-hierarchy",
|
|
frontmatter: {
|
|
title: "Making decisions without hierarchy",
|
|
description:
|
|
"A brief guide to collaborative nonhierarchical decision making",
|
|
author: "Author name",
|
|
date: "2025-04-05",
|
|
},
|
|
};
|
|
|
|
export default function LearnPage() {
|
|
// Mock slug order for consistent background cycling
|
|
const mockSlugOrder = [
|
|
"resolving-active-conflicts",
|
|
"operational-security-mutual-aid",
|
|
"making-decisions-without-hierarchy",
|
|
];
|
|
|
|
return (
|
|
<div className="min-h-screen bg-[#F4F3F1]">
|
|
<div className="max-w-6xl mx-auto p-8 pt-24">
|
|
<h1 className="text-3xl font-bold text-[var(--color-content-default-primary)] mb-8">
|
|
Learn
|
|
</h1>
|
|
|
|
<div className="space-y-12">
|
|
{/* Featured Articles */}
|
|
<section>
|
|
<h2 className="text-2xl font-semibold text-[var(--color-content-default-primary)] mb-6">
|
|
Featured Articles
|
|
</h2>
|
|
<div className="flex flex-wrap gap-6">
|
|
<ContentThumbnailTemplate
|
|
post={mockPost1}
|
|
className="mb-4"
|
|
slugOrder={mockSlugOrder}
|
|
/>
|
|
<ContentThumbnailTemplate
|
|
post={mockPost2}
|
|
className="mb-4"
|
|
slugOrder={mockSlugOrder}
|
|
/>
|
|
<ContentThumbnailTemplate
|
|
post={mockPost3}
|
|
className="mb-4"
|
|
slugOrder={mockSlugOrder}
|
|
/>
|
|
</div>
|
|
</section>
|
|
|
|
{/* More Articles */}
|
|
<section>
|
|
<h2 className="text-2xl font-semibold text-[var(--color-content-default-primary)] mb-6">
|
|
More Articles
|
|
</h2>
|
|
<div className="space-y-4">
|
|
<ContentThumbnailTemplate
|
|
post={mockPost1}
|
|
variant="horizontal"
|
|
slugOrder={mockSlugOrder}
|
|
/>
|
|
<ContentThumbnailTemplate
|
|
post={mockPost2}
|
|
variant="horizontal"
|
|
slugOrder={mockSlugOrder}
|
|
/>
|
|
<ContentThumbnailTemplate
|
|
post={mockPost3}
|
|
variant="horizontal"
|
|
slugOrder={mockSlugOrder}
|
|
/>
|
|
</div>
|
|
</section>
|
|
|
|
{/* Coming Soon */}
|
|
<section className="bg-white p-6 rounded-lg shadow">
|
|
<h2 className="text-xl font-semibold text-[var(--color-content-default-primary)] mb-4">
|
|
More Content Coming Soon
|
|
</h2>
|
|
<p className="text-[var(--color-content-default-secondary)]">
|
|
We're working on adding more educational content to help you
|
|
build better communities. Check back soon for new articles and
|
|
resources.
|
|
</p>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|