```jsx import React, { useState, useEffect } from "react"; // Custom SVG Icons const IconUser = () => ( ); const IconLock = () => ( ); const IconHome = () => ( ); const IconStore = () => ( ); const IconInfo = () => ( ); const IconGallery = () => ( ); const IconForum = () => ( ); const IconResearch = () => ( ); const App = () => { const [currentPage, setCurrentPage] = useState("home"); const [isLoggedIn, setIsLoggedIn] = useState(false); const [username, setUsername] = useState(""); // Mock studies data const studies = [ { title: "Cannabis and Chronic Pain Management", summary: "This study explores the efficacy of cannabis in managing chronic pain conditions such as arthritis and fibromyalgia.", source: "Journal of Medical Research, 2023", link: "#", }, { title: "Long-Term Cognitive Effects of Cannabis Use", summary: "A longitudinal study analyzing the impact of long-term cannabis use on cognitive function and memory retention.", source: "Neurological Review, 2022", link: "#", }, ]; // Mock forum threads const initialThreads = [ { id: 1, author: "GreenThumb1980", title: "Best Indoor Grow Setup for Beginners", replies: 12, lastUpdated: "2 hours ago", }, { id: 2, author: "HerbalistJane", title: "CBD vs THC: Which is Right for Me?", replies: 8, lastUpdated: "4 hours ago", }, ]; const [threads, setThreads] = useState(initialThreads); const [newThreadTitle, setNewThreadTitle] = useState(""); const [newThreadContent, setNewThreadContent] = useState(""); // Product cards mock data const products = [ { id: 1, name: "Sativa Blend", price: "$45", image: "https://picsum.photos/id/10/300/300" }, { id: 2, name: "Indica Kush", price: "$50", image: "https://picsum.photos/id/20/300/300" }, { id: 3, name: "CBD Oil Premium", price: "$60", image: "https://picsum.photos/id/30/300/300" }, { id: 4, name: "Hybrid Mix", price: "$40", image: "https://picsum.photos/id/40/300/300" }, ]; // Handle login const handleLogin = (e) => { e.preventDefault(); const user = e.target.username.value; if (user.trim() !== "") { setIsLoggedIn(true); setUsername(user); } }; // Handle new thread submission const handleCreateThread = (e) => { e.preventDefault(); if (!newThreadTitle || !newThreadContent) return; const newThread = { id: threads.length + 1, author: username, title: newThreadTitle, replies: 0, lastUpdated: "Just now", }; setThreads([newThread, ...threads]); setNewThreadTitle(""); setNewThreadContent(""); }; // Navigation menu const navItems = [ { name: "Home", page: "home", icon: }, { name: "Store", page: "store", icon: }, { name: "About Us", page: "about", icon: }, { name: "Gallery", page: "gallery", icon: }, { name: "Forum", page: "forum", icon: }, { name: "Research & Studies", page: "research", icon: }, ]; // Render pages const renderPage = () => { switch (currentPage) { case "home": return (
Banner

Welcome to JolliGreen

Discover premium cannabis experiences curated with elegance and care.

); case "store": if (!isLoggedIn) return ; return (

Our Premium Products

{products.map((product) => (
{product.name}

{product.name}

{product.price}

))}
); case "about": return (

About JolliGreen

At JolliGreen, we believe in elevating the cannabis experience through quality, education, and refinement. Our mission is to provide discerning consumers with premium products rooted in tradition and backed by science.

We are committed to sustainability, ethical sourcing, and fostering a community that values mindful consumption and respect for nature’s gifts.

); case "gallery": return (

JolliGreen Gallery

{[...Array(6)].map((_, i) => (
{`Gallery
))}
); case "forum": if (!isLoggedIn) return ; return (

Community Forum

Start a New Discussion

setNewThreadTitle(e.target.value)} required className="w-full p-2 border border-gray-300 rounded mb-4" />
{threads.map((thread) => (

{thread.title}

By {thread.author}

{thread.replies} repliesLast updated: {thread.lastUpdated}
))}
); case "research": return (

Scientific Research & Studies

{studies.map((study, index) => (

{study.title}

{study.summary}

{study.source}

Read full study →
))}
); default: return <>; } }; const RedirectToLogin = () => (

Authentication Required

Please log in to access this section.

); return (
{/* Header */}

JolliGreen

{/* Mobile Nav */}
{navItems.map((item) => ( ))}
{/* Main Content */}
{currentPage === "login" ? (

Member Login

Don't have an account?{" "}

) : ( renderPage() )}
{/* Footer */}
); }; export default App; ```