Skip to content

Enhanced the UI for community page #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 6, 2025
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
27 changes: 14 additions & 13 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,19 +276,20 @@ const config: Config = {
disableInDev: false,
},
],
[
"@docusaurus/plugin-content-docs",
{
id: "community",
path: "community",
routeBasePath: "community",
sidebarPath: require.resolve("./sidebarsCommunity.js"),
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
],
// Commented out to use TSX-based community page instead
// [
// "@docusaurus/plugin-content-docs",
// {
// id: "community",
// path: "community",
// routeBasePath: "community",
// sidebarPath: require.resolve("./sidebarsCommunity.js"),
// remarkPlugins: [remarkMath],
// rehypePlugins: [rehypeKatex],
// showLastUpdateAuthor: true,
// showLastUpdateTime: true,
// },
// ],
],
// scripts: [],
};
Expand Down
48 changes: 48 additions & 0 deletions src/pages/community/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Community Page Implementation

## Overview
This directory contains the new TSX-based community page that replaces the previous markdown-based implementation.

## Files
- `index.tsx` - Main React component for the community page
- `community.css` - Styling for the community page
- `README.md` - This documentation file

## Features
- **Interactive Navigation**: Sidebar navigation with smooth animations
- **Modern Design**: Gradient backgrounds, hover effects, and professional styling
- **Responsive Layout**: Works on desktop, tablet, and mobile devices
- **Smooth Animations**: Framer Motion animations for enhanced user experience
- **Accessible**: Proper ARIA labels and keyboard navigation support

## Design Elements
- **Color Scheme**: Blue/purple gradient theme matching the design requirements
- **Typography**: Inter font family with proper hierarchy
- **Grid System**: 8px grid system for consistent spacing
- **Icons**: Emoji-based icons for visual appeal
- **Hover Effects**: Interactive elements with smooth transitions

## Content Sections
1. **Code** - For developers (purple theme)
2. **Design** - For designers (pink theme)
3. **Documentation** - For writers/educators (orange theme)
4. **Community** - For community members (green theme)
5. **Get Started** - Getting started guide (blue theme)
6. **Thank You** - Appreciation section (green theme)

## Navigation
The page is accessible at `/community` and is linked from the main navigation under "More > Community".

## Configuration Changes
The original docs-based community plugin has been commented out in `docusaurus.config.ts` to avoid routing conflicts.

## Development
To modify the community page:
1. Edit `index.tsx` for functionality changes
2. Edit `community.css` for styling changes
3. Test changes by running `npm run start`

## Browser Support
- Modern browsers with CSS Grid and Flexbox support
- Responsive design for mobile devices
- Smooth animations with fallbacks
Loading
Loading