text: import React from 'react';
  import axios from 'axios';
  
  class OrgList extends React.Component {
    state = {
      projects: []
    };
  
    componentDidMount() {
      axios.get("http://127.0.0.1:8000/api/project/").then(res => {
        this.setState({
          projects: res.data
        });
      });
    }
  
    render() {
      return (
        <>
        <section class="text-gray-500 bg-gray-900 body-font">
    <div class="container px-5 py-24 mx-auto">
      <div class="flex flex-col text-center w-full mb-20">
        <h1 class="text-4xl font-medium title-font mb-4 text-white">Projects</h1>
        <h1 class="text-2xl font-medium title-font mb-4 text-white">MLH Fellows have worked on the following project so far!</h1>
      </div>
      <div class="flex flex-wrap -m-4">
        {this.state.projects.map(data =>{
          return(
        <div class="p-4 lg:w-1/4 md:w-1/2">
          <div class="h-full flex flex-col items-center text-center">
            <img alt="team" class="flex-shrink-0 rounded-lg w-full h-56 object-cover object-center mb-4" src={data.avatar_url} />
            <div class="w-full">
          <h2 class="title-font font-medium text-lg text-white">{data.name}</h2>
          <p class="mb-4">{data.description}</p>
              <span class="inline-flex">
                <a class="text-gray-700">
                  <svg fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
                    <path d="M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z"></path>
                  </svg>
                </a>
                <a class="ml-2 text-gray-700">
                  <svg fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
                    <path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z"></path>
                  </svg>
                </a>
                <a class="ml-2 text-gray-700">
                  <svg fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="w-5 h-5" viewBox="0 0 24 24">
                    <path d="M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z"></path>
                  </svg>
                </a>
              </span>
            </div>
          </div>
        </div>
          );
        })}
    
        </div>
    </div>
  </section>
      </>
      );
    }
  }
  
  export default OrgList;
  