Skip to content

Pencraft lets you write, read, and summarize blog posts effortlessly. Provides markdown support, AI-powered summaries, and a clean, responsive design.

Notifications You must be signed in to change notification settings

mounicasruthi/pencraft

Repository files navigation

Pencraft Frontend

The frontend of Pencraft is built with Next.js and features a responsive, user-friendly UI for creating, viewing, and summarizing blog posts. This client-side application communicates with the backend for authentication, post management, and AI summarization.


Features

  • Dynamic Post Routing: Each post has its own dedicated route using Next.js's dynamic routing.
  • Markdown Support: Create posts using a markdown-friendly editor with a live preview.
  • Generative AI Summarization: Summarize articles effortlessly using the Gemini API.
  • Dark and Light Mode: Toggle between themes seamlessly for an optimal reading experience.
  • Responsive Design: Optimized for both desktop and mobile devices.
  • Post Discovery:
    • View all posts written by all authors.
    • Search posts using a powerful search bar.
    • Filter posts by author.
  • User Profiles:
    • View and manage your own posts from your profile page.
    • Publish new posts with ease using a markdown editor.

image

image

image

image

image

image

image

image


Technologies Used

  • Framework: Next.js
  • Language: TypeScript
  • Styling: TailwindCSS
  • Markdown Rendering: react-showdown and showdown
  • UI Components: Custom-built with reusable components.
  • API Communication: Axios and REST.

Setup Instructions

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/mounicasruthi/pencraft-frontend.git
    cd pencraft-frontend
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev
  4. Open the app at http://localhost:3000.


Key Functionalities

  • Advanced Markdown Editor

    • Real-time markdown preview using react-mde and showdown.
    • User-friendly formatting toolbar for easy editing.
  • AI-Powered Article Summarization

    • Generate concise summaries of posts via integration with Gemini API.
    • Summaries are fetched dynamically and displayed alongside post content.
  • Dark Mode

    • Full dark mode support using TailwindCSS.
    • Automatic theme detection based on system settings.
  • Post Search and Filter

    • Search posts by keywords or filter posts by author.
  • Responsive Design

    • Optimized for both desktop and mobile devices.

Future Enhancements

  • Post Editing and Deletion:
    Enable users to edit and delete their posts directly from their profile or post page.

  • Comments and Likes:
    Allow readers to engage with posts through comments and likes.

  • Tag System:
    Introduce tagging for improved content categorization and discovery.

  • Localization:
    Add multi-language support for a global audience.

  • Activity Metrics:
    Display user statistics like the number of posts, comments, or likes.

  • Social Media Integration:
    Add sharing options for platforms like Twitter, Facebook, and LinkedIn.


About

Pencraft lets you write, read, and summarize blog posts effortlessly. Provides markdown support, AI-powered summaries, and a clean, responsive design.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published