This is the landing page for Karpor, a Kubernetes Explorer focusing on Search, Insight, and AI capabilities. Built with Next.js and Tailwind CSS, it provides a modern and responsive user interface to showcase Karpor's features.
-
Setup
# Clone the repository git clone https://github.com/KusionStack/karpor-landing-page.git cd karpor-landing-page # Install dependencies npm install
-
Configuration
# Create .env.local and add your GA ID echo "NEXT_PUBLIC_GA_ID=G-XXXXXXXXXX" > .env.local
-
Development
# Start development server npm run dev -
Production
# Build and start npm run build npm start -
Deployment (Vercel)
- Push to GitHub
- Import to Vercel
- Add
NEXT_PUBLIC_GA_IDin project settings
- 🎨 Modern UI/UX: Clean and intuitive interface with smooth transitions
- 📱 Responsive Design: Optimized for all devices from mobile to desktop
- ⚡ Performance: Fast loading with optimized assets and code splitting
- 📊 Analytics: Built-in Google Analytics support
Create a .env.local file in the root directory:
NEXT_PUBLIC_GA_ID=G-XXXXXXXXXX # Your Google Analytics Measurement IDFor production deployment on Vercel:
- Go to Project Settings
- Navigate to Environment Variables
- Add
NEXT_PUBLIC_GA_IDwith your GA Measurement ID - Select the environments where it should be available (Production/Preview/Development)
The following events are tracked in Google Analytics:
- Category:
Navigation- Logo Click (
label: 'Logo') - Navigation Links Click (
label: [link name]) - Get Started Button Click (
label: 'Get Started')
- Logo Click (
- Category:
Hero- GitHub Button Click (
label: 'GitHub Button') - Live Demo Button Click (
label: 'Live Demo Button') - Product Hunt Button Click (
label: 'Product Hunt Button')
- GitHub Button Click (
- Category:
CTA- Copy Command Click (
label: 'Copy Command') - Advanced Installation Link Click (
label: 'Advanced Installation')
- Copy Command Click (
All events include:
action: 'click'category: ['Navigation', 'Hero', 'CTA']label: [specific button/link name]value: 1
You can view these events in Google Analytics under:
- Behavior > Events > Overview
- Behavior > Events > Top Events
- Next.js 14
- React 18
- Tailwind CSS
- TypeScript
- Google Analytics 4
- ⭐ Star us on GitHub
- 🏆 Support us on Product Hunt
Apache License 2.0