Member Login
Don't have an account?{" "}
```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: Discover premium cannabis experiences curated with elegance and care. {product.price}
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.
By {thread.author} Please log in to access this section.
Welcome to JolliGreen
Our Premium Products
{product.name}
About JolliGreen
JolliGreen Gallery
Community Forum
{thread.title}
Scientific Research & Studies
Authentication Required
Don't have an account?{" "}