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: 7 additions & 1 deletion src/components/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import React from "react";
import { image } from "../data/data";

function About() {
return <div>About</div>;
return (
<div id="about">
<h2>About Me</h2>
<p>Hello world</p>
<img src={image} alt="I made this"/>
</div>
)
Comment on lines +5 to +11

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return (
<div id="about">
<h2>About Me</h2>
<p>Hello world</p>
<img src={image} alt="I made this"/>
</div>
)
return (
<div id="about">
<h2>About Me</h2>
<p>Hello world</p>
<img src={image} alt="I made this"/>
</div>
)

}

export default About;
6 changes: 5 additions & 1 deletion src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { name, city } from "../data/data.js";

function Home() {
// update the JSX being returned!
return <div>Home</div>;
return (
<div id="home">
<h1 style={{color: "firebrick"}}>{name} is a Web Developer from {city}</h1>
</div>
)
}

export default Home;
7 changes: 6 additions & 1 deletion src/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import React from "react";

function NavBar() {
// update the JSX being returned!
return <nav>NavBar</nav>;
return (
<nav>
<a href="#home">Home</a>
<a href="#about">About</a>
</nav>
)
}

export default NavBar;