Skip to content

Commit

Permalink
refactor to next 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnhan90 committed Dec 29, 2023
1 parent 3a4e351 commit 99c6306
Show file tree
Hide file tree
Showing 203 changed files with 9,802 additions and 8,167 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

54 changes: 36 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@
# Updates!

This new version contains an integration with redux-toolkit instead of redux and it's witch Typescript :)

# Next.js Ecommerce

This repo contains a work in progress Ecommerce responsive made with Next.js, Redux, Redux-persist, Hooks, SCSS and BEM. If you like it please give it a star :)

## Available pages

- Home page: /
- Products page: /products
- Product single page: /product/1
- Cart page: /cart
- Login page: /login
- Register page: /register
- 404 page: /page-not-found
- [ ] Use CSS variables instead of static colors
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
177 changes: 0 additions & 177 deletions assets/css/OTP.css

This file was deleted.

83 changes: 83 additions & 0 deletions assets/css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
ul li{
list-style: none;
}
a{
text-decoration: none;
}
.font-weight-500 {
font-weight: 500 !important;
}
.font-weight-600 {
font-weight: 600 !important;
}
.yellowgreen-100 {
color: var(--color-yellowgreen-100);
}

/* border radius */
.border-radius-5xl{
border-radius: var(--br-5xl);
}
.border-radius-5xs{
border-radius: var(--br-5xs);
}

.padding-sm{
padding: var(--padding-5xs) var(--padding-sm);
}
.padding-lg{
padding: var(--padding-3xs) var(--padding-lg);
}

/* text color */
.text-gray-600 {
color: var(--gray-600);
}
.text-gray-7001{
color: var(--gray-7001);
}

/* font size */
.text-sm-semibold-size{
font-size: var(--text-sm-semibold-size);
}
.text-xs-semibold-size{
font-size: var(--display-xs-semibold-size);
}

.line-height-38{
line-height: 38px;
}
.line-height-20{
line-height: 20px;
}
@media (min-width: 1400px){
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
max-width: 1366px;
}
}
.user-avatar:hover .submenu{
opacity: 1;
visibility: visible;
}
.user-avatar .submenu {
position: absolute;
right: 0;
top: 50px;
background: #ffffff;
width: 180px;
z-index: 9;
padding: 5px 0;
-webkit-transition: all, 0.3s;
-moz-transition: all, 0.3s;
-ms-transition: all, 0.3s;
-o-transition: all, 0.3s;
transition: all, 0.3s;
opacity: 0;
visibility: hidden;
border: 1px solid rgba(0, 71, 60, 0.20);
}

[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {
cursor: pointer;
}
Loading

0 comments on commit 99c6306

Please sign in to comment.