A beautiful, customizable link tree application built for GitHub Pages with premium features, light/dark mode, and easy configuration.
- Light & Dark Mode - Automatic theme switching with smooth transitions
- Gradient Backgrounds - Beautiful animated gradients that change with themes
- Hover Effects - Smooth animations and interactive elements
- Responsive Design - Perfect on desktop, tablet, and mobile devices
- Custom Animations - Floating particles and smooth transitions
- Featured Links - Highlight your most important links with special styling
- Regular Links - Standard link buttons with icons and descriptions
- Social Media Icons - Quick access social media buttons
- Email Integration - Direct mailto links for easy contact
- Simple Configuration - Edit one
config.jsfile to customize everything - No Coding Required - User-friendly configuration with clear examples
- Instant Updates - Changes reflect immediately when you refresh the page
- Fork this repository to your GitHub account, or
- Download the files to your computer
- Go to your repository settings
- Scroll down to "Pages" section
- Select "Deploy from a branch"
- Choose "main" branch and "/ (root)" folder
- Click "Save"
Edit the config.js file with your information:
// Your basic information
name: "Your Name Here",
bio: "Welcome to my link tree! π³",
location: "Your City, Country",
profileImage: "https://via.placeholder.com/150", // Replace with your photo URL// Featured links (highlighted with special styling)
featuredLinks: [
{
title: "My Website",
description: "Check out my personal website",
url: "https://yourwebsite.com/",
icon: "π"
}
],
// Regular links
links: [
{
title: "Instagram",
description: "Follow me for daily updates",
url: "https://instagram.com/yourusername",
icon: "πΈ"
}
]socialMedia: {
instagram: "https://instagram.com/yourusername",
twitter: "https://twitter.com/yourusername",
linkedin: "https://linkedin.com/in/yourusername",
github: "https://github.com/yourusername",
youtube: "https://youtube.com/@yourusername",
// ... add more as needed
}// Basic profile information
name: "Your Display Name", // Your name or brand
bio: "Your bio text here", // Short description
location: "City, Country", // Your location (optional)
profileImage: "image-url-here", // URL to your profile pictureThere are two types of links you can add:
These appear with special gradient styling and are perfect for your most important links:
featuredLinks: [
{
title: "Link Title",
description: "Brief description",
url: "https://your-link.com",
icon: "π" // Any emoji or leave empty
}
]Standard link buttons for all your other links:
links: [
{
title: "Platform Name",
description: "What people will find here",
url: "https://platform.com/yourprofile",
icon: "π±"
}
]Quick-access social media buttons that appear below your main links:
socialMedia: {
instagram: "https://instagram.com/yourusername",
twitter: "https://twitter.com/yourusername",
linkedin: "https://linkedin.com/in/yourusername",
github: "https://github.com/yourusername",
youtube: "https://youtube.com/@yourusername",
tiktok: "https://tiktok.com/@yourusername",
facebook: "https://facebook.com/yourusername",
discord: "https://discord.gg/yourinvite",
twitch: "https://twitch.tv/yourusername",
spotify: "https://open.spotify.com/user/yourusername"
}theme: {
// Light mode colors
light: {
background: "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
cardBackground: "rgba(255, 255, 255, 0.95)",
textColor: "#333333"
},
// Dark mode colors
dark: {
background: "linear-gradient(135deg, #2c3e50 0%, #3498db 100%)",
cardBackground: "rgba(255, 255, 255, 0.1)",
textColor: "#ffffff"
}
}Track clicks on your links:
analytics: {
enabled: true,
googleAnalyticsId: "GA_MEASUREMENT_ID" // Optional: Add your GA4 ID
}- Use a square image (1:1 ratio) for best results
- Recommended size: 300x300 pixels or larger
- Upload to a service like Imgur or use GitHub's raw file URLs
- Use any emoji as icons (π, π±, πΌ, etc.)
- Keep icons consistent for a professional look
- You can also leave the icon field empty:
icon: ""
- The app automatically switches between light and dark modes
- Users can toggle themes with the sun/moon button
- Customize colors in the
themesection of config.js
- Put your most important links in
featuredLinks - Use
linksfor secondary content - Keep descriptions short and engaging
- Order links by priority (most important first)
Replace the default gradients with your own:
theme: {
light: {
background: "url('your-image.jpg')", // Custom image
// or
background: "#your-color", // Solid color
// or
background: "linear-gradient(45deg, #color1, #color2)" // Custom gradient
}
}Enable analytics to see which links are clicked most:
analytics: {
enabled: true,
googleAnalyticsId: "G-XXXXXXXXXX" // Your Google Analytics 4 ID
}Add or remove social platforms by editing the socialMedia object. The app will automatically show/hide icons based on what URLs you provide.
The link tree is fully responsive and optimized for:
- π± Mobile phones (portrait and landscape)
- π± Tablets (iPad, Android tablets)
- π» Desktop computers
- π₯οΈ Large screens and monitors
Once you enable GitHub Pages:
- Any changes to
config.jswill update your live site - Changes may take 1-2 minutes to appear
- Your site will be available at:
https://yourusername.github.io/repository-name
To use your own domain:
- Add a
CNAMEfile to your repository with your domain name - Configure your domain's DNS to point to GitHub Pages
- Enable "Enforce HTTPS" in repository settings
- Keep it focused - Only include your most important links
- Update regularly - Remove outdated links and add new ones
- Use clear descriptions - Help visitors understand what they'll find
- Prioritize mobile - Most visitors will view on mobile devices
- Optimize images - Use compressed images for faster loading
- Test regularly - Check your links work and load quickly
- Monitor analytics - See which links perform best
- Consistent branding - Use similar colors/style to your other platforms
- Clear call-to-actions - Use action words in link descriptions
- Regular maintenance - Update links and information monthly
Links not working?
- Check that URLs include
https://orhttp:// - Test links in a new browser tab before adding them
Images not showing?
- Ensure image URLs are publicly accessible
- Use direct links to images (ending in .jpg, .png, etc.)
- Try uploading to Imgur for reliable hosting
Changes not appearing?
- Wait 1-2 minutes for GitHub Pages to update
- Clear your browser cache (Ctrl+F5 or Cmd+Shift+R)
- Check that you saved the
config.jsfile
Site not loading?
- Verify GitHub Pages is enabled in repository settings
- Check that the repository is public (or you have GitHub Pro for private pages)
- Ensure the main branch contains all files
- Check the GitHub Issues for common problems
- Create a new issue if you need help
- Include your
config.jsfile (remove personal URLs) when asking for help
- HTML5 - Semantic structure
- CSS3 - Modern styling with animations
- Vanilla JavaScript - No frameworks, fast loading
- GitHub Pages - Free hosting
- OpenHands π - AI-powered development
Built with β€οΈ using OpenHands π
Transform your online presence with a beautiful, professional link tree that represents you perfectly.