Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
02eb2e9
assets
veereshbv04 May 17, 2022
1eded83
styles: for cards and filter pane
veereshbv04 May 17, 2022
d8d2e0e
Basic component structure
veereshbv04 May 17, 2022
2f9e6e4
fix: useffect working
veereshbv04 May 17, 2022
3cf1f9b
fix: class to className
veereshbv04 May 17, 2022
958f3cc
feat: card display
veereshbv04 May 17, 2022
7441322
database update
veereshbv04 May 18, 2022
1147b5f
card component
veereshbv04 May 18, 2022
55fe12e
faet: product context
veereshbv04 May 18, 2022
c72fab5
feat: filtering products
veereshbv04 May 18, 2022
70cc9c5
feat: filter by price, rating
veereshbv04 May 24, 2022
78459aa
fix: sortby by price function
veereshbv04 May 24, 2022
9705dd9
products price updated
veereshbv04 May 24, 2022
66634b7
refactor
veereshbv04 May 24, 2022
567ed1e
feat: rating added
veereshbv04 May 24, 2022
9602589
feat: category filter
veereshbv04 May 24, 2022
e822a6e
feat: filter by price range
veereshbv04 May 24, 2022
fe15f16
fix: range filter
veereshbv04 May 24, 2022
d0bc7d9
feat: reset button working
veereshbv04 May 25, 2022
611d068
product images updated
veereshbv04 May 25, 2022
b85b304
feat: Header
veereshbv04 May 25, 2022
b1115fa
core: react-router-dom added
veereshbv04 May 25, 2022
69510de
feat: added routers
veereshbv04 May 25, 2022
ad3e095
feat: adding components
veereshbv04 May 25, 2022
a64d912
feat: home page
veereshbv04 May 25, 2022
14170ec
feat: routing done
veereshbv04 May 25, 2022
f36f341
fix: router link
veereshbv04 May 25, 2022
52df0d6
code refactor
veereshbv04 May 26, 2022
745e2b7
feat: cart imports and basic initial functions
veereshbv04 May 26, 2022
e8d54ab
refactor
veereshbv04 May 26, 2022
d7db1c2
feat: footer component
veereshbv04 May 26, 2022
869bd72
feat: notfound component
veereshbv04 May 26, 2022
821c683
feat: inputhandler
veereshbv04 May 27, 2022
c4392b3
fix class to className
veereshbv04 May 27, 2022
6130756
Error in auth need to fix
veereshbv04 May 27, 2022
3b35f27
Error in login and signup need to fix
veereshbv04 May 30, 2022
4a03494
core: react-router-dom
veereshbv04 May 30, 2022
a73e9d9
fix : react-router
veereshbv04 May 30, 2022
3937599
core: dotenv: ^16.0.0
veereshbv04 May 30, 2022
0a63147
fix core
veereshbv04 May 30, 2022
e4690f7
fix: Auth working
veereshbv04 May 31, 2022
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
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
"dependencies": {
"axios": "^0.21.4",
"dayjs": "^1.10.7",
"dotenv": "^16.0.0",

"json-web-token": "^3.2.0",
"jwt-decode": "^3.1.2",
"jwt-encode": "^1.0.1",
"miragejs": "^0.1.41",
"mockman-js": "^1.0.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^6.3.0",
"react-scripts": "4.0.3",
"uuid": "^8.3.2",
"web-vitals": "^0.2.4"
Expand Down
Binary file added public/assets/Homepagebig.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/Shiningnovel.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/almostdark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/beingtheother.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/casualvacancy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/daniellesteelspy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/doepicshit.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/girlinroom105.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/ikigai.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/poisonapple.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/tearsofjhelum.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/thegreenroom.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/book-images/wishperingindark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 21 additions & 21 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--

<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Expand All @@ -24,12 +22,13 @@
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`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
<title>BookStore</title>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

Expand All @@ -39,5 +38,6 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
</body>

</html>
268 changes: 236 additions & 32 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,51 +1,255 @@
.App {
text-align: center;
@import url(https://www.w3schools.com/w3css/4/w3.css);
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);
@import url(https://veeuiforbookstorecss.netlify.app/components/main.css);

/* styles.index */

body{
font-family: 'Open Sans', sans-serif;
}

.navbar{
display: flex;
background-color: var(--background-color);
padding: 0 1rem;
align-items: center;
justify-content: space-between;
}

.navbar-title{
font-size: 2rem;
color: var(--primary-color);
font-weight: 400;
letter-spacing: 3px;
font-weight: bold;
}

.navbar-search{
height: 2rem;
border: 5px solid transparent;
width: 28rem;
padding: 0rem 1rem;
}

.navbar-catagory{
display: block;
text-transform: uppercase;
color: var(--text-color);
}

.navbar-catagory li{
display: inline;
cursor: pointer;
padding: 0rem 1rem;

}

img{
max-width: 70%;
margin: auto;
}


.container{
margin-top: 2rem;
display: flex;
width: 100%;
min-height: 28rem;
gap: 2rem;
padding: 2rem;
background-color: var(--section-background);

}
.wrap{
flex-wrap: wrap;
}
/* .center-items{
align-items: center;
justify-content: center;
} */

.offer{
background-color: var(--yellow-color);
padding: 6em;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;

}

.subheading {
text-align: center;
max-width: 800px;
margin: auto;
padding: 1rem;
text-transform: uppercase;
}

.offer-saving{
color: var(--green-color);
}

.price{
font-weight: bold;
color: var(--text-color);
}

.footer{
background-color:var(--dark-background);
display: flex;
justify-content: space-around;
align-items: center;
gap: 2rem;
padding: 2rem;
}

.footer-title{
font-weight: bold;

}

.footer-links{
color: white;
list-style: none;
padding: 0.8rem;
cursor: pointer;
}

.center-div{
display: flex;
align-items: center;
justify-content: center;
margin: auto;
padding: 6rem;
}

.App-logo {
height: 40vmin;
pointer-events: none;
.green{
color: var(--green-color);
}

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

.strike{
text-decoration: line-through;
}

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

.App-link {
color: #61dafb;
.quantity input{
width: 3rem;

}

.brand-title {
font-size: 3rem;
color: #d9d9d9;
.cart-price{
display: flex;
flex-direction: column;
gap: 2rem;
margin: 2rem;
}

.brand-title span {
color: #ffde59;
.price-field{
font-weight: lighter;
color: var(--text-color);
gap: 4rem;
display: flex;
flex-direction: row;
justify-content: space-between;

}

.brand-description {
font-size: 1.4rem;
.highlight{
font-weight: bold;
color: var(--green-color);
}

.links {
display: flex;
.text-center{
text-align: center;
}

.links a {
color: #d9d9d9;
font-size: 1.2rem;
margin: 1rem;

/* grid for product list page */

.grid{
display: grid;
width: 100%;
height: auto;
padding: 1rem;
}

.grid-2-8{
grid-template-rows:auto;
grid-template-columns: 20% auto;
gap:2rem;
}

@media(max-width:550px){
.grid-2-8{
grid-template-columns: auto;
grid-template-rows: auto ;
gap: 2rem;
}
}

.product-filter{
background-color: var(--background-color);
display: flex;
flex-direction: column;
justify-content: space-around;
height: 98vh;
padding: 1rem;
gap: 2rem;

}
.product-display{
background-color: var(--section-background);
height: auto;
overflow-y: scroll;
display:flex ;
gap: 2rem;
justify-content:space-around;
}

.filter{
display: flex;
justify-content: space-between;
}

.slider{
width: 100%;
}
.scale-values{
display: flex;
flex-direction: row;
justify-content: space-between;
}

.category{
display: flex;
flex-direction: column;
justify-content: space-between;
}

.category input{
margin-right: 1rem;
}


input[type="reset"]{
color: var(--text-color);
border-radius: 4px;
background-color: var(--section-background);
border: none;
}

.heart{
position: absolute;
top:0;
color: var(--primary-color);
padding: 5px;
border-radius: 50%;
background-color: var(--background-color);

}
10 changes: 8 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import "./App.css";
import logo from "./logo.png";
import {Footer, Header} from "./components/index"
import {ProductListing} from "./pages/index"
import Router from "./router/router";
// import logo from "./logo.png";

function App() {
return (
<div className="App">
<h1>Welcome Veeresh B V</h1>
<Header/>
<Router/>
{/* starting from "/" home page routing happens , header remains always as it is a single entity in parent app component */}
<Footer/>
</div>
);
}
Expand Down
Loading