Skip to content
Snippets Groups Projects
Select Git revision
  • a9d60b8d4a29c4d65b1d910ae0e489e2b18258fc
  • main default protected
  • mongo-seeder
  • toggle-like-endpoint
  • CS2
  • comment-service-test-nodemon
  • 19-create-fetch-posts-endpoints
  • 20-create-comment-service-requirements-2
  • 24-create-endpoint-for-user-registration
  • new-branch-to-test-comment-service
  • 17-init-feed-service-with-mongo
  • 15-adding-basic-post-component
  • 13-adding-my-new-awesome-feature
13 results

feed.tsx

Blame
  • user avatar
    Matt Kirby authored
    bc87f656
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    feed.tsx 1.00 KiB
    import NavBar from "@/components/navigation/NavBar";
    import Post from "@/components/post/Post";
    import Question from "@/components/question/Question";
    
    const user = {
      Name: 'Tom Cook',
      email: 'tom@example.com',
      Username: 'TomCook',
      Avatar:
        'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
    }
    
    const Feed = () => {
    
    
    
        
        return(
          <>
            <NavBar user={user} />
            {/* <Question /> */}
            <div className="flex w-full justify-center flex-col items-center mx-auto max-w-4xl p-3 sm:px-6 lg:px-8 border-x">
            
              <p className="text-pink-400">Your Feed</p>
    
              <Post post={{User: user, Content: "This is my post"}}/>
              <Post post={{User: user, Content: "This is my post"}}/>
              <Post post={{User: user, Content: "This is my post"}}/>
              <Post post={{User: user, Content: "This is my post"}}/>
    
            </div>
          </>
        )
    }
    
    export default Feed;