diff --git a/public/index.html b/public/index.html
index aa069f2..91eee89 100644
--- a/public/index.html
+++ b/public/index.html
@@ -24,7 +24,38 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
-
React App
+
+
+
+
+
+
+
+
+
+
+
+ Kene's Crib
You need to enable JavaScript to run this app.
diff --git a/src/App.css b/src/App.css
index 74b5e05..f71ecfa 100644
--- a/src/App.css
+++ b/src/App.css
@@ -1,38 +1,10 @@
-.App {
+body{
+ margin: 0;
text-align: center;
}
-.App-logo {
- height: 40vmin;
- pointer-events: none;
-}
+/* .App {
+ text-align: center;
+} */
-@media (prefers-reduced-motion: no-preference) {
- .App-logo {
- animation: App-logo-spin infinite 20s linear;
- }
-}
-.App-header {
- background-color: #282c34;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- font-size: calc(10px + 2vmin);
- color: white;
-}
-
-.App-link {
- color: #61dafb;
-}
-
-@keyframes App-logo-spin {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
-}
diff --git a/src/App.js b/src/App.js
index 7cc58df..8a4cd7b 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,28 +1,25 @@
import { Component } from "react";
+import Footer from "./shared-components/footer-component/Footer";
+import Navbar from "./shared-components/navbar-component/Navbar";
+import { BrowserRouter, Route } from "react-router-dom";
+import HomePage from "./homePage/homePage";
+import ListingsPage from "./listings-page/listings-page";
+import AgentPage from "./agent-page/agent-page";
+import ContactUs from "./shared-components/Contact-us/Contact-us";
class App extends Component {
render() {
return (
-
-
- hello everyone
-
- A simple primary alert—check it out!
-
-
- A simple primary alert—check it out!
-
-
- A simple primary alert—check it out!
-
-
- A simple primary alert—check it out!
-
-
+
+
+
+
+
+
+
+
+
);
}
diff --git a/src/shared-components/contact-us/contactUs.css b/src/homePage/homePage.css
similarity index 100%
rename from src/shared-components/contact-us/contactUs.css
rename to src/homePage/homePage.css
diff --git a/src/homePage/homePage.js b/src/homePage/homePage.js
new file mode 100644
index 0000000..fba8d3b
--- /dev/null
+++ b/src/homePage/homePage.js
@@ -0,0 +1,9 @@
+import React, { Component } from "react";
+
+class HomePage extends Component {
+ render() {
+ return HomePage
;
+ }
+}
+
+export default HomePage;
diff --git a/src/homePage/homePage.test.js b/src/homePage/homePage.test.js
new file mode 100644
index 0000000..5dd92a5
--- /dev/null
+++ b/src/homePage/homePage.test.js
@@ -0,0 +1,10 @@
+import React from "react";
+import { shallow } from "enzyme";
+import HomePage from "./homePage";
+
+describe("HomePage", () => {
+ test("matches snapshot", () => {
+ const wrapper = shallow( );
+ expect(wrapper).toMatchSnapshot();
+ });
+});
diff --git a/src/homePage/index.js b/src/homePage/index.js
new file mode 100644
index 0000000..7d52476
--- /dev/null
+++ b/src/homePage/index.js
@@ -0,0 +1 @@
+export { default } from "./homePage";
diff --git a/src/shared-components/footer/footer.css b/src/shared-components/contact-us/Contact-us.css
similarity index 100%
rename from src/shared-components/footer/footer.css
rename to src/shared-components/contact-us/Contact-us.css
diff --git a/src/shared-components/contact-us/Contact-us.test.js b/src/shared-components/contact-us/Contact-us.test.js
new file mode 100644
index 0000000..3f91e5b
--- /dev/null
+++ b/src/shared-components/contact-us/Contact-us.test.js
@@ -0,0 +1,10 @@
+import React from "react";
+import { shallow } from "enzyme";
+import ContactUs from "./Contact-us";
+
+describe("ContactUs", () => {
+ test("matches snapshot", () => {
+ const wrapper = shallow( );
+ expect(wrapper).toMatchSnapshot();
+ });
+});
diff --git a/src/shared-components/contact-us/contact-us.js b/src/shared-components/contact-us/contact-us.js
index e69de29..dc5a7e5 100644
--- a/src/shared-components/contact-us/contact-us.js
+++ b/src/shared-components/contact-us/contact-us.js
@@ -0,0 +1,9 @@
+import React, { Component } from "react";
+
+class ContactUs extends Component {
+ render() {
+ return ContactUs
;
+ }
+}
+
+export default ContactUs;
diff --git a/src/shared-components/contact-us/index.js b/src/shared-components/contact-us/index.js
new file mode 100644
index 0000000..cffb00b
--- /dev/null
+++ b/src/shared-components/contact-us/index.js
@@ -0,0 +1 @@
+export { default } from "./Contact-us";
diff --git a/src/shared-components/footer-component/Footer.css b/src/shared-components/footer-component/Footer.css
new file mode 100644
index 0000000..1118310
--- /dev/null
+++ b/src/shared-components/footer-component/Footer.css
@@ -0,0 +1,12 @@
+#footer{
+ text-align: center;
+ padding: 5% 7%;
+}
+
+.social-icon{
+ margin: 2px 10px;
+}
+
+.social-icon:hover{
+ color: pink;
+}
\ No newline at end of file
diff --git a/src/shared-components/footer-component/Footer.js b/src/shared-components/footer-component/Footer.js
new file mode 100644
index 0000000..5439651
--- /dev/null
+++ b/src/shared-components/footer-component/Footer.js
@@ -0,0 +1,18 @@
+import React from "react";
+import "./Footer.css";
+const Footer = () => {
+ return (
+
+ );
+};
+export default Footer;
diff --git a/src/shared-components/navBar/navBar.test.js b/src/shared-components/footer-component/Footer.test.js
similarity index 59%
rename from src/shared-components/navBar/navBar.test.js
rename to src/shared-components/footer-component/Footer.test.js
index 32a093e..cf7f5d7 100644
--- a/src/shared-components/navBar/navBar.test.js
+++ b/src/shared-components/footer-component/Footer.test.js
@@ -1,10 +1,10 @@
import React from "react";
import { shallow } from "enzyme";
-import NavBar from "./navBar";
+import Footer from "./Footer";
-describe("NavBar", () => {
+describe("Footer", () => {
test("matches snapshot", () => {
- const wrapper = shallow( );
+ const wrapper = shallow();
expect(wrapper).toMatchSnapshot();
});
});
diff --git a/src/shared-components/footer/footer.js b/src/shared-components/footer/footer.js
deleted file mode 100644
index e69de29..0000000
diff --git a/src/shared-components/navBar/index.js b/src/shared-components/navBar/index.js
deleted file mode 100644
index 7db2ade..0000000
--- a/src/shared-components/navBar/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./navBar";
diff --git a/src/shared-components/navBar/navBar.css b/src/shared-components/navBar/navBar.css
deleted file mode 100644
index e69de29..0000000
diff --git a/src/shared-components/navBar/navBar.js b/src/shared-components/navBar/navBar.js
deleted file mode 100644
index aa62bdc..0000000
--- a/src/shared-components/navBar/navBar.js
+++ /dev/null
@@ -1,9 +0,0 @@
-import React, { Component } from "react";
-
-class NavBar extends Component {
- render() {
- return NavBar
;
- }
-}
-
-export default NavBar;
diff --git a/src/shared-components/navbar-component/Navbar.css b/src/shared-components/navbar-component/Navbar.css
new file mode 100644
index 0000000..d7f8dda
--- /dev/null
+++ b/src/shared-components/navbar-component/Navbar.css
@@ -0,0 +1,3 @@
+.Navbar{
+ background-color: pink;
+}
\ No newline at end of file
diff --git a/src/shared-components/navbar-component/Navbar.js b/src/shared-components/navbar-component/Navbar.js
new file mode 100644
index 0000000..7273a59
--- /dev/null
+++ b/src/shared-components/navbar-component/Navbar.js
@@ -0,0 +1,54 @@
+import React from "react";
+import { Link } from "react-router-dom";
+import "./Navbar.css";
+/* eslint-disable jsx-a11y/anchor-is-valid */
+const Navbar = () => {
+ return (
+ /* Nav Bar */
+
+
+
+
+ Kene's Cribs
+
+
+
+
+
+
+
+
+ Home
+
+
+
+
+ Listings
+
+
+
+
+ Agents
+
+
+
+
+ Contact Us
+
+
+
+
+
+
+ );
+};
+
+export default Navbar;
diff --git a/src/shared-components/navbar-component/Navbar.test.js b/src/shared-components/navbar-component/Navbar.test.js
new file mode 100644
index 0000000..06445a7
--- /dev/null
+++ b/src/shared-components/navbar-component/Navbar.test.js
@@ -0,0 +1,10 @@
+import React from "react";
+import { shallow } from "enzyme";
+import Navbar from "./Navbar";
+
+describe("Navbar", () => {
+ test("matches snapshot", () => {
+ const wrapper = shallow( );
+ expect(wrapper).toMatchSnapshot();
+ });
+});