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
8 changes: 8 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
h1 {
text-align: center;
background-color: aquamarine;
}

p{
background-color: rgba(27, 255, 255, 0.755);
}
8 changes: 7 additions & 1 deletion 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/MyInfo';

const name="Name: Faeza Salman";
const description="I graduated from software Engineering, and working as a developer";


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


const vacationList = ["Korea","Swizerland","Canada","USA"]

export default class Myinfo extends Component {
render() {
return (
<div className="myinfo">
<h1>{this.props.name}</h1>
<p>{this.props.description}</p>
<label> The countries i want to visit are:
</label> <ol>
{vacationList.map(vacation =>
<li key={vacation}>{vacation}</li>
)}
</ol>
</div>

)
}
}