Skip to content

Latest commit

 

History

History
411 lines (325 loc) · 11.9 KB

File metadata and controls

411 lines (325 loc) · 11.9 KB

Social Media Feeds - Visual Preview

Layout Overview

┌─────────────────────────────────────────────────────────────────────────┐
│                                                                          │
│                        JOIN THE COMMUNITY                                │
│          See what people are saying about OpenAdapt across the web      │
│                                                                          │
└─────────────────────────────────────────────────────────────────────────┘

┌──────────────────────┐  ┌──────────────────────┐  ┌──────────────────────┐
│  GitHub Activity     │  │  Reddit Discussions  │  │  Hacker News         │
│  ─────────────       │  │  ────────────────    │  │  ────────────        │
│                      │  │                      │  │                      │
│  ⭐ Stars:  1,234    │  │  💬 Latest Posts:    │  │  🔥 Latest Stories:  │
│  🍴 Forks:    156    │  │                      │  │                      │
│  👁 Watchers:  89    │  │  r/MachineLearning   │  │  "OpenAdapt: Teach   │
│  ⚠️  Issues:   42    │  │  ↑ 42  💬 12        │  │   AI to use any..."  │
│                      │  │  "Check out          │  │  ↑ 128  💬 45       │
│  [View on GitHub]    │  │   OpenAdapt..."      │  │                      │
│                      │  │                      │  │  [More Stories...]   │
└──────────────────────┘  └──────────────────────┘  └──────────────────────┘

┌─────────────────────────────────────────────────────────────────────────┐
│                      Latest from X (Twitter)                             │
│  ─────────────────────────────────────────────                          │
│                                                                          │
│  [Twitter Embedded Timeline showing @OpenAdaptAI tweets]                │
│                                                                          │
│  Latest tweet 1...                                                       │
│  Latest tweet 2...                                                       │
│  Latest tweet 3...                                                       │
│                                                                          │
│                    [Follow @OpenAdaptAI on X]                           │
└─────────────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────────────┐
│  Join the conversation and help shape the future of AI automation       │
│                                                                          │
│             [Join Discord]           [Star on GitHub]                   │
└─────────────────────────────────────────────────────────────────────────┘

Component Details

1. GitHub Activity Card

Visual Design:

  • Purple gradient background with hover effects
  • 2x2 grid of statistics
  • Icon + Number + Label format
  • Direct link to repository
  • Smooth animations on hover

Data Shown:

  • ⭐ Stars (e.g., "1,234")
  • 🍴 Forks (e.g., "156")
  • 👁 Watchers (e.g., "89")
  • ⚠️ Issues (e.g., "42")

Interactions:

  • Entire card is clickable
  • Hover effect: slight lift + glow
  • Opens GitHub repo in new tab

2. Reddit Feed Card

Visual Design:

  • Similar purple gradient background
  • List of recent posts
  • Reddit orange accent colors
  • Compact post format

Data Shown per Post:

  • Subreddit name (e.g., "r/MachineLearning")
  • Post title (truncated to 2 lines)
  • Upvotes (↑ 42)
  • Comments (💬 12)
  • Author (e.g., "u/username")

Interactions:

  • Each post is clickable
  • Hover effect: shift right + highlight
  • "View More on Reddit" button at bottom
  • Opens posts in new tab

Fallback: If no posts found:

┌────────────────────┐
│  Reddit Discussions│
│  ──────────────────│
│                    │
│  No recent         │
│  discussions found │
│                    │
│  [Search Reddit]   │
└────────────────────┘

3. Hacker News Feed Card

Visual Design:

  • Purple gradient background
  • List format similar to Reddit
  • Orange HN accent color
  • Clean, minimal design

Data Shown per Story:

  • Story title (truncated to 2 lines)
  • Points (↑ 128)
  • Comments (💬 45)
  • Author (e.g., "by username")
  • Date (e.g., "1/17/2026")

Interactions:

  • Each story is clickable
  • Hover effect: shift right + highlight
  • "View More on Hacker News" button
  • Opens stories in new tab

Fallback: If no stories found:

┌────────────────────┐
│  Hacker News       │
│  ──────────────────│
│                    │
│  No stories        │
│  found yet         │
│                    │
│  [Search HN]       │
└────────────────────┘

4. Twitter Timeline Card

Visual Design:

  • Full-width container
  • Centered, max-width 800px
  • Native Twitter embed styling
  • Dark theme to match site

Data Shown:

  • Latest 3 tweets from @OpenAdaptAI
  • Native Twitter formatting
  • Profile pictures, links, media
  • Retweet/Like counts

Interactions:

  • Native Twitter interactions
  • Follow button within widget
  • "Follow @OpenAdaptAI on X" button below
  • All interactions open in new tab

5. Call-to-Action Section

Visual Design:

  • Purple gradient background
  • Centered text and buttons
  • Two prominent buttons side-by-side

Content:

  • Heading: "Join the conversation and help shape the future of AI automation"
  • Two buttons:
    • Join Discord (primary style - filled purple)
    • Star on GitHub (secondary style - outlined)

Interactions:

  • Hover effects on buttons
  • Opens Discord and GitHub in new tabs

Responsive Design

Desktop (1024px+)

[GitHub]  [Reddit]  [HackerNews]
       [Twitter - Full Width]
     [Call to Action Buttons]

Tablet (768px - 1024px)

     [GitHub]
     [Reddit]
   [HackerNews]
[Twitter - Full Width]
  [CTA Buttons Side-by-Side]

Mobile (< 768px)

    [GitHub]
    [Reddit]
  [HackerNews]
    [Twitter]
  [CTA Button 1]
  [CTA Button 2]

Color Scheme

Primary Colors:

  • Background: rgba(0, 0, 30, 1) (dark navy)
  • Card Background: rgba(86, 13, 248, 0.1) (purple tint)
  • Card Border: rgba(86, 13, 248, 0.3) (purple)
  • Primary Accent: #560DF8 (purple)
  • Secondary Accent: #60a5fa (blue)

Platform Colors:

  • GitHub: #60a5fa (blue)
  • Reddit: #ff4500 (orange-red)
  • Hacker News: #ff6600 (orange)
  • Twitter/X: #1da1f2 (light blue)

Text Colors:

  • Primary: white
  • Secondary: rgba(255, 255, 255, 0.7)
  • Tertiary: rgba(255, 255, 255, 0.5)

Loading States

While data is fetching:

┌──────────────────────┐
│  GitHub Activity     │
│  ─────────────       │
│                      │
│  Loading GitHub      │
│  stats...            │
│                      │
└──────────────────────┘

Same pattern for Reddit and HN feeds.


Error States

If API fails:

┌──────────────────────┐
│  GitHub Activity     │
│  ─────────────       │
│                      │
│  Unable to load      │
│  GitHub stats        │
│                      │
└──────────────────────┘

Users can still click the "View on ..." buttons to visit the platforms directly.


Animation Effects

On Load:

  • Fade in from bottom
  • Staggered animation for cards

On Hover (Cards):

  • Lift up 2px
  • Border color intensifies
  • Glow effect (box-shadow)
  • Smooth transition (0.3s)

On Hover (Posts/Stories):

  • Shift right 4px
  • Background darkens slightly
  • Border lightens
  • Smooth transition (0.2s)

On Hover (Buttons):

  • Lift up 2px
  • Background color lightens
  • Glow effect
  • Smooth transition (0.2s)

Performance Metrics

Expected Load Times:

  • GitHub API: ~300-500ms
  • Reddit JSON: ~200-400ms
  • HN Algolia: ~200-400ms
  • Twitter Widget: ~500-800ms

Total Section Load:

  • First paint: < 100ms (static content)
  • API data: 500-800ms
  • Twitter embed: 800-1200ms
  • Fully interactive: < 1.5s

Caching Benefits:

  • Subsequent loads: < 100ms (from cache)
  • Reduced API calls: 90%+
  • Better SEO: Server-side rendering

Accessibility

Screen Readers:

  • All links have descriptive aria-labels
  • Icons have semantic meaning
  • Proper heading hierarchy

Keyboard Navigation:

  • All interactive elements are focusable
  • Tab order is logical
  • Enter/Space activates links

Visual:

  • High contrast text (WCAG AA compliant)
  • No color-only information
  • Readable font sizes (minimum 14px)

Browser Compatibility

Tested & Supported:

  • Chrome 90+
  • Firefox 88+
  • Safari 14+
  • Edge 90+

Mobile Browsers:

  • iOS Safari 14+
  • Chrome Mobile 90+
  • Samsung Internet 14+

Required Features:

  • CSS Grid
  • Flexbox
  • CSS Variables
  • ES6 JavaScript
  • Fetch API

SEO Benefits

Social Proof:

  • Shows active community
  • Displays real engagement metrics
  • Links to external discussions

Content Freshness:

  • Real-time data from social platforms
  • Regularly updated discussions
  • Search engines see active content

External Links:

  • Links to high-authority sites (GitHub, Reddit, HN, Twitter)
  • Proper noopener/noreferrer attributes
  • Helps with domain authority

User Experience Goals

  1. Trust Building: Real GitHub stats show legitimate project
  2. Social Proof: Discussions prove real users exist
  3. Community: Shows active, engaged community
  4. Transparency: Direct links to unfiltered discussions
  5. Engagement: Multiple CTAs for different user types

Testing Checklist

  • GitHub stats load correctly
  • Reddit posts appear (if any exist)
  • HN stories appear (if any exist)
  • Twitter timeline embeds successfully
  • All links open in new tabs
  • Hover effects work smoothly
  • Mobile layout is responsive
  • Loading states appear correctly
  • Error states work properly
  • Fallback messages display when no data
  • API caching works (check Network tab)
  • Performance is good (< 2s full load)
  • Accessibility: keyboard navigation works
  • Accessibility: screen reader friendly

End of Preview