Sidebar closed by default, from community to feeds on sidebar

This commit is contained in:
austinkelsay 2024-10-17 16:24:48 -05:00
parent 5a1441bd91
commit f5a64521d9
4 changed files with 7 additions and 7 deletions

View File

@ -125,7 +125,7 @@ const InteractivePromotionalCarousel = () => {
);
case "COMMUNITY":
return (
<GenericButton onClick={() => router.push('/feed?channel=global')} icon={<i className="pi pi-users pr-2 pb-1" />} label="Open Community Feed" className="w-fit py-2 font-semibold" size="small" outlined />
<GenericButton onClick={() => router.push('/feed?channel=global')} icon={<i className="pi pi-users pr-2 pb-1" />} label="Open Community Feeds" className="w-fit py-2 font-semibold" size="small" outlined />
);
case "LIGHTNING / NOSTR":
return (
@ -170,7 +170,7 @@ const InteractivePromotionalCarousel = () => {
);
case "COMMUNITY":
return (
<GenericButton onClick={() => router.push('/feed?channel=global')} icon={<i className="pi pi-users pr-2 pb-1" />} label="Open Community Feed" className="py-2 font-semibold" size="small" outlined />
<GenericButton onClick={() => router.push('/feed?channel=global')} icon={<i className="pi pi-users pr-2 pb-1" />} label="Open Community Feeds" className="py-2 font-semibold" size="small" outlined />
);
case "LIGHTNING / NOSTR":
return (

View File

@ -74,7 +74,7 @@ const MessageCarousel = ({ copyToClipboard }) => {
},
{
title: "PlebDevs 🤝👨‍💻🤝👩‍💻🤝🧑‍💻🤝",
description: "Plebdevs is open source software and is still in early development. If you have any questions drop an issue on the Github repo, or reach out to me in the Community tab.",
description: "Plebdevs is open source software and is still in early development. If you have any questions drop an issue on the Github repo, or reach out to me in the Community feed.",
showGithub: true,
showX: true,
showNostr: true,

View File

@ -11,7 +11,7 @@ import styles from "./sidebar.module.css";
import { Divider } from 'primereact/divider';
const Sidebar = ({ course = false }) => {
const [isExpanded, setIsExpanded] = useState(true);
const [isExpanded, setIsExpanded] = useState(false);
const { isAdmin } = useIsAdmin();
const [lessons, setLessons] = useState([]);
const router = useRouter();
@ -162,7 +162,7 @@ const Sidebar = ({ course = false }) => {
content: styles['p-accordion-content'],
header: 'text-lg'
}}
header={"Community"}>
header={"Feeds"}>
<div onClick={() => router.push('/feed?channel=global')} className={`w-full cursor-pointer py-2 my-2 hover:bg-gray-700 rounded-lg ${isActive('/feed?channel=global') ? 'bg-gray-700' : ''}`}>
<p className="pl-3 rounded-md font-bold text-lg"><i className="pi pi-hashtag text-sm pr-1"></i> global</p>
</div>

View File

@ -44,7 +44,7 @@ const AboutPage = () => {
<ul className="list-disc list-inside ml-2 mt-2 space-y-2">
<li><span className="text-lg font-semibold">Nostr:</span> Content is published to Nostr and pulled from Nostr relays. A database is used for storing metadata about events but the actual content only exists on nostr relays.</li>
<li><span className="text-lg font-semibold">Zaps:</span> Zaps are currently initated through Zapper - <a href="https://zapper.nostrapps.org" target="_blank" rel="noopener noreferrer" className="text-blue-400">https://zapper.nostrapps.org</a> <br /> <span className="pl-4">* Zaps are pulled from Nostr using our own NDK integration.</span></li>
<li><span className="text-lg font-semibold">Comments:</span> For comments we are leveraging ZapThreads - <a href="https://zapthreads.dev/" target="_blank" rel="noopener noreferrer" className="text-blue-400">https://zapthreads.com</a> <br /> <span className="pl-4">* Comments are enabled on all content but for Community they are only enabled on the nostr feed.</span></li>
<li><span className="text-lg font-semibold">Comments:</span> For comments we are leveraging ZapThreads - <a href="https://zapthreads.dev/" target="_blank" rel="noopener noreferrer" className="text-blue-400">https://zapthreads.com</a> <br /> <span className="pl-4">* Comments are enabled on all content but for Community feeds they are only enabled on the nostr feed.</span></li>
</ul>
</div>
</div>
@ -87,7 +87,7 @@ const AboutPage = () => {
<div className="flex items-start">
<i className="pi pi-users text-2xl text-primary mr-2 text-purple-400 mt-1"></i>
<div>
<h3 className="text-lg font-semibold">Community:</h3>
<h3 className="text-lg font-semibold">:</h3>
<p className='text-lg'>All of the current PlebDevs Community channels.</p>
<ul className="list-disc list-inside ml-2 mt-2 space-y-2">
<li><span className="text-lg font-semibold">Nostr:</span> Public plebdevs nostr chat (Read / Write) <br /> <span className="pl-4">* this is the only feed that you can write to from the plebdevs platform currently.</span></li>