- Implemented ActivityFeed component to display real-time user activity including coding, music, and chat interactions. - Added GooFilter and BackgroundBlobs components for enhanced visual effects. - Updated layout to include new components and ensure proper stacking context. - Enhanced Tailwind CSS configuration with new color and font settings. - Created API route to mock activity data from n8n. - Refactored main page structure to streamline component rendering.
20 lines
489 B
TypeScript
20 lines
489 B
TypeScript
import { NextResponse } from 'next/server';
|
|
|
|
export async function GET() {
|
|
// Mock data - in real integration this would fetch from n8n webhook or database
|
|
return NextResponse.json({
|
|
activity: {
|
|
type: 'coding', // coding, listening, watching
|
|
details: 'Portfolio Website',
|
|
timestamp: new Date().toISOString(),
|
|
},
|
|
music: {
|
|
isPlaying: true,
|
|
track: 'Midnight City',
|
|
artist: 'M83',
|
|
platform: 'spotify'
|
|
},
|
|
watching: null
|
|
});
|
|
}
|