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
3 changes: 2 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react';
import MyInfo from './components/MyInfoComponent/MyInfo';

function App() {
return (
<div>
<h1>Hello World!!</h1>
<MyInfo />
</div>
);
}
Expand Down
14 changes: 14 additions & 0 deletions src/components/MyInfoComponent/MyInfo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
list-style: none;
font-family: monospace;
font-size: 20px;
}
body {
background-color: beige;
}
div {
margin: 10px;
}
32 changes: 32 additions & 0 deletions src/components/MyInfoComponent/MyInfo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from 'react';
import './MyInfo.css';

const MyInfo = () => {

const name = 'Mohammed Ali';
const about =
'A 20 years old guy from Baghdad who is studying business information technology.spending most of the time in coding, gaming and watching series';
const places = [
'bali island',
'langkawi malaysia',
'japan',
'rio de janeiro brazil',
];
return (
<div>
<h1>{name}</h1>
<h2>About Me:</h2>
<p>
{about}
</p>
<h2>Places i want to vist in a vacation:</h2>
<ul>
{places.map((place,i)=>
<li key={i}>{place}</li>
)}
</ul>
</div>
);
};

export default MyInfo;