Skip to content

Commit

Permalink
Merge pull request #97 from FAC-Sixteen/Feature/LongStudentProfile
Browse files Browse the repository at this point in the history
render student data
  • Loading branch information
misterrodger authored Jun 18, 2019
2 parents 2c0ac5b + 3155f6f commit 17b3438
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import React, { useState, useEffect } from "react";
Original file line number Diff line number Diff line change
@@ -1,28 +1,43 @@
import React from "react";
import React, { useState, useEffect } from "react";
import "./LongStudentProfileCard.css";
import AcceptDecline from "../../AccectDeclineButtons/AcceptDecline.js";
import axios from "axios";

const LongStudentProfileCard = () => {
const [data, setData] = useState([]);

useEffect(() => {
const fetchData = async () => {
const result = await axios(
"/api/student/get-student/5d0783ded1ea443e7621cc88"
);
console.log(result.data);
setData(result.data);
};
fetchData();
}, []);

return (
<div className="LongStudentProfileCard--main">
<div className="LongStudentProfileCard">
<div className="LongStudentProfileCard--container">
<h2 className="LongStudentProfileCard--projectname">Student Name</h2>
<h2 className="LongStudentProfileCard--projectname">
Student Name: {data.firstName}
{data.lastName}
</h2>
<p className="LongStudentProfileCard--projectdesc">
Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem
Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum
Lorem Ipsum
About Myself: {data.aboutYou}
</p>
<div className="LongStudentProfileCard--contactcontainer">
<div className="LongStudentProfileCard--contactdetailsdiv">
<h4>Student Email</h4>
<h4>Student Phone</h4>
<h4>Student Linkedin</h4>
<h4>Email: {data.email}</h4>
<h4>Phone: {data.phoneNumber}</h4>
<h4>Linkedin: {data.LinkedinURL}</h4>
</div>
<div className="LongStudentProfileCard--projectdetailsdiv">
<h4>University name</h4>
<h4>Location</h4>
<h4>Year of Study</h4>
<h4>University: {data.university}</h4>
<h4>Course Studied: {data.courseStudied}</h4>
<h4>Year of Study: {data.yearOfStudy}</h4>
</div>
</div>
<div className="LongStudentProfileCard--downloadbrief">
Expand Down

0 comments on commit 17b3438

Please sign in to comment.