Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.t-center{
text-align: center;
}
.card{
background-color: aliceblue;
width: 500px;
display: grid;
justify-content: center;
align-items: center;
justify-items: center;
}

.bio{
text-align: center;
}

.card-header{
background-color: white;
display: inline-block;
}

.p-0{
padding: 0px;
margin: 0px;
}
10 changes: 8 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import React from 'react';
import './App.css';
import MyInfo from './Components/MyInfo.jsx'

function App() {
const placesToVisit = ["Antalya", "Parague", "Berlin", "goal"]
const name = "Haval "
const bio = " I am an IT gradute from the American univerisy of Iraq Sulaimani, I have studied several different topics about IT at uni. One of the most intersting classes was Robotics in whcih we were coding robots and we could see the output of our code phyically running."

return (
<div>
<h1>Hello World!!</h1>
<div >
<MyInfo placesToVisit={placesToVisit} name = {name} bio ={bio} />
</div>
);
}
Expand Down
22 changes: 22 additions & 0 deletions src/Components/MyInfo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'


export default function MyInfo({placesToVisit, name, bio}) {

const listItems = placesToVisit.map((item) =>
<li className="nav" key={item}>{item}</li>
);
return (
<div className="card">
<h1 className="card-header">{name}</h1>
<p className="bio">
{bio}
</p>

<h3 className="p-0">Placeses I would Want to visit:</h3>
<ul>
{listItems}
</ul>
</div>
)
}