tahamajs/IE / Projects /front /src /pages /AppStoreIntroPage.tsx
tahamajs's picture
download
raw
26.5 kB
import { useState, useEffect } from "react";
import { motion, AnimatePresence } from "framer-motion";
import { Link } from "react-router-dom";
import {
Wrench, Check, Cpu, Download, ArrowRight, Zap, Shield, Sparkles,
Layers, Star, Lock, Code, Layout, Globe, Search
} from "lucide-react";
export default function AppStoreIntroPage() {
useEffect(() => {
document.title = "Modular App Store | Scientific Extensions | IE Research";
}, []);
// Mock Store States
const [selectedCategory, setSelectedCategory] = useState("all");
const [installedModules, setInstalledModules] = useState<string[]>([]);
const [installingModule, setInstallingModule] = useState<string | null>(null);
const [searchTerm, setSearchTerm] = useState("");
const modules = [
{
id: "protein-3d",
name: "3D Protein Visualizer",
category: "visualization",
author: "BioStruct Lab",
rating: 4.9,
downloads: "12k",
desc: "Embed interactive 3D protein folding diagrams directly into your papers and collaborative documents.",
details: "Uses WebGL to render PDB structures. Allows rotation, zoom, and atomic residue labeling inside the editor.",
badge: "Featured"
},
{
id: "bib-dedupe",
name: "BibTeX Clean & Dedupe",
category: "utility",
author: "IE Research",
rating: 4.8,
downloads: "28k",
desc: "Scans BibTeX references, resolves duplicates, fixes missing publication dates, and formats DOIs.",
details: "Integrates with Crossref APIs to automatically repair damaged metadata structures in references.",
badge: "Popular"
},
{
id: "jupyter-sync",
name: "Jupyter Sync & Embed",
category: "data",
author: "DataSci Core",
rating: 4.7,
downloads: "9k",
desc: "Connect Jupyter notebooks. Embed live charts, code blocks, and data structures that update dynamically.",
details: "Pulls outputs from running kernels directly into your LaTeX or HTML manuscripts automatically.",
badge: "Developer"
},
{
id: "chem-draw",
name: "Chemical Structure Drawer",
category: "visualization",
author: "ChemCompute",
rating: 4.9,
downloads: "15k",
desc: "Draw organic compounds, rings, and reaction formulas with an intuitive grid editor and generate LaTeX chemfig code.",
details: "Includes templates for amino acids, nucleotides, and common polymers with vector svg exports.",
badge: "New"
},
{
id: "ethics-check",
name: "IRB Ethics Compliancer",
category: "utility",
author: "Policy Group",
rating: 4.6,
downloads: "4k",
desc: "Pre-screen research methodologies against standard institutional board rules to flag potential ethical errors.",
details: "Cross-checks clinical trials setups with NIH directives and Belmont report guidelines.",
badge: ""
},
{
id: "arxiv-export",
name: "One-Click arXiv Publisher",
category: "data",
author: "IE Research",
rating: 4.8,
downloads: "34k",
desc: "Validate, bundle, and submit LaTeX source files, assets, and metadata directly to arXiv.org.",
details: "Packages compile resources into submission-ready gzip files conforming strictly to arXiv standards.",
badge: "Popular"
}
];
const handleInstall = (id: string) => {
if (installedModules.includes(id)) return;
setInstallingModule(id);
setTimeout(() => {
setInstalledModules((prev) => [...prev, id]);
setInstallingModule(null);
}, 1500);
};
const filteredModules = modules.filter((m) => {
const matchesCat = selectedCategory === "all" || m.category === selectedCategory;
const matchesSearch = m.name.toLowerCase().includes(searchTerm.toLowerCase()) ||
m.desc.toLowerCase().includes(searchTerm.toLowerCase());
return matchesCat && matchesSearch;
});
return (
<div className="pt-20 pb-16 min-h-screen bg-slate-50 dark:bg-slate-950 transition-colors duration-300 text-slate-900 dark:text-slate-100">
{/* 1. Hero Section */}
<section className="relative container mx-auto px-4 pt-16 pb-12 text-center overflow-hidden">
{/* Glow Spheres */}
<div className="absolute top-1/3 left-1/3 -translate-x-1/2 -translate-y-1/2 -z-10 w-[550px] h-[550px] bg-teal-500/10 blur-[130px] rounded-full pointer-events-none" />
<div className="absolute top-1/4 right-1/3 translate-x-1/2 -translate-y-1/2 -z-10 w-[450px] h-[450px] bg-emerald-500/10 blur-[130px] rounded-full pointer-events-none" />
<motion.div
initial={{ opacity: 0, y: 30 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.8, ease: "easeOut" }}
className="max-w-4xl mx-auto space-y-6"
>
<div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-teal-500/10 border border-teal-500/20 text-xs font-semibold text-teal-600 dark:text-teal-400 uppercase tracking-wider">
<Layout className="w-3.5 h-3.5" /> Core Product Ecosystem
</div>
<h1 className="text-5xl md:text-7xl font-bold tracking-tight leading-[1.1]">
Scientific Workspace, <br />
<span className="bg-gradient-to-r from-teal-500 via-emerald-500 to-cyan-500 bg-clip-text text-transparent">
Extended via Modules
</span>
</h1>
<p className="text-lg md:text-xl text-slate-600 dark:text-slate-400 max-w-2xl mx-auto font-normal leading-relaxed">
Customize your collaborative workspace. Install custom toolbars, equations helpers, reference scrubbers, and live charts directly into your interface.
</p>
<div className="flex flex-wrap items-center justify-center gap-4 pt-4">
<Link
id="app-store-browse-btn"
to="/tools"
className="inline-flex items-center gap-2 px-6 py-3 rounded-full bg-teal-600 text-white font-semibold shadow-lg hover:shadow-xl hover:bg-teal-500 transition duration-300"
>
Browse Catalog
<ArrowRight className="w-4 h-4" />
</Link>
<a
id="app-store-demo-btn"
href="#store-demo"
className="inline-flex items-center gap-2 px-6 py-3 rounded-full bg-white/70 dark:bg-white/5 border border-slate-200 dark:border-white/10 text-slate-700 dark:text-slate-300 font-semibold shadow-sm hover:border-slate-300 dark:hover:border-white/20 transition duration-300 backdrop-blur-sm"
>
Simulate Installs
</a>
</div>
</motion.div>
</section>
{/* 2. Interactive App Store Grid Mockup */}
<section id="store-demo" className="container mx-auto px-4 py-16">
<motion.div
initial={{ opacity: 0, y: 50 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: "-100px" }}
transition={{ duration: 0.8, ease: "easeOut" }}
className="relative max-w-6xl mx-auto rounded-3xl border border-slate-200/80 dark:border-white/10 bg-white/40 dark:bg-slate-900/40 shadow-2xl backdrop-blur-xl overflow-hidden"
>
{/* Mockup Toolbar Header */}
<div className="p-4 border-b border-slate-200/80 dark:border-white/10 bg-slate-100/50 dark:bg-slate-950/40 flex flex-wrap items-center justify-between gap-4">
{/* Store title & tabs */}
<div className="flex items-center gap-4">
<span className="text-xs font-bold text-slate-500 dark:text-slate-400 font-mono flex items-center gap-1.5">
<Wrench className="w-3.5 h-3.5 text-teal-500 animate-spin" />
MODULAR_APP_STORE
</span>
<div className="hidden sm:flex bg-slate-200/60 dark:bg-slate-800/60 rounded-lg p-0.5 text-xs">
{["all", "visualization", "utility", "data"].map((cat) => (
<button
key={cat}
id={`cat-btn-${cat}`}
onClick={() => setSelectedCategory(cat)}
className={`px-3 py-1 rounded-md capitalize font-medium transition ${
selectedCategory === cat
? "bg-white dark:bg-slate-700 text-slate-950 dark:text-white shadow-sm"
: "text-slate-600 dark:text-slate-400 hover:text-slate-950 dark:hover:text-white"
}`}
>
{cat}
</button>
))}
</div>
</div>
{/* Search Input Mock */}
<div className="relative">
<Search className="w-4 h-4 absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none" />
<input
id="store-search-mock"
type="text"
placeholder="Search modules..."
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
className="pl-9 pr-4 py-1.5 w-[200px] text-xs rounded-lg border border-slate-200 dark:border-slate-800 bg-white/70 dark:bg-slate-950/40 focus:outline-none focus:border-teal-500 transition font-sans"
/>
</div>
</div>
{/* Module Cards Grid */}
<div className="p-6 bg-slate-50/50 dark:bg-slate-900/10 min-h-[400px]">
{filteredModules.length > 0 ? (
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<AnimatePresence>
{filteredModules.map((m) => {
const isInstalled = installedModules.includes(m.id);
const isInstalling = installingModule === m.id;
return (
<motion.div
key={m.id}
layout
initial={{ opacity: 0, scale: 0.95 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.95 }}
className="p-5 rounded-2xl border border-slate-200 dark:border-slate-850 bg-white dark:bg-slate-950/40 flex flex-col justify-between hover:shadow-md transition duration-300"
>
<div>
<div className="flex items-center justify-between gap-2 mb-3">
<span className="text-[10px] text-slate-400 dark:text-slate-500 font-medium">
By {m.author}
</span>
{m.badge && (
<span className="text-[8px] font-bold px-2 py-0.5 rounded-full bg-teal-500/10 text-teal-600 dark:text-teal-400 uppercase tracking-wider">
{m.badge}
</span>
)}
</div>
<h3 className="font-bold text-slate-900 dark:text-white text-sm mb-1.5">{m.name}</h3>
<p className="text-xs text-slate-500 dark:text-slate-400 leading-relaxed mb-4">
{m.desc}
</p>
<p className="text-[10px] text-slate-400 bg-slate-100/50 dark:bg-slate-800/40 p-2.5 rounded-lg mb-4 italic font-sans leading-normal">
{m.details}
</p>
</div>
<div className="flex items-center justify-between border-t border-slate-100 dark:border-slate-850/80 pt-3.5 mt-2">
<div className="flex items-center gap-1 text-[10px] text-slate-500 font-medium">
<Star className="w-3.5 h-3.5 fill-amber-500 stroke-amber-500" />
<span>{m.rating}</span>
<span className="mx-1 text-slate-300 dark:text-slate-700">|</span>
<span>{m.downloads} installs</span>
</div>
<button
id={`btn-install-${m.id}`}
onClick={() => handleInstall(m.id)}
disabled={isInstalled || isInstalling}
className={`px-3 py-1.5 rounded-lg text-xs font-semibold flex items-center gap-1.5 transition ${
isInstalled
? "bg-emerald-100 dark:bg-emerald-950/40 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20"
: isInstalling
? "bg-slate-100 dark:bg-white/5 text-slate-400 pointer-events-none"
: "bg-teal-600 text-white hover:bg-teal-500 active:scale-95"
}`}
>
{isInstalled ? (
<>
<Check className="w-3.5 h-3.5" />
Installed
</>
) : isInstalling ? (
<>
<div className="w-3 h-3 rounded-full border border-slate-400 border-t-transparent animate-spin" />
Installing
</>
) : (
<>
<Download className="w-3.5 h-3.5" />
Install
</>
)}
</button>
</div>
</motion.div>
);
})}
</AnimatePresence>
</div>
) : (
<div className="min-h-[300px] flex flex-col items-center justify-center text-slate-500 dark:text-slate-400">
<Search className="w-8 h-8 text-slate-400 mb-3" />
<span className="text-sm font-medium">No scientific modules match your query.</span>
</div>
)}
</div>
</motion.div>
</section>
{/* 3. Detailed Product Benefits (Grid) */}
<section className="container mx-auto px-4 py-16 relative">
<div className="absolute top-1/2 right-1/4 -z-10 w-[400px] h-[400px] bg-emerald-500/5 blur-[120px] rounded-full" />
<div className="max-w-6xl mx-auto space-y-12">
<div className="text-center space-y-4 max-w-3xl mx-auto">
<h2 className="text-3xl md:text-5xl font-bold tracking-tight text-slate-900 dark:text-white">
An Extensible Foundation
</h2>
<p className="text-lg text-slate-600 dark:text-slate-400">
Other collaborative platforms restrict your toolkits. We give your laboratory total flexibility to construct and customize workspaces.
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-8 pt-6">
{[
{
icon: Shield,
title: "Strict Sandbox Security",
desc: "Every module runs inside a strictly isolated iframe sandbox. It cannot capture sensitive data, keys, or leak code context without permission.",
color: "from-blue-500 to-cyan-500"
},
{
icon: Code,
title: "Open Developer APIs",
desc: "Write extensions in vanilla JavaScript and package them. Instantly plug custom chemical models, charts, or libraries into our core app.",
color: "from-emerald-500 to-teal-500"
},
{
icon: Globe,
title: "Global Shared Registry",
desc: "Share your widgets publicly to let research groups run computations globally, or retain them privately on local enterprise systems.",
color: "from-amber-500 to-yellow-500"
}
].map((benefit, index) => (
<motion.div
key={benefit.title}
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: "-50px" }}
transition={{ duration: 0.5, delay: index * 0.1 }}
className="group relative p-6 rounded-2xl bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-850 shadow-md hover:shadow-xl transition-all duration-300"
>
<div className={`w-12 h-12 rounded-xl bg-gradient-to-r ${benefit.color} text-white flex items-center justify-center mb-5 group-hover:scale-110 transition duration-300 shadow-md`}>
<benefit.icon className="w-5 h-5" />
</div>
<h3 className="text-xl font-bold text-slate-900 dark:text-white mb-2">
{benefit.title}
</h3>
<p className="text-slate-600 dark:text-slate-400 text-sm leading-relaxed">
{benefit.desc}
</p>
</motion.div>
))}
</div>
</div>
</section>
{/* 4. Development Loop Slide Tour */}
<section className="container mx-auto px-4 py-16 bg-slate-100/50 dark:bg-slate-900/30 border-y border-slate-200 dark:border-slate-900">
<div className="max-w-4xl mx-auto space-y-12">
<div className="text-center space-y-4 max-w-2xl mx-auto">
<span className="text-xs font-bold text-teal-600 uppercase tracking-widest bg-teal-50 dark:bg-teal-900/30 px-3 py-1 rounded-full">
Developer Workflow
</span>
<h2 className="text-3xl md:text-4xl font-bold text-slate-900 dark:text-white">
Build Your Own Scientific Tools
</h2>
<p className="text-slate-600 dark:text-slate-400 text-sm">
We provide a lightweight web SDK to declare widgets and interface with our real-time editor events.
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 pt-4 text-center">
{[
{
step: "01",
title: "Initialize & Build",
desc: "Declare properties like variables, input controls, and dimensions using standard JSON metadata schemas."
},
{
step: "02",
title: "Sandbox Testing",
desc: "Load and run scripts inside our interactive debugger workspace to confirm functionality before publishing."
},
{
step: "03",
title: "Publish to Catalog",
desc: "Publish your widget to the shared community store, or lock it down internally for your laboratory colleagues only."
}
].map((step, idx) => (
<div
key={step.step}
className="p-6 rounded-2xl bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-850 shadow-sm space-y-3 relative hover:-translate-y-1 transition duration-300"
>
<span className="text-4xl font-extrabold bg-gradient-to-r from-teal-500 to-emerald-500 bg-clip-text text-transparent block font-mono">
{step.step}
</span>
<h3 className="font-bold text-sm text-slate-900 dark:text-white">{step.title}</h3>
<p className="text-xs text-slate-500 dark:text-slate-400 leading-relaxed">
{step.desc}
</p>
</div>
))}
</div>
</div>
</section>
{/* 5. Pricing Plans */}
<section className="container mx-auto px-4 py-20">
<div className="max-w-6xl mx-auto space-y-12">
<div className="text-center space-y-4 max-w-2xl mx-auto">
<h2 className="text-3xl md:text-5xl font-bold tracking-tight text-slate-900 dark:text-white">
Ecosystem Access Pricing
</h2>
<p className="text-slate-600 dark:text-slate-400 text-lg">
Most plugins are free. Pay for advanced developer privileges and private scopes.
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto pt-6">
{[
{
name: "Free Catalog",
price: "$0",
period: "forever",
desc: "Access basic visualization and formatting tools.",
features: [
"Install up to 5 modules simultaneously",
"Access all public-free registry tools",
"Auto-updates for installed widgets",
"Standard module sandbox execution"
],
cta: "Start Installing Apps",
popular: false
},
{
name: "Pro Developer",
price: "$15",
period: "per month",
desc: "Perfect for labs wishing to construct complex custom pipelines.",
features: [
"Install unlimited modules",
"Access to premium paid modules",
"Publish private apps (up to 3 modules)",
"Custom widget development APIs",
"Basic statistics analytics reports"
],
cta: "Upgrade to Pro",
popular: true
},
{
name: "Lab Institutional",
price: "Custom",
period: "contact sales",
desc: "Complete private catalogs with strict internal review cycles.",
features: [
"Everything in Pro Developer",
"Private organizational registry catalog",
"Custom code auditing and validation",
"Advanced volume pricing agreements",
"Priority support SLA agreements"
],
cta: "Contact Security Office",
popular: false
}
].map((plan, index) => (
<motion.div
key={plan.name}
initial={{ opacity: 0, y: 30 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true, margin: "-50px" }}
transition={{ duration: 0.5, delay: index * 0.15 }}
className={`relative rounded-3xl p-8 bg-white dark:bg-slate-900 border flex flex-col justify-between ${
plan.popular
? "border-teal-600 shadow-xl ring-2 ring-teal-500/20 scale-105 z-10"
: "border-slate-200 dark:border-slate-800 shadow-md"
}`}
>
{plan.popular && (
<span className="absolute -top-3.5 left-1/2 -translate-x-1/2 bg-teal-600 text-white text-xs font-bold px-3 py-1 rounded-full uppercase tracking-wider">
Most Popular
</span>
)}
<div>
<h3 className="text-xl font-bold text-slate-900 dark:text-white mb-2">{plan.name}</h3>
<p className="text-xs text-slate-500 dark:text-slate-400 mb-6">{plan.desc}</p>
<div className="flex items-baseline gap-1 mb-6">
<span className="text-4xl md:text-5xl font-extrabold text-slate-900 dark:text-white">{plan.price}</span>
<span className="text-xs text-slate-500 dark:text-slate-400 font-medium">/{plan.period}</span>
</div>
<div className="w-full h-px bg-slate-100 dark:bg-slate-800 my-6" />
<ul className="space-y-4 mb-8">
{plan.features.map((feat) => (
<li key={feat} className="flex items-start gap-3 text-xs text-slate-600 dark:text-slate-300">
<Check className="w-4 h-4 text-emerald-500 flex-shrink-0 mt-0.5" />
<span>{feat}</span>
</li>
))}
</ul>
</div>
<Link
id={`btn-store-pricing-${plan.name.toLowerCase().replace(" ", "-")}`}
to="/pricing"
className={`w-full py-3 rounded-full text-center text-xs font-bold transition duration-300 ${
plan.popular
? "bg-teal-600 text-white hover:bg-teal-500 shadow-md hover:shadow-lg"
: "bg-slate-100 hover:bg-slate-200 dark:bg-white/5 dark:hover:bg-white/10 text-slate-800 dark:text-slate-200"
}`}
>
{plan.cta}
</Link>
</motion.div>
))}
</div>
</div>
</section>
{/* 6. CTA Panel */}
<section className="container mx-auto px-4 py-12 text-center">
<div className="max-w-4xl mx-auto rounded-3xl bg-gradient-to-r from-teal-900 to-emerald-800 p-10 md:p-14 text-white shadow-xl relative overflow-hidden">
<div className="absolute inset-0 bg-[radial-gradient(circle_at_bottom_right,rgba(255,255,255,0.1),transparent_40%)]" />
<div className="relative z-10 space-y-6">
<h2 className="text-3xl md:text-4xl font-bold tracking-tight">Expand Your Scientific Toolkits</h2>
<p className="text-teal-100 max-w-xl mx-auto text-sm md:text-base leading-relaxed">
Unlock modular features tailored to your laboratory. Start browsing the store now.
</p>
<div className="pt-4">
<Link
id="app-store-cta-btn"
to="/tools"
className="inline-flex items-center gap-2 px-8 py-3 rounded-full bg-white text-slate-900 font-bold hover:bg-slate-50 transition shadow-lg hover:shadow-xl active:scale-95"
>
Browse catalog
<ArrowRight className="w-4 h-4 text-teal-600" />
</Link>
</div>
</div>
</div>
</section>
</div>
);
}

Xet Storage Details

Size:
26.5 kB
·
Xet hash:
8c3060cf1cf668737d31ae60a1af1b68e81394f7405dab2886a994aedaca7f2e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.