Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landing page #2

Open
wants to merge 4 commits into
base: Main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
104 changes: 0 additions & 104 deletions .gitignore

This file was deleted.

1 change: 0 additions & 1 deletion README.md

This file was deleted.

51 changes: 51 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.App {
text-align: center;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #22201c;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
}

.App-link {
color: #61dafb;
}

.brand-title {
font-size: 3rem;
color: #d9d9d9;
}

.brand-title span {
color: #ffde59;
}

.brand-description {
font-size: 1.4rem;
}

.links {
display: flex;
}

.links a {
color: #d9d9d9;
font-size: 1.2rem;
margin: 1rem;
}
72 changes: 72 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import {
Routes,
Route,
} from "react-router-dom";
import "./App.css";
import {
Header,
Footer,
Cart,
HomePage,
ProductListing,
Login,
Signup,
ForgotPassword,
UserPage,
WishList,
} from "./components/index";

Choose a reason for hiding this comment

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

you can just import from ./components, that /index can be skipped.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Okay, I'll do that.

import Mockman from "mockman-js";
import { FilterProvider } from "./context/FilterProvider";

function App() {
return (
<div className="App">
<Header />
<Routes>
<Route
path="/"
element={<HomePage />}
/>
<Route
path="login"
element={<Login />}
/>
<Route
path="signup"
element={<Signup />}
/>
<Route
path="forgot-password"
element={<ForgotPassword />}
/>
<Route
path="products"
element={
<FilterProvider>
<ProductListing />
</FilterProvider>
}
/>
<Route
path="wishlist"
element={<WishList />}
/>
<Route
path="user-page"
element={<UserPage />}
/>
<Route
path="cart"
element={<Cart />}
/>
<Route
path="mockAPI"
element={<Mockman />}
/>
</Routes>
<Footer />
</div>
);
}

export default App;
39 changes: 39 additions & 0 deletions src/components/Home/HomePage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.sm-card-main-container {
height: 15rem;
}

.sm-card-container {
width: 15rem;
height: 12rem;
border-radius: 0.5rem;
border: var(--border-grey);
}

.mid-card-main-container {
height: 25rem;
}

.mid-card-container {
width: 21rem;
height: 13rem;
border-radius: 0.5rem;
border: var(--border-grey);
}

.margin-0 {
margin: 0;
}

.sm-card-shadow:hover {
box-shadow: var(--color-sm-card-shadow);
}

.sm-card-icons {
width: 5rem;
height: 5rem;
}

.sm-card-text {
padding: 0.5rem;
width: 15rem;
}
Loading