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
20 changes: 16 additions & 4 deletions src/components/About.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
// src/components/About.js
import React from "react";
import { image } from "../data/data";
// Assuming 'image' is defined as a const variable here, e.g.:
// const image = "https://i.imgur.com/mV8PQxj.gif";

function About() {
return <div>About</div>;
}
// Use the 'image' variable that is defined in this file.
// If it's not defined, you might need to add it or import it from src/data/user.js
const image = "https://placehold.co/150x150/000/FFF?text=Profile"; // Placeholder: Check your starter code for actual variable or import

export default About;
return (
<div id="about">
<h2>About Me</h2>
<p>I Made This</p>
<img src={"https://i.imgur.com/mV8PQxj.gif"} alt="I made this" />
</div>
);
}
// Make sure it's default exported if it's not already
export default About;
22 changes: 18 additions & 4 deletions src/components/Home.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
// src/components/Home.js
import React from "react";
import { name, city } from "../data/data.js";
// Assuming 'Name' and 'City' are defined as const variables here, e.g.:
// const name = "Liza";
// const city = "New York";

function Home() {
// update the JSX being returned!
return <div>Home</div>;
}
// Use the 'name' and 'city' variables that are defined in this file.
// If they are not defined, you might need to add them or import them from src/data/user.js
// For example, if your starter code has:
const Name = "Your Name"; // Check your actual starter code for the variable names and values
const City = "Your City"; // Check your actual starter code for the variable names and values

return (
<div id="home">
<h1 style={{ color: "firebrick" }}>
'Name is a Web Developer from City'
</h1>
</div>
);
}
// Make sure it's default exported if it's not already
export default Home;
13 changes: 9 additions & 4 deletions src/components/NavBar.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// src/components/NavBar.js
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;
// Make sure it's default exported if it's not already
export default NavBar;