Skip to content

Commit d77935f

Browse files
authored
POC (#3)
* "Add UpdateProductButton and DeleteProductButton components with functionality to update and delete products, respectively" Signed-off-by: Dmytro Turskyi <[email protected]> * Updated email template component and added constants for the app name, domain, and author. Made changes to various components and pages to use these constants. Added a new API route for sending emails using the Resend API key. Implemented sending an email when checking out from the cart. Added the ability to delete the cart after checkout. Made adjustments to page titles to include the app name. Signed-off-by: Dmytro Turskyi <[email protected]> * Refactor API route to accept NextRequest and update cart actions to send email notification with order details. Fix price formatting in cart actions. Signed-off-by: Dmytro Turskyi <[email protected]> * Refactor Checkout and Contact Information Handling Refactor handling of checkout functionality and contact information submission to improve code organization and simplify user interaction in the shopping cart page. Contact information fields are now submitted along with the order for efficient processing. * Refactor a price input component to use useState for dynamic updating Signed-off-by: Dmytro Turskyi <[email protected]> * Add ability to upload image. Refactor configuration and update dependencies for new features and enhancements * Add select file in update form and ensure admin authorization checks in relevant routes Added admin authorization checks in routes that involve product management to restrict access to admin-only functionalities, contributing to enhanced security and access control. * Update project constants and footer links, add new links, and improve styling. Updated project constants to reflect the new project name. Added new footer links for navigation, converted footer links to routing links, and enhanced styling for accessibility and visual appeal. * add words to spellright exceptions --------- Signed-off-by: Dmytro Turskyi <[email protected]>
1 parent dbb366c commit d77935f

37 files changed

+2118
-231
lines changed

Diff for: .vscode/spellright.dict

+35
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,38 @@ og
3434
diy
3535
ffffff
3636
ffefff
37+
btn-block
38+
bg
39+
ico
40+
noopener
41+
noreferrer
42+
pl-6
43+
dmytro
44+
nextjs
45+
tsx
46+
dist
47+
daisyui
48+
jsx
49+
ts
50+
tailwindcss
51+
ea535a
52+
btn
53+
prisma
54+
lg
55+
py-6
56+
vh
57+
nanoid
58+
vercel
59+
textarea
60+
www.flickr.com
61+
dl.dropboxusercontent.com
62+
Ghw
63+
bFpfwkUySLaGrh
64+
Eml
65+
Hdoecp
66+
Olw
67+
Jba
68+
Bgsq
69+
gw
70+
Nkantw
71+
Fho

Diff for: README.md

+35-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua)
22
![Vercel Deploy](https://therealsujitk-vercel-badge.vercel.app/?app=an-artist-art&style=plastic)
33

4-
# AnArtistArt
4+
# AnArtist.Store
55

6-
Welcome to **AnArtistArt**, a platform where creativity comes to life! 🎨
6+
Welcome to **AnArtist.Store**, a shop where creativity comes to life! 🎨
77

8-
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).
8+
This is a [Next.js](https://nextjs.org/) project bootstrapped
9+
with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
910

1011
## Overview
1112

12-
**AnArtistArt** is an e-commerce project dedicated to showcasing unique and handmade creations by talented artist [Anna](https://www.instagram.com/anartistart). From stylish clothes to whimsical soft toys, each piece is crafted with care and passion.
13+
**AnArtist.Store** is an e-commerce project dedicated to showcasing unique and
14+
handmade creations by talented
15+
artist [Anna](https://www.instagram.com/anartistart).
16+
From stylish clothes to
17+
whimsical soft toys, each piece is crafted with care and passion.
1318

1419
## Features
1520

16-
Gallery: Explore our gallery to discover a delightful collection of artistic creations.
17-
Product Details: Click on any item to view detailed information, including descriptions, materials, and pricing.
18-
Favorites: Mark your favorite pieces and create your personalized wishlist.
19-
Contact: Have questions or want to place an order? Reach out to us via the contact form.
21+
Gallery: Explore our gallery to discover a delightful collection of artistic
22+
creations.
23+
Product Details: Click on any item to view detailed information, including
24+
descriptions, materials, and pricing.
25+
Cart: Mark your favorite pieces and create your personalized cart.
26+
Contact: Have questions or want to place an order?
27+
Reach out to us via the contact form.
2028

2129
## Getting Started
2230

@@ -46,17 +54,22 @@ npm run dev
4654

4755
```
4856

49-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
57+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the
58+
result.
5059

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

5363
## Technologies Used
5464

55-
- [Next.js](https://nextjs.org/): A React framework for building full-stack web applications.
65+
- [Next.js](https://nextjs.org/): A React framework for building full-stack web
66+
applications.
5667

57-
- [`MongoDB`](https://www.mongodb.com/): Store product data and manage inventory.
68+
- [`MongoDB`](https://www.mongodb.com/): Store product data and manage
69+
inventory.
5870

59-
- [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Rubik, a custom Google Font.
71+
- [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to
72+
automatically optimize and load Rubik, a custom Google Font.
6073

6174
- **Tailwind CSS**: A utility-first CSS framework for rapidly building custom
6275
designs.
@@ -83,11 +96,15 @@ You can start editing the page by modifying `app/page.tsx`. The page auto-update
8396

8497
## Contributing
8598

86-
We welcome contributions! If you’re an artist, designer, or developer, feel free to join our creative community. Fork this repository, make your enhancements, and submit a pull request.
99+
We welcome contributions!
100+
If you’re an artist, designer, or developer, feel free to join our creative
101+
community.
102+
Fork this repository, make your enhancements, and submit a pull request.
87103

88104
## Contact
89105

90-
For inquiries, collaborations, or custom orders, reach out to us at [email protected].
106+
For inquiries, collaborations, or custom orders, reach out to us at
107+
91108

92109
Let’s celebrate art together! 🌟🎨
93110

@@ -96,7 +113,6 @@ Let’s celebrate art together! 🌟🎨
96113
This project is based on the
97114
[Next.js 14 E-Commerce Website (Server Actions, TypeScript, Deployment, TailwindCSS, Prisma, DaisyUI)](https://youtu.be/AaiijESQH5o?si=2Bxmsw5_tHhQ6gEN)
98115
by [Coding in Flow](https://github.com/codinginflow) YouTube channel.
99-
All credit goes to the original
100-
author [Florian Walther](https://github.com/florianwalther-private).
101-
I only followed
102-
along and made some minor changes.
116+
All credit goes to the original author
117+
[Florian Walther](https://github.com/florianwalther-private).
118+
I only followed along and made some minor changes.

Diff for: constants.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const APP_NAME = 'AnArtist.Store';
2+
export const DOMAIN = 'https://an-artist.store';
3+
export const DEVELOPER_DOMAIN = 'turskyi.com';
4+
export const AUTHOR = 'Anna Turska';

Diff for: next.config.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const nextConfig = {
1111
{ hostname: 'scontent-ams4-1.cdninstagram.com' },
1212
{ hostname: 'live.staticflickr.com' },
1313
{ hostname: 'an-artist.store' },
14+
{ hostname: 'www.flickr.com' },
15+
{ hostname: '*.public.blob.vercel-storage.com' },
16+
{ hostname: 'dl.dropboxusercontent.com' },
17+
{ hostname: 'www.dropbox.com' },
1418
],
1519
},
1620
experimental: {

0 commit comments

Comments
 (0)