Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
407 changes: 183 additions & 224 deletions app/about/page.tsx

Large diffs are not rendered by default.

48 changes: 10 additions & 38 deletions app/about/private-feeds/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
'use client'

import { ArrowLeftIcon, LockClosedIcon, KeyIcon, ShieldCheckIcon, QuestionMarkCircleIcon, CpuChipIcon, ArrowPathIcon, ExclamationTriangleIcon, CheckCircleIcon, XCircleIcon } from '@heroicons/react/24/outline'
import Link from 'next/link'
import { motion } from 'framer-motion'
import { LockClosedIcon, KeyIcon, ShieldCheckIcon, QuestionMarkCircleIcon, CpuChipIcon, ArrowPathIcon, ExclamationTriangleIcon, CheckCircleIcon, XCircleIcon } from '@heroicons/react/24/outline'
import { InfoPage } from '@/components/layout/info-page'

// Reusable Components
function CalloutBox({
Expand Down Expand Up @@ -116,37 +115,13 @@ function SubSection({ title, children }: { title: string; children: React.ReactN

export default function PrivateFeedsPage() {
return (
<div className="min-h-screen bg-gray-50 dark:bg-gray-950">
<div className="max-w-4xl mx-auto px-4 py-8">
{/* Back link */}
<div className="mb-8">
<Link
href="/about"
className="inline-flex items-center gap-2 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"
>
<ArrowLeftIcon className="h-4 w-4" />
Back to About
</Link>
</div>

<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
className="bg-white dark:bg-neutral-900 rounded-2xl shadow-lg overflow-hidden"
>
{/* Header */}
<div className="bg-gradient-yappr p-8 text-white">
<div className="flex items-center gap-3 mb-4">
<LockClosedIcon className="h-8 w-8" />
<h1 className="text-3xl font-bold">How Private Feeds Work</h1>
</div>
<p className="text-lg opacity-90">
End-to-end encrypted content sharing with efficient revocation on a public blockchain
</p>
</div>

{/* Content */}
<div className="p-8 space-y-10">
<InfoPage
icon={LockClosedIcon}
title="How Private Feeds Work"
subtitle="End-to-end encrypted content sharing with efficient revocation on a public blockchain"
back={{ href: '/about', label: 'Back to About' }}
spacing="loose"
>
{/* Section 1: The Challenge */}
<Section icon={QuestionMarkCircleIcon} title="The Challenge: Privacy on a Public Blockchain">
<p>
Expand Down Expand Up @@ -1139,9 +1114,6 @@ export default function PrivateFeedsPage() {
</div>
<p className="text-sm text-gray-500 mt-6">Last updated: January 2026</p>
</div>
</div>
</motion.div>
</div>
</div>
</InfoPage>
)
}
66 changes: 22 additions & 44 deletions app/contract/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
'use client'

import { useState } from 'react'
import { ArrowLeftIcon, DocumentDuplicateIcon, CheckIcon, CodeBracketIcon } from '@heroicons/react/24/outline'
import Link from 'next/link'
import { motion } from 'framer-motion'
import { DocumentDuplicateIcon, CheckIcon, CodeBracketIcon } from '@heroicons/react/24/outline'
import { InfoPage } from '@/components/layout/info-page'
import toast from 'react-hot-toast'
import socialContractV2 from '@/contracts/yappr-social-contract-v2.json'
import socialContractV4 from '@/contracts/yappr-social-contract-v4.json'
Expand Down Expand Up @@ -47,45 +46,26 @@ export default function ContractPage() {
.reduce((acc, doc) => acc + (doc.indices?.length || 0), 0)

return (
<div className="min-h-screen bg-gray-50 dark:bg-gray-950">
<div className="max-w-7xl mx-auto px-4 py-8">
<div className="mb-8">
<Link
href="/"
className="inline-flex items-center gap-2 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"
>
<ArrowLeftIcon className="h-4 w-4" />
Back to Yappr
</Link>
</div>

<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
className="bg-white dark:bg-neutral-900 rounded-2xl shadow-lg overflow-hidden"
>
<div className="bg-gradient-yappr p-8 text-white">
<div className="flex items-center gap-3 mb-4">
<CodeBracketIcon className="h-8 w-8" />
<h1 className="text-3xl font-bold">Yappr Data Contract</h1>
</div>
<p className="text-lg opacity-90 mb-6">
Dash Platform data contract for the Yappr social media platform
</p>
<div className="flex gap-6 text-sm">
<div>
<span className="opacity-75">Version:</span> {dataContract.version}
</div>
<div>
<span className="opacity-75">Documents:</span> {documentCount}
</div>
<div>
<span className="opacity-75">Indices:</span> {totalIndices}
</div>
</div>
<InfoPage
icon={CodeBracketIcon}
title="Yappr Data Contract"
subtitle="Dash Platform data contract for the Yappr social media platform"
width="wide"
headerExtra={
<div className="flex gap-6 text-sm">
<div>
<span className="opacity-75">Version:</span> {dataContract.version}
</div>

<div className="p-8">
<div>
<span className="opacity-75">Documents:</span> {documentCount}
</div>
<div>
<span className="opacity-75">Indices:</span> {totalIndices}
</div>
</div>
}
>
<div>
<div className="flex items-center justify-between mb-6">
<h2 className="text-xl font-semibold">Contract Definition</h2>
<button
Expand Down Expand Up @@ -161,9 +141,7 @@ export default function ContractPage() {
<li>Start building your decentralized social network!</li>
</ol>
</div>
</div>
</motion.div>
</div>
</div>
</InfoPage>
)
}
Loading
Loading