Skip to content

Commit

Permalink
Practice
Browse files Browse the repository at this point in the history
  • Loading branch information
ByeonghoonJeon committed Aug 4, 2021
1 parent 66e1d1d commit 485a354
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions react-pr2/public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ body {
}

.circle-img {
border-radius: 50%;
border-radius: 25px;
border: 7px solid #fff;
width: 120px;
width: 250px;
height: 120px;
}

Expand Down
15 changes: 6 additions & 9 deletions react-pr2/src/components/App.jsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import React from "react";

function App() {
import Contacts from "contacts";
function App(props) {
return (
<div>
<h1 className="heading">My Contacts</h1>
<div className="card">
<div className="top">
<h2>Beyonce</h2>
<img
src="https://blackhistorywall.files.wordpress.com/2010/02/picture-device-independent-bitmap-119.jpg"
alt="avatar_img"
/>
<h2 className="name">{Contacts.name}</h2>
<img className="circle-img" src={Contacts.imgURL} alt="avatar_img" />
</div>
<div className="bottom">
<p>+123 456 789</p>
<p>[email protected]</p>
<p className="info">{Contacts.phone}</p>
<p className="info">{Contacts.email}</p>
</div>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions react-pr2/src/contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ const contacts = [
email: "[email protected]",
},
];

export default Contacts;

0 comments on commit 485a354

Please sign in to comment.