diff --git a/src/agent-page/AgentPage.js b/src/agent-page/AgentPage.js new file mode 100644 index 0000000..bd3f56d --- /dev/null +++ b/src/agent-page/AgentPage.js @@ -0,0 +1,41 @@ +import React, { Component } from "react"; +import Agents from './Agents' +import './agent-page.css'; +import Carousel from 'react-bootstrap/Carousel' +import Agent1 from "../images/Agent1.jpg"; +import Agent2 from "../images/Agent2.jpg"; +import Agent3 from "../images/Agent3.jpg"; +import Agent4 from "../images/Agent4.jpg"; +import Agent5 from "../images/Agent5.jpg"; +import Agent6 from "../images/Agent6.jpg"; + class AgentPage extends Component { + state={ + agents: [ + + {title:'head sales assistant',name: 'Michael', src: Agent1,word:'Michael has a genuine passion for helping others and for giving back to the community.',id:1}, + {title:'sales assistant',name: 'Jin', src: Agent2,word:'I have a passion for assisting clients with various real estate needs.',id:2}, + {title:'sales assistant',name: 'Anita', src: Agent3,word:'Anita looks forward to servicing you to her fullest potential, building long-lasting relationships and making your real estate experience a smooth and memorable one.',id:3}, + {title:'sales assistant',name: 'Alex', src: Agent4,word:'Since getting licensed in 2010 Alex has consistently been a top producing agent in the GTA',id:4}, + {title:'sales assistant',name: 'Xuan', src: Agent5,word:'Xuan grew up in the GTA, and he explored many different neighborhoods in and surrounding Toronto. ',id:5}, + {title:'sales assistant',name: 'Walter', src: Agent6,word:'Walter Henry has always been one to follow his passion. At 13 years old, he started his career as a competitive gymnast.Walter will be certain that you feel informed and at ease throughout the entire process.',id:6}, + + + ] + } + render(){ + return( +
+
+

Meet the team

+
+ + +
+ ) + } + displayAgents= (agent) => { + console.log(agent); + } + +} +export default AgentPage diff --git a/src/agent-page/Agents.js b/src/agent-page/Agents.js new file mode 100644 index 0000000..ef8b34e --- /dev/null +++ b/src/agent-page/Agents.js @@ -0,0 +1,40 @@ +import React from "react"; +import AgentPage from "./AgentPage"; +/* import {Link} from 'react-router-dom' */ +import Card from "react-bootstrap/Card"; +import Button from "react-bootstrap/Button"; + +const Agents = ({ agents }) => { + const agentlist = agents.map((agent) => { + return ( +
+ {} + + + + {agent.title} + {agent.name} + + {agent.word} + + + + +
+ ); + }); + console.log(agentlist); + return ( +
+
+
{agentlist[0]}
+
{agentlist[1]}
+
{agentlist[2]}
+
{agentlist[3]}
+
{agentlist[4]}
+
{agentlist[5]}
+
+
+ ); +}; +export default Agents; diff --git a/src/agent-page/agent-page.css b/src/agent-page/agent-page.css index f88cd6d..6e07d46 100644 --- a/src/agent-page/agent-page.css +++ b/src/agent-page/agent-page.css @@ -9,4 +9,11 @@ .miniHero { background-position-y: -150px; } + } + .center{ + height: 25vh; /* Magic here */ + background-color: yellow; + display: flex; + justify-content: center; + align-items: center; } \ No newline at end of file diff --git a/src/images/Agent1.jpg b/src/images/Agent1.jpg new file mode 100644 index 0000000..716c1dd Binary files /dev/null and b/src/images/Agent1.jpg differ diff --git a/src/images/Agent2.jpg b/src/images/Agent2.jpg new file mode 100644 index 0000000..03735d5 Binary files /dev/null and b/src/images/Agent2.jpg differ diff --git a/src/images/Agent3.jpg b/src/images/Agent3.jpg new file mode 100644 index 0000000..205480b Binary files /dev/null and b/src/images/Agent3.jpg differ diff --git a/src/images/Agent4.jpg b/src/images/Agent4.jpg new file mode 100644 index 0000000..a60aa5f Binary files /dev/null and b/src/images/Agent4.jpg differ diff --git a/src/images/Agent5.jpg b/src/images/Agent5.jpg new file mode 100644 index 0000000..4580d5f Binary files /dev/null and b/src/images/Agent5.jpg differ diff --git a/src/images/Agent6.jpg b/src/images/Agent6.jpg new file mode 100644 index 0000000..288ae24 Binary files /dev/null and b/src/images/Agent6.jpg differ