Simple-FAQ-landing-page-with-side-admin Tailwind Templates

Simple Faq Landing Page With Side Admin

A modern, responsive FAQ landing page system built with React, TypeScript, and Tailwind CSS. This system provides a beautiful interface for managing and displaying frequently asked questions, complete with an admin login system and AI-powered question answering capabilities.

Simple FAQ / Landing page System

A modern, responsive FAQ system built with React, TypeScript, and Tailwind CSS. This application provides a beautiful interface for managing and displaying frequently asked questions about Sakeenah Arabic Institute's programs and services, complete with an admin panel and AI-powered question answering capabilities using Google's Gemini API.

🌟 Features

  • šŸŽØ Beautiful, responsive UI with Tailwind CSS
  • šŸŒ“ Dark/Light mode toggle
  • šŸ” Admin panel for FAQ management
  • šŸ¤– AI-powered question answering with Gemini API
  • šŸ” Real-time search functionality
  • šŸ“± Mobile-friendly design
  • ⚔ Fast and optimized performance
  • šŸ›  Easy customization through environment variables

šŸš€ Demo

Check out the live demo: Sakeenah Arabic Institute FAQ System

šŸ“‹ Prerequisites

Before you begin, ensure you have:

  • Node.js 18 or higher
  • npm or yarn package manager
  • A Google Cloud account for Gemini API access

šŸ›  Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/sakeenah-faq-system.git
    cd sakeenah-faq-system
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file in the root directory:

    VITE_GEMINI_MODEL=gemini-pro
    VITE_GEMINI_KEY=your_gemini_api_key
    VITE_INSTITUTION_NAME="Site Name"
    VITE_INSTITUTION_URL="https://example.com"
    
  4. Start the development server:

    npm run dev
    

šŸ”§ Environment Variables

Variable Description Required
VITE_GEMINI_MODEL Gemini AI model for Q&A Yes
VITE_GEMINI_KEY Your Gemini API key Yes
VITE_INSTITUTION_NAME Institution name Yes
VITE_INSTITUTION_URL Institution website URL Yes

šŸ“ Project Structure

ā”œā”€ā”€ src/
│   ā”œā”€ā”€ components/    # Reusable UI components
│   ā”œā”€ā”€ contexts/      # React context providers
│   ā”œā”€ā”€ pages/         # Page components
│   ā”œā”€ā”€ types/         # TypeScript definitions
│   └── db.json       # FAQ data store
ā”œā”€ā”€ public/           # Static assets
└── ...

šŸ‘Øā€šŸ’¼ Admin Access

Access the admin panel at /setup:

āš ļø Important: Change these credentials before deploying to production!

šŸ“ Content Management

The system uses a static JSON file (src/db.json) for content storage, making it:

  • Simple to maintain
  • Version control friendly
  • Easy to deploy
  • Database-free

✨ Customization

Theme

Modify tailwind.config.js to customize:

  • Colors
  • Typography
  • Spacing
  • Other design tokens

Content Structure

The db.json schema:

{
  "faqs": [
    {
      "id": "string",
      "question": "string",
      "answer": "string",
      "category": "string",
      "relatedIds": ["string"],
      "createdAt": "string",
      "updatedAt": "string"
    }
  ]
}

šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

šŸ¤ Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

šŸ™ Acknowledgments

Built with:

  • React + TypeScript
  • Tailwind CSS
  • Lucide React icons
  • Google Gemini API
  • Framer Motion
  • React Router DOM
  • React Markdown

šŸ“« Support

For questions or support:

Top categories

Loading Svelte Themes