la-flowerita 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. package/README.md +70 -0
  2. package/package.json +78 -0
  3. package/public/favicon.ico +0 -0
  4. package/public/images/1.jpg +0 -0
  5. package/public/images/2.jpg +0 -0
  6. package/public/images/3.jpg +0 -0
  7. package/public/images/Logo.png +0 -0
  8. package/public/images/add-user.png +0 -0
  9. package/public/images/contact-us.png +0 -0
  10. package/public/images/flower.png +0 -0
  11. package/public/images/flower_shop.png +0 -0
  12. package/public/images/flower_shop1.png +0 -0
  13. package/public/images/flowers/buttercup.png +0 -0
  14. package/public/images/flowers/daffodil.png +0 -0
  15. package/public/images/flowers/daisy.png +0 -0
  16. package/public/images/flowers/jasmine.png +0 -0
  17. package/public/images/flowers/lily.png +0 -0
  18. package/public/images/flowers/marigold.png +0 -0
  19. package/public/images/flowers/orchid.png +0 -0
  20. package/public/images/flowers/rose.png +0 -0
  21. package/public/images/flowers/sunflower.png +0 -0
  22. package/public/images/flowers/tulip.png +0 -0
  23. package/public/images/garbage.png +0 -0
  24. package/public/images/icon1.jpg +0 -0
  25. package/public/images/login.png +0 -0
  26. package/public/images/refresh.png +0 -0
  27. package/public/images/transaction.png +0 -0
  28. package/public/index.html +41 -0
  29. package/public/logo192.png +0 -0
  30. package/public/logo512.png +0 -0
  31. package/public/manifest.json +26 -0
  32. package/public/offline.html +44 -0
  33. package/public/robots.txt +3 -0
  34. package/public/serviceworker.js +44 -0
  35. package/server.js +97 -0
  36. package/src/App.css +38 -0
  37. package/src/App.js +25 -0
  38. package/src/App.test.js +8 -0
  39. package/src/Config/db.js +5 -0
  40. package/src/Config/mail.js +7 -0
  41. package/src/Config/passport.js +34 -0
  42. package/src/Controllers/catalog.controller.js +78 -0
  43. package/src/Controllers/shoppinglist.controller.js +186 -0
  44. package/src/Controllers/user.controller.js +214 -0
  45. package/src/Controllers/wishlist.controller.js +150 -0
  46. package/src/Middleware/sendMail.js +29 -0
  47. package/src/Middleware/uploadImage.js +26 -0
  48. package/src/Models/orderProducts.js +10 -0
  49. package/src/Models/products.js +17 -0
  50. package/src/Models/shoppinglists.js +12 -0
  51. package/src/Models/userShoppinglists.js +9 -0
  52. package/src/Models/users.js +57 -0
  53. package/src/Models/wishlists.js +9 -0
  54. package/src/Routes/auth.js +21 -0
  55. package/src/Routes/indexRouter.js +40 -0
  56. package/src/Services/ProductService.js +76 -0
  57. package/src/Services/ShoppinglistService.js +135 -0
  58. package/src/Services/UserService.js +63 -0
  59. package/src/Services/WishlistService.js +105 -0
  60. package/src/components/About.js +45 -0
  61. package/src/components/Auth.js +15 -0
  62. package/src/components/Catalog.js +118 -0
  63. package/src/components/Chat.js +77 -0
  64. package/src/components/Contact.js +48 -0
  65. package/src/components/Dashboard.js +13 -0
  66. package/src/components/DetailsProductModal.js +362 -0
  67. package/src/components/LoginModal.js +173 -0
  68. package/src/components/NewProductModal.js +271 -0
  69. package/src/components/NoPermission.js +10 -0
  70. package/src/components/OrderedProduct.js +104 -0
  71. package/src/components/PreChat.js +51 -0
  72. package/src/components/Product.js +158 -0
  73. package/src/components/ResetPassword.js +211 -0
  74. package/src/components/ShoppingCart.js +198 -0
  75. package/src/components/SideNav.js +76 -0
  76. package/src/components/SignupModal.js +306 -0
  77. package/src/components/Spinner.js +22 -0
  78. package/src/components/Wishlist.js +195 -0
  79. package/src/components/social-config.js +17 -0
  80. package/src/css/about.css +12 -0
  81. package/src/css/catalog.css +218 -0
  82. package/src/css/chat.css +191 -0
  83. package/src/css/contact.css +404 -0
  84. package/src/css/index.css +129 -0
  85. package/src/css/newProductModal.css +69 -0
  86. package/src/css/noPermission.css +89 -0
  87. package/src/css/orderedProduct.css +0 -0
  88. package/src/css/resetPassword.css +44 -0
  89. package/src/css/shoppingCart.css +10 -0
  90. package/src/css/sideNav.css +68 -0
  91. package/src/css/spinner.css +23 -0
  92. package/src/images/1.jpg +0 -0
  93. package/src/images/2.jpg +0 -0
  94. package/src/images/3.jpg +0 -0
  95. package/src/images/Logo.png +0 -0
  96. package/src/images/add-user.png +0 -0
  97. package/src/images/buttercup.png +0 -0
  98. package/src/images/contact-us.png +0 -0
  99. package/src/images/daffodil.png +0 -0
  100. package/src/images/daisy.png +0 -0
  101. package/src/images/flower.png +0 -0
  102. package/src/images/flower_shop.png +0 -0
  103. package/src/images/flower_shop1.png +0 -0
  104. package/src/images/flowers/buttercup.png +0 -0
  105. package/src/images/flowers/daffodil.png +0 -0
  106. package/src/images/flowers/daisy.png +0 -0
  107. package/src/images/flowers/jasmine.png +0 -0
  108. package/src/images/flowers/lily.png +0 -0
  109. package/src/images/flowers/marigold.png +0 -0
  110. package/src/images/flowers/orchid.png +0 -0
  111. package/src/images/flowers/rose.png +0 -0
  112. package/src/images/flowers/sunflower.png +0 -0
  113. package/src/images/flowers/tulip.png +0 -0
  114. package/src/images/garbage.png +0 -0
  115. package/src/images/icon1.jpg +0 -0
  116. package/src/images/jasmine.png +0 -0
  117. package/src/images/lily.png +0 -0
  118. package/src/images/login.png +0 -0
  119. package/src/images/marigold.png +0 -0
  120. package/src/images/orchid.png +0 -0
  121. package/src/images/refresh.png +0 -0
  122. package/src/images/rose.png +0 -0
  123. package/src/images/sunflower.png +0 -0
  124. package/src/images/transaction.png +0 -0
  125. package/src/images/tulip.png +0 -0
  126. package/src/index.js +371 -0
  127. package/src/logo.svg +1 -0
  128. package/src/reportWebVitals.js +13 -0
  129. package/src/setupTests.js +5 -0
@@ -0,0 +1,218 @@
1
+ /* header {
2
+ padding: 1rem 0;
3
+ }
4
+
5
+ .main-content {
6
+ margin-top: 2rem;
7
+ }
8
+
9
+ .product {
10
+ border: 1px solid #ccc;
11
+ border-radius: 5px;
12
+ padding: 1rem 0;
13
+ margin: 1rem 0;
14
+ }
15
+
16
+ .product-detail {
17
+ padding: 0 2rem;
18
+ }
19
+
20
+ .product-price {
21
+ font-weight: bold;
22
+ font-size: 140%;
23
+ }
24
+
25
+ .circle {
26
+ width: 10px;
27
+ height: 10px;
28
+ -webkit-border-radius: 25px;
29
+ -moz-border-radius: 25px;
30
+ border-radius: 25px;
31
+ background: none;
32
+ } */
33
+
34
+ /*
35
+ * Design by Robert Mayer:https://goo.gl/CJ7yC8
36
+ *
37
+ *I intentionally left out the line that was supposed to be below the subheader simply because I don't like how it looks.
38
+ *
39
+ * Chronicle Display Roman font was substituted for similar fonts from Google Fonts.
40
+ */
41
+
42
+ /* body {
43
+ background-color: #fdf1ec;
44
+ } */
45
+
46
+ /* Float four columns side by side */
47
+ .column {
48
+ float: left;
49
+ width: 33%;
50
+ padding: 0 10px;
51
+ box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
52
+
53
+ }
54
+
55
+ /* Remove extra left and right margins, due to padding */
56
+ .row {margin: 0 -5px;}
57
+
58
+ /* Clear floats after the columns */
59
+ .row:after {
60
+ content: "";
61
+ display: table;
62
+ clear: both;
63
+ }
64
+
65
+ /* Responsive columns */
66
+ @media screen and (max-width: 600px) {
67
+ .column {
68
+ width: 100%;
69
+ display: block;
70
+ margin-bottom: 20px;
71
+ }
72
+ }
73
+ .wrapper {
74
+ /* height: 4px;
75
+ width: 6px; */
76
+ margin: 50px auto;
77
+ border-radius: 7px 7px 7px 7px;
78
+ /* VIA CSS MATIC https://goo.gl/cIbnS */
79
+ -webkit-box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
80
+ -moz-box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
81
+ box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
82
+ }
83
+
84
+ .product-img {
85
+ float: left;
86
+ height: 200px;
87
+ width: 200px;
88
+ }
89
+
90
+ .product-img img {
91
+ border-radius: 7px 0 0 7px;
92
+ width: 200px;
93
+ height: 200px;
94
+ }
95
+
96
+ .product-info {
97
+ float: left;
98
+ height: 420px;
99
+ width: 327px;
100
+ border-radius: 0 7px 10px 7px;
101
+ background-color: #ffffff;
102
+ }
103
+
104
+ .product-text {
105
+ height: 300px;
106
+ width: 327px;
107
+ }
108
+
109
+ .product-text h1 {
110
+ margin: 0 0 0 38px;
111
+ padding-top: 52px;
112
+ font-size: 34px;
113
+ color: #474747;
114
+ }
115
+
116
+ .product-text h1,
117
+ .product-price-btn p {
118
+ font-family: 'Bentham', serif;
119
+ }
120
+
121
+ .product-text h2 {
122
+ margin: 0 0 47px 38px;
123
+ font-size: 13px;
124
+ font-family: 'Raleway', sans-serif;
125
+ font-weight: 400;
126
+ text-transform: uppercase;
127
+ color: #d2d2d2;
128
+ letter-spacing: 0.2em;
129
+ }
130
+
131
+ .product-text p {
132
+ height: 125px;
133
+ margin: 0 0 0 38px;
134
+ font-family: 'Playfair Display', serif;
135
+ color: #8d8d8d;
136
+ line-height: 1.7em;
137
+ font-size: 15px;
138
+ font-weight: lighter;
139
+ overflow: hidden;
140
+ }
141
+
142
+ .product-price-btn {
143
+ height: 103px;
144
+ width: 327px;
145
+ margin-top: 17px;
146
+ position: relative;
147
+ }
148
+
149
+ .product-price-btn p {
150
+ display: inline-block;
151
+ position: absolute;
152
+ top: -13px;
153
+ height: 50px;
154
+ font-family: 'Trocchi', serif;
155
+ margin: 10px 10px 10px 210px;
156
+ font-size: 28px;
157
+ font-weight: lighter;
158
+ color: #474747;
159
+ }
160
+
161
+ .product-span span {
162
+ display: inline-block;
163
+ height: 50px;
164
+ font-family: 'Suranna', serif;
165
+ font-size: 34px;
166
+ }
167
+
168
+ .product-price-btn button {
169
+ /* float: right; */
170
+ display: inline-block;
171
+ height: 40px;
172
+ width: 40px;
173
+ margin: 0 20px 0 0px;
174
+ box-sizing: border-box;
175
+ border: transparent;
176
+ border-radius: 60px;
177
+ font-family: 'Raleway', sans-serif;
178
+ font-size: 14px;
179
+ font-weight: 500;
180
+ text-transform: uppercase;
181
+ letter-spacing: 0.2em;
182
+ color: #ffffff;
183
+ background-color: #9cebd5;
184
+ cursor: pointer;
185
+ outline: none;
186
+ }
187
+
188
+ .product-price-btn button:hover {
189
+ background-color: #79b0a1;
190
+ }
191
+ .catalog-btn
192
+ {
193
+ margin:10px 0px 10px 0px;
194
+
195
+ }
196
+ .catalog-btn button {
197
+ /* float: right; */
198
+ display: inline-block;
199
+ height: 40px;
200
+ width: 40px;
201
+ margin: 0 20px 0 0px;
202
+ box-sizing: border-box;
203
+ border: transparent;
204
+ border-radius: 60px;
205
+ font-family: 'Raleway', sans-serif;
206
+ font-size: 14px;
207
+ font-weight: 500;
208
+ text-transform: uppercase;
209
+ letter-spacing: 0.2em;
210
+ color: #ffffff;
211
+ background-color: #9cebd5;
212
+ cursor: pointer;
213
+ outline: none;
214
+ }
215
+
216
+ .catalog-btn button:hover {
217
+ background-color: #79b0a1;
218
+ }
@@ -0,0 +1,191 @@
1
+ .PreChat {
2
+ width: 100vw;
3
+ height: 100vh;
4
+ background: #fff;
5
+ color: #212121;
6
+ font-family: "Open Sans", sans-serif;
7
+ display: grid;
8
+ place-items: center;
9
+ }
10
+ body {
11
+ margin: 0%;
12
+ padding: 0%;
13
+ }
14
+ @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,700");
15
+
16
+ .joinChatContainer {
17
+ display: flex;
18
+ flex-direction: column;
19
+ text-align: center;
20
+ }
21
+
22
+ .joinChatContainer h3 {
23
+ font-size: 2.5rem;
24
+ margin-bottom: 1rem;
25
+ }
26
+ .joinChatContainer input {
27
+ width: 210px;
28
+ height: 40px;
29
+ margin: 7px;
30
+ border: 2px solid #43a047;
31
+ border-radius: 5px;
32
+ padding: 5px;
33
+ font-size: 16px;
34
+ }
35
+
36
+ .joinChatContainer button {
37
+ width: 225px;
38
+ height: 50px;
39
+ margin: 7px;
40
+ border: none;
41
+ border-radius: 5px;
42
+ padding: 5px;
43
+ font-size: 16px;
44
+ background: #43a047;
45
+ color: #fff;
46
+ cursor: pointer;
47
+ }
48
+
49
+ .joinChatContainer button:hover {
50
+ background: #2e7d32;
51
+ }
52
+
53
+ .chat-window {
54
+ width: 300px;
55
+ height: 420px;
56
+ }
57
+
58
+ .chat-window p {
59
+ margin: 0;
60
+ }
61
+ .chat-window .chat-header {
62
+ height: 45px;
63
+ border-radius: 6px;
64
+ background: #263238;
65
+ position: relative;
66
+ cursor: pointer;
67
+ }
68
+ .chat-window .chat-header p {
69
+ display: block;
70
+ padding: 0 1em 0 2em;
71
+ color: #fff;
72
+ font-weight: 700;
73
+ line-height: 45px;
74
+ }
75
+
76
+ .chat-window .chat-body {
77
+ height: calc(450px - (45px + 70px));
78
+ border: 1px solid #263238;
79
+ background: #fff;
80
+
81
+ position: relative;
82
+ }
83
+ .chat-window .chat-body .message-container {
84
+ width: 100%;
85
+ height: 100%;
86
+ overflow-y: scroll;
87
+ overflow-x: hidden;
88
+ }
89
+
90
+ .chat-window .chat-body .message-container::-webkit-scrollbar {
91
+ display: none;
92
+ }
93
+ .chat-window .chat-body .message {
94
+ height: auto;
95
+ padding: 10px;
96
+ display: flex;
97
+ }
98
+
99
+ .chat-window .chat-body .message .message-content {
100
+ width: auto;
101
+ height: auto;
102
+ min-height: 40px;
103
+ max-width: 120px;
104
+ background-color: #43a047;
105
+ border-radius: 5px;
106
+ color: white;
107
+ display: flex;
108
+ align-items: center;
109
+ margin-right: 5px;
110
+ margin-left: 5px;
111
+ padding-right: 5px;
112
+ padding-left: 5px;
113
+ overflow-wrap: break-word;
114
+ word-break: break-word;
115
+ }
116
+
117
+ #you {
118
+ justify-content: flex-start;
119
+ }
120
+
121
+ #you .message-content {
122
+ justify-content: flex-start;
123
+ }
124
+
125
+ #you .message-meta {
126
+ justify-content: flex-start;
127
+ margin-left: 5px;
128
+ }
129
+
130
+ #other {
131
+ justify-content: flex-end;
132
+ }
133
+
134
+ #other .message-content {
135
+ justify-content: flex-end;
136
+ background-color: cornflowerblue;
137
+ }
138
+
139
+ #other .message-meta {
140
+ justify-content: flex-end;
141
+ margin-right: 5px;
142
+ }
143
+
144
+ .message-meta #author {
145
+ margin-left: 10px;
146
+ font-weight: bold;
147
+ }
148
+
149
+ .chat-window .chat-body .message .message-meta {
150
+ display: flex;
151
+ font-size: 12px;
152
+ }
153
+
154
+ .chat-window .chat-footer {
155
+ height: 40px;
156
+ border: 1px solid #263238;
157
+ border-top: none;
158
+ display: flex;
159
+ }
160
+
161
+ .chat-window .chat-footer input {
162
+ height: 100%;
163
+ flex: 85%;
164
+ border: 0;
165
+ padding: 0 0.7em;
166
+ font-size: 1em;
167
+ border-right: 1px dotted #607d8b;
168
+
169
+ outline: none;
170
+ font-family: "Open Sans", sans-serif;
171
+ }
172
+
173
+ .chat-window .chat-footer button {
174
+ border: 0;
175
+ display: grid;
176
+ place-items: center;
177
+ cursor: pointer;
178
+ flex: 15%;
179
+ height: 100%;
180
+ background: transparent;
181
+ outline: none;
182
+ font-size: 25px;
183
+ color: lightgray;
184
+ }
185
+
186
+ .chat-window .chat-footer button:hover {
187
+ color: #43a047;
188
+ }
189
+ .hide {
190
+ opacity: 0 !important;
191
+ }