diff --git a/src/App.js b/src/App.js index d5e4d89..f8e6efd 100644 --- a/src/App.js +++ b/src/App.js @@ -2,34 +2,36 @@ import React from "react"; import Registration from "./Pages/RegistrationPage/RegistrationPage"; import Home from "./Pages/HomePage/HomePage" import Product from "./Pages/ProductPage/ProductPage" -import SignIn from "./Pages/SignInPage/SignInPage" import "./GeneralStyles.css"; +import home from "../src/images/homebutton.png" + import { BrowserRouter as Router, Switch, Route, Link } from "react-router-dom"; - function App() { const basename = process.env.REACT_APP_BASENAME || null; return ( -
+
+ Registration +   +   + Product + - - - @@ -45,4 +47,4 @@ function App() { ); } -export default App; \ No newline at end of file +export default App; diff --git a/src/Pages/HomePage/HomePage.css b/src/Pages/HomePage/HomePage.css index 1b53236..373d9f1 100644 --- a/src/Pages/HomePage/HomePage.css +++ b/src/Pages/HomePage/HomePage.css @@ -52,8 +52,9 @@ h3 { } .Frames button { - height: 30px; - width: 20%; + height: 100; + width: 100; + } .hotbar-button { @@ -71,13 +72,67 @@ h3 { .Topright { position: absolute; - top: 30px; + top: -3px; right: 16px; font-size: 18px } .Middleright { position: absolute; - top: 30px; - right: 80px; -} \ No newline at end of file + top: -3px; + right: 100px; +} + +/* Add a black background color to the top navigation bar */ +.topnav { + overflow: hidden; + background-color: lightgrey; + } + + /* Style the links inside the navigation bar */ + .topnav a { + float: left; + display: block; + color: black; + text-align: center; + padding: 14px 16px; + text-decoration: none; + font-size: 17px; + } + + /* Change the color of links on hover */ + .topnav a:hover { + background-color: #ddd; + color: black; + } + + /* Style the "active" element to highlight the current page */ + .topnav a.active { + background-color: #2196F3; + color: white; + } + + /* Style the search box inside the navigation bar */ + .topnav input[type=text] { + float: right; + padding: 6px; + border: none; + margin-top: 8px; + margin-right: 16px; + font-size: 17px; + } + + /* When the screen is less than 600px wide, stack the links and the search field vertically instead of horizontally */ + @media screen and (max-width: 600px) { + .topnav a, .topnav input[type=text] { + float: none; + display: block; + text-align: left; + width: 100%; + margin: 0; + padding: 14px; + } + .topnav input[type=text] { + border: 1px solid #ccc; + } + } \ No newline at end of file diff --git a/src/Pages/HomePage/HomePage.js b/src/Pages/HomePage/HomePage.js index ca64a87..a524939 100644 --- a/src/Pages/HomePage/HomePage.js +++ b/src/Pages/HomePage/HomePage.js @@ -1,17 +1,33 @@ import "./HomePage.css" -import image from "../../images/cartimage.png" -import image2 from "../../images/searchbar.png" +import React from "react"; + +import cartImage from "../../images/cartimage.png" + function Home() { return (
+
+
+ +
+
+
+
+ +
+
+
WorldWide Frames - See A Better World

Items on Sale

Deals of the Day

- +
@@ -19,26 +35,15 @@ function Home() {

Sunglasses

+
-
-
- -
-
-
-
- -
-
-
+
); + } + export default Home; \ No newline at end of file diff --git a/src/images/homebutton.png b/src/images/homebutton.png new file mode 100644 index 0000000..2afcbc7 Binary files /dev/null and b/src/images/homebutton.png differ diff --git a/src/images/registericon.png b/src/images/registericon.png new file mode 100644 index 0000000..61e4dfe Binary files /dev/null and b/src/images/registericon.png differ diff --git a/src/index.js b/src/index.js index ef2edf8..91e4e7e 100644 --- a/src/index.js +++ b/src/index.js @@ -15,3 +15,16 @@ ReactDOM.render( // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals reportWebVitals(); + +// getting all the images into one constant +const IMAGES = { + cartImage: require('./images/cartimage.png').default, + earthImage: require('./images/earth.png').default, + earthRotate: require('./images/earthrotating.gif').default, + oceanImage: require('./images/oceanimage.jpg').default, + registerIcon: require('./images/registericon.png').default, + searchBar: require('./images/searchbar.png').default, + testGlasses: require('./images/testglasses.jpg').default, + homeButton: require('./images/homebutton.png').default, +} +export default IMAGES; \ No newline at end of file