Files
imgur-clone/seed/data.js
T

141 lines
5.7 KiB
JavaScript

// Seed data for Picta — 12 sample posts with placeholder images
// Using picsum.photos for realistic placeholder images
const posts = [
{
id: 'a1b2c3d4',
title: 'Sunset over the Pacific Ocean 🌅',
url: 'https://picsum.photos/seed/sunset/800/600',
upvotes: 12453,
views: 89234,
tags: ['nature', 'sunset', 'ocean'],
createdAt: new Date(Date.now() - 3600000).toISOString(),
author: 'NatureLover42'
},
{
id: 'e5f6g7h8',
title: 'My cat discovered the laser pointer',
url: 'https://picsum.photos/seed/cat1/600/800',
upvotes: 8921,
views: 45123,
tags: ['cats', 'funny', 'pets'],
createdAt: new Date(Date.now() - 7200000).toISOString(),
author: 'CatWhisperer'
},
{
id: 'i9j0k1l2',
title: 'Just finished building this mechanical keyboard',
url: 'https://picsum.photos/seed/keyboard/800/500',
upvotes: 5672,
views: 23456,
tags: ['tech', 'keyboard', 'DIY'],
createdAt: new Date(Date.now() - 10800000).toISOString(),
author: 'MechKeyBuilder'
},
{
id: 'm3n4o5p6',
title: 'Northern Lights in Iceland ✨',
url: 'https://picsum.photos/seed/aurora/800/500',
upvotes: 15234,
views: 67890,
tags: ['nature', 'aurora', 'iceland', 'photography'],
createdAt: new Date(Date.now() - 14400000).toISOString(),
author: 'AuroraHunter'
},
{
id: 'q7r8s9t0',
title: 'This pancake stack is insane',
url: 'https://picsum.photos/seed/pancakes/600/600',
upvotes: 3456,
views: 12345,
tags: ['food', 'pancakes', 'breakfast'],
createdAt: new Date(Date.now() - 18000000).toISOString(),
author: 'FoodieLife'
},
{
id: 'u1v2w3x4',
title: 'My workspace setup after 3 years of upgrades',
url: 'https://picsum.photos/seed/desk/800/600',
upvotes: 7890,
views: 34567,
tags: ['setup', 'workspace', 'tech'],
createdAt: new Date(Date.now() - 21600000).toISOString(),
author: 'DeskSetupPro'
},
{
id: 'y5z6a7b8',
title: 'Found this abandoned house in the woods',
url: 'https://picsum.photos/seed/abandoned/800/700',
upvotes: 4567,
views: 21098,
tags: ['urban exploration', 'abandoned', 'creepy'],
createdAt: new Date(Date.now() - 25200000).toISOString(),
author: 'UrbanExplorer99'
},
{
id: 'c9d0e1f2',
title: 'Golden Retriever puppy playing in the snow',
url: 'https://picsum.photos/seed/puppy/700/500',
upvotes: 11234,
views: 56789,
tags: ['dogs', 'puppy', 'cute', 'snow'],
createdAt: new Date(Date.now() - 28800000).toISOString(),
author: 'DoggoLover'
},
{
id: 'g3h4i5j6',
title: 'Hand-painted watercolor landscape',
url: 'https://picsum.photos/seed/painting/800/600',
upvotes: 2345,
views: 9876,
tags: ['art', 'watercolor', 'landscape'],
createdAt: new Date(Date.now() - 32400000).toISOString(),
author: 'ArtBySarah'
},
{
id: 'k7l8m9n0',
title: 'City skyline at night from my apartment',
url: 'https://picsum.photos/seed/city/800/500',
upvotes: 6789,
views: 28901,
tags: ['city', 'night', 'photography', 'skyline'],
createdAt: new Date(Date.now() - 36000000).toISOString(),
author: 'CityShooter'
},
{
id: 'o1p2q3r4',
title: 'Homemade sourdough bread - first try!',
url: 'https://picsum.photos/seed/bread/600/700',
upvotes: 4321,
views: 18765,
tags: ['food', 'bread', 'baking', 'sourdough'],
createdAt: new Date(Date.now() - 39600000).toISOString(),
author: 'BakerNewbie'
},
{
id: 's5t6u7v8',
title: 'Road trip through the Grand Canyon 🏜️',
url: 'https://picsum.photos/seed/canyon/800/500',
upvotes: 9012,
views: 43210,
tags: ['travel', 'grand canyon', 'road trip', 'nature'],
createdAt: new Date(Date.now() - 43200000).toISOString(),
author: 'RoadTripper'
}
];
const comments = [
{ id: 'c1', postId: 'a1b2c3d4', text: 'Absolutely breathtaking! Where was this taken?', author: 'TravelBug', parentId: null, timestamp: new Date(Date.now() - 3000000).toISOString() },
{ id: 'c2', postId: 'a1b2c3d4', text: 'California coast, near Big Sur!', author: 'NatureLover42', parentId: 'c1', timestamp: new Date(Date.now() - 2500000).toISOString() },
{ id: 'c3', postId: 'e5f6g7h8', text: 'This is the funniest thing I\'ve seen all week 😂', author: 'LaughFactory', parentId: null, timestamp: new Date(Date.now() - 6000000).toISOString() },
{ id: 'c4', postId: 'm3n4o5p6', text: 'Iceland is on my bucket list now. Incredible shot!', author: 'Wanderlust', parentId: null, timestamp: new Date(Date.now() - 12000000).toISOString() },
{ id: 'c5', postId: 'm3n4o5p6', text: 'Thanks! It was magical being there in person.', author: 'AuroraHunter', parentId: 'c4', timestamp: new Date(Date.now() - 11000000).toISOString() },
{ id: 'c6', postId: 'c9d0e1f2', text: 'I can\'t handle how cute this is! 🥺', author: 'PuppyFan', parentId: null, timestamp: new Date(Date.now() - 27000000).toISOString() },
{ id: 'c7', postId: 'i9j0k1l2', text: 'What switch group did you go with?', author: 'SwitchHead', parentId: null, timestamp: new Date(Date.now() - 9000000).toISOString() },
{ id: 'c8', postId: 'k7l8m9n0', text: 'Which city is this? The skyline is gorgeous.', author: 'ArchitectureFan', parentId: null, timestamp: new Date(Date.now() - 34000000).toISOString() },
{ id: 'c9', postId: 'o1p2q3r4', text: 'First try?! That looks professional level!', author: 'BreadLover', parentId: null, timestamp: new Date(Date.now() - 38000000).toISOString() },
{ id: 'c10', postId: 's5t6u7v8', text: 'The Grand Canyon is even more amazing in person. Great photos!', author: 'HikingEnthusiast', parentId: null, timestamp: new Date(Date.now() - 42000000).toISOString() },
];
module.exports = { posts, comments };