text: //profile page for user
  
  
  import React from 'react';
  import DB from 'serivces/backend/database';
  import UserData from 'serivces/globalData/globalUserData';
  import Home from '../home/home';
  
  import './profile.css';
  
  
  class ProfilePage extends React.Component{
  
  
  
  
      render(){
          
         DB.getUserData();
  
         
          if(!UserData.isLoggedIn){
              return <Home></Home>
          }else
      return  <div className="w3-content w3-margin-top" style={{maxWidth:1400+"px"}}>
      
  
        <div className="w3-row-padding">
        
         
          <div className="w3-third">
          
            <div className="w3-white w3-text-grey w3-card-4">
              <div className="w3-display-container">
                <img src={UserData.profilePic} style={{width:100+"%"}} alt="Avatar" />
                <div className="w3-display-bottomleft w3-container w3-text-black">
                  <h2>{UserData.username}</h2>
                </div>
              </div>
              <div className="w3-container">
                <p><i className="fa fa-briefcase fa-fw w3-margin-right w3-large w3-text-teal"></i>Designer</p>
                <p><i className="fa fa-home fa-fw w3-margin-right w3-large w3-text-teal"></i>London, UK</p>
                <p><i className="fa fa-envelope fa-fw w3-margin-right w3-large w3-text-teal"></i>{UserData.email}</p>
                <p><i className="fa fa-phone fa-fw w3-margin-right w3-large w3-text-teal"></i>1224435534</p>
                <hr />
      
                <p className="w3-large"><b><i className="fa fa-asterisk fa-fw w3-margin-right w3-text-teal"></i>Skills</b></p>
                <p>Adobe Photoshop</p>
                <div className="w3-light-grey w3-round-xlarge w3-small">
                  <div className="w3-container w3-center w3-round-xlarge w3-teal" style={{width:90+"%"}}>90%</div>
                </div>
                <p>Photography</p>
                <div className="w3-light-grey w3-round-xlarge w3-small">
                  <div className="w3-container w3-center w3-round-xlarge w3-teal" style={{width:80+"%"}}>
                    <div className="w3-center w3-text-white">80%</div>
                  </div>
                </div>
                <p>Illustrator</p>
                <div className="w3-light-grey w3-round-xlarge w3-small">
                  <div className="w3-container w3-center w3-round-xlarge w3-teal" style={{width:75+"%"}}>75%</div>
                </div>
                <p>Media</p>
                <div className="w3-light-grey w3-round-xlarge w3-small">
                  <div className="w3-container w3-center w3-round-xlarge w3-teal" style={{width:50+"%"}}>50%</div>
                </div>
                <br />
      
                <p className="w3-large w3-text-theme"><b><i className="fa fa-globe fa-fw w3-margin-right w3-text-teal"></i>Languages</b></p>
                <p>English</p>
                <div className="w3-light-grey w3-round-xlarge">
                  <div className="w3-round-xlarge w3-teal" style={{height:24+"px",width:100+"%"}}></div>
                </div>
                <p>Spanish</p>
                <div className="w3-light-grey w3-round-xlarge">
                  <div className="w3-round-xlarge w3-teal" style={{height:24+"px",width:55+"%"}}></div>
                </div>
                <p>German</p>
                <div className="w3-light-grey w3-round-xlarge">
                  <div className="w3-round-xlarge w3-teal" style={{height:24+"px",width:25+"%"}}></div>
                </div>
                <br />
              </div>
            </div><br/>
      
         
          </div>
      
        
          <div className="w3-twothird">
          
            <div className="w3-container w3-card w3-white w3-margin-bottom">
              <h2 className="w3-text-grey w3-padding-16"><i className="fa fa-suitcase fa-fw w3-margin-right w3-xxlarge w3-text-teal"></i>Work Experience</h2>
              <div className="w3-container">
                <h5 className="w3-opacity"><b>Front End Developer / w3schools.com</b></h5>
                <h6 className="w3-text-teal"><i className="fa fa-calendar fa-fw w3-margin-right"></i>Jan 2015 - <span className="w3-tag w3-teal w3-round">Current</span></h6>
                <p>Lorem ipsum dolor sit amet. Praesentium magnam consectetur vel in deserunt aspernatur est reprehenderit sunt hic. Nulla tempora soluta ea et odio, unde doloremque repellendus iure, iste.</p>
                <hr/>
              </div>
              <div className="w3-container">
                <h5 className="w3-opacity"><b>Web Developer / something.com</b></h5>
                <h6 className="w3-text-teal"><i className="fa fa-calendar fa-fw w3-margin-right"></i>Mar 2012 - Dec 2014</h6>
                <p>Consectetur adipisicing elit. Praesentium magnam consectetur vel in deserunt aspernatur est reprehenderit sunt hic. Nulla tempora soluta ea et odio, unde doloremque repellendus iure, iste.</p>
                <hr/>
              </div>
              <div className="w3-container">
                <h5 className="w3-opacity"><b>Graphic Designer / designsomething.com</b></h5>
                <h6 className="w3-text-teal"><i className="fa fa-calendar fa-fw w3-margin-right"></i>Jun 2010 - Mar 2012</h6>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. </p><br/>
              </div>
            </div>
      
            <div className="w3-container w3-card w3-white">
              <h2 className="w3-text-grey w3-padding-16"><i className="fa fa-certificate fa-fw w3-margin-right w3-xxlarge w3-text-teal"></i>Education</h2>
              <div className="w3-container">
                <h5 className="w3-opacity"><b>W3Schools.com</b></h5>
                <h6 className="w3-text-teal"><i className="fa fa-calendar fa-fw w3-margin-right"></i>Forever</h6>
                <p>Web Development! All I need to know in one place</p>
                <hr/>
              </div>
              <div className="w3-container">
                <h5 className="w3-opacity"><b>London Business School</b></h5>
                <h6 className="w3-text-teal"><i className="fa fa-calendar fa-fw w3-margin-right"></i>2013 - 2015</h6>
                <p>Master Degree</p>
                <hr/>
              </div>
              <div className="w3-container">
                <h5 className="w3-opacity"><b>School of Coding</b></h5>
                <h6 className="w3-text-teal"><i className="fa fa-calendar fa-fw w3-margin-right"></i>2010 - 2013</h6>
                <p>Bachelor Degree</p><br/>
              </div>
            </div>
       </div>
          </div>
       </div>
    
      }
  }
  
  
  export default ProfilePage;