-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
KaloudasDev edited this page Feb 19, 2026
·
8 revisions
Welcome to the official wiki for the KaloudasDev LinkHub project - a modern, minimalist link hub website with discord integration. This documentation provides information about the project's architecture, features, and maintenance procedures.
KaloudasDev LinkHub is a professional portfolio link hub designed to showcase developer profiles and social connections through a modern, responsive interface. Real-time Discord presence tracking with live activity and animated backgrounds.
- Centralized social media and portfolio link management
- Real-time Discord status showcasing
- Professional online presence establishment
- Cross-platform compatibility assurance
- Performance-optimized user experience
| Feature | Description |
|---|---|
| Live Status Tracking | Online, Idle, DND, Offline with colored indicators |
| Spotify Integration | Now playing display with album artwork |
| Game Activity | Real-time game presence with custom art |
| Auto-Refresh | Updates every 5 seconds via Lanyard API |
| Feature | Description |
|---|---|
| Animated Gradient Orbs | Three floating orbs (neon yellow, blurple, soft red) with 20s animations |
| Glass Morphism | Backdrop blur (12px) on cards with semi-transparent backgrounds |
| Dark Theme | Deep navy (#0a0f1e) with neon yellow accents (#dbf602) |
| Smooth Animations | Hover effects, scale transforms, and transitions |
- Next.js 14 framework with static export
- CSS Variables for easy theming
- Font Awesome 6 icon library
- Google Fonts (Inter, JetBrains Mono)
- Service Worker ready architecture
- Mobile-first responsive approach
- Cross-browser compatibility
Frontend:
├── Next.js 14 # React framework
├── CSS3 # Styling with CSS variables
├── JavaScript (ES6+) # Client-side logic
└── Lanyard REST API # Discord presence data
External Resources:
├── Font Awesome 6 # Icons
├── Google Fonts # Typography
└── Vercel # Deployment (optional)
kaloudasdev-links/
├── app/
│ ├── components/
│ │ ├── Footer.js # Social links footer
│ │ └── Navbar.js # Minimal navbar
│ ├── globals.css # Global styles & theming
│ ├── layout.js # Root layout with metadata
│ └── page.js # Main page with Discord logic
├── .github/
│ └── workflows/
│ └── deploy.yml # GitHub Pages deployment
├── public/
│ └── assets/ # Images and icons
├── next.config.mjs # Next.js configuration
├── package.json # Dependencies
├── README.md # Project overview
├── CHANGELOG.md # Version history
├── LICENSE # AGPL-3.0 license
└── SECURITY.md # Security policy
- Node.js 18+ installed
- Git installed
- Discord User ID (for presence tracking)
- GitHub account (for deployment)
# Clone the repository
git clone https://github.com/KaloudasDev/kaloudasdev-links.git
# Navigate to project
cd kaloudasdev-links
# Install dependencies
npm install
# Start development server
npm run devThe site will be available at http://localhost:3000
# Create production build
npm run build
# The static files will be in the 'out' folder// In app/page.js
const DISCORD_USER_ID = 'YOUR_DISCORD_USER_ID'; // Get from Discord/* In app/globals.css - CSS Variables */
:root {
--primary-dark: #0a0f1e; /* Main background */
--accent-primary: #dbf602; /* Accent color */
--discord-online: #43b581; /* Online status */
--discord-idle: #faa61a; /* Idle status */
--discord-dnd: #f04747; /* Do Not Disturb */
--discord-offline: #747f8d; /* Offline status */
}// In app/page.js - Update href attributes
<a href="YOUR_KOFI_URL" ...>Support My Work</a>
<a href="YOUR_DISCORD_URL" ...>Connect On Discord</a>
<a href="YOUR_GITHUB_URL" ...>View GitHub Projects</a>/* In app/globals.css - Customize orb colors */
.hub-orb-1 {
background: radial-gradient(circle at 30% 30%, #YOUR_COLOR, transparent 70%);
}- Content Security Policy headers
- XSS protection mechanisms
- Clickjacking prevention
- No-opener, no-referrer external links
- Secure cookie configuration
- Input validation for API calls
- All external links open in new tabs with
rel="noopener noreferrer" - Discord API calls are read-only (no sensitive data exposure)
- Environment variables not required
- Regular dependency updates
- Security vulnerability reporting process
| Device | Screen Size | Optimizations |
|---|---|---|
| Desktop | 1200px+ | Full layout, larger cards |
| Tablet | 768px - 1199px | Adjusted spacing |
| Mobile Large | 480px - 767px | Stacked layout |
| Mobile Small | 320px - 479px | Touch-friendly sizing |
- Touch targets minimum 44x44px
- Optimized font sizes (16px minimum)
- Simplified animations for performance
- Single-column layout
- Reduced backdrop blur on low-end devices
// Endpoint: https://api.lanyard.rest/v1/users/{DISCORD_USER_ID}
// Response includes:
- discord_status: "online" | "idle" | "dnd" | "offline"
- activities: Array of current activities
- spotify: Currently playing track (if any)- Client fetches Discord status every 5 seconds
- API returns JSON with presence data
- Component updates UI based on status
- Activity images are processed and displayed
- Error handling with fallback states
- Static HTML export via
output: 'export' - Image optimization with next/image
- Font loading optimization
- Tree shaking for unused code
- Minimal re-renders with React hooks
- 5-second API refresh interval (balanced)
- CSS animations using transform/opacity
- Lazy loading for off-screen images
| Issue | Solution |
|---|---|
| Discord status not showing | Verify USER_ID in page.js |
| Images not loading | Check domains in next.config.mjs |
| Build fails | Update Node.js to v18+ |
| Mobile layout broken | Test at different breakpoints |
| API rate limiting | Increase refresh interval |
- Open browser console (F12)
- Check for network errors (Discord API)
- Verify environment configuration
- Test in incognito mode
- Clear browser cache
- Use semantic HTML5 elements
- Follow CSS BEM naming convention
- Implement React hooks correctly
- Add error boundaries for API calls
- Comment complex logic
- Optimize images before adding
- Minimize API calls
- Use CSS instead of JS animations
- Lazy load non-critical resources
- Monitor bundle size
- Semantic versioning (MAJOR.MINOR.PATCH)
- Detailed CHANGELOG.md maintenance
- Feature branches for development
- Tagged releases with notes
| Frequency | Task |
|---|---|
| Monthly | Dependency updates |
| Quarterly | Security audits |
| Bi-annually | Performance review |
| Annually | Major feature updates |
- GitHub Actions status checks
- Discord API availability
- Build success rate
- Page load times
- User feedback
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
- Accessibility improvements
- Performance optimizations
- New features
- Documentation updates
- Bug fixes