From f2770683dfa34aac38ae785298d0ec3080d35273 Mon Sep 17 00:00:00 2001 From: yusmardianto Date: Tue, 30 Nov 2021 08:56:16 +0700 Subject: [PATCH] samain path --- components/BigdataAnalytics/IndustriesWeServe.js | 120 + components/BigdataAnalytics/MainBanner.js | 40 +- components/BigdataAnalytics/Services.js | 24 +- components/Contact/ContactForm.js | 170 - components/Contact/ContactInfo.js | 46 - components/Contact/GoogleMap.js | 11 - components/DigitalAgency/AboutUsContent.js | 54 - components/DigitalAgency/DigitalAgencyFunFacts.js | 61 - components/DigitalAgency/MainBanner.js | 46 - components/DigitalAgency/OurServices.js | 161 - components/DigitalAgency/Projects.js | 125 - components/DigitalAgency/WhatWeOffer.js | 118 - .../DigitalAgencyPortfolio/AboutUsContent.js | 56 - components/DigitalAgencyPortfolio/CreativeArea.js | 33 - components/DigitalAgencyPortfolio/MainBanner.js | 83 - components/DigitalAgencyPortfolio/Partner.js | 91 - components/DigitalAgencyPortfolio/Projects.js | 112 - components/Features/OurFeatures.js | 105 - components/Features/SingleFeatures.js | 295 -- components/Hosting/DomainSearch.js | 44 - components/Hosting/Features.js | 105 - components/Hosting/MainBanner.js | 110 - components/Hosting/TopFeatures.js | 71 - components/Hosting/WhyChoose.js | 91 - components/IOT/Cta.js | 42 - components/IOT/Features.js | 58 - components/IOT/MainBanner.js | 43 - components/IOT/OurServices.js | 111 - components/IOT/WhyWeAreBest.js | 60 - components/ITStartup/Features.js | 79 - components/ITStartup/MainBanner.js | 149 - components/ITStartup/OurFeatures.js | 105 - components/ITStartup/ServicesArea.js | 295 -- components/ITStartupTwo/Features.js | 79 - components/ITStartupTwo/MainBanner.js | 78 - components/ITStartupTwo/OurServices.js | 147 - components/ITStartupTwo/ServicesArea.js | 295 -- components/MachineLearning/AboutUsContent.js | 54 - components/MachineLearning/BlogCard.js | 149 - components/MachineLearning/MainBanner.js | 121 - components/MachineLearning/OurServices.js | 125 - components/MachineLearning/Partner.js | 113 - components/MachineLearning/Projects.js | 125 - components/MachineLearning/WhatWeOffer.js | 125 - components/MachineLearningTwo/AboutUsContent.js | 54 - components/MachineLearningTwo/BlogCard.js | 149 - components/MachineLearningTwo/MainBanner.js | 55 - components/MachineLearningTwo/OurServices.js | 125 - components/MachineLearningTwo/Partner.js | 113 - components/MachineLearningTwo/Projects.js | 125 - components/MachineLearningTwo/WhatWeOffer.js | 125 - components/PCRepair/AboutUsContent.js | 63 - components/PCRepair/CTA.js | 38 - components/PCRepair/MainBanner.js | 52 - components/PCRepair/Services.js | 111 - components/PCRepair/Team.js | 185 - components/PCRepair/WhyChoose.js | 81 - components/PricingPlans/PricingStyleFour.js | 257 -- components/PricingPlans/PricingStyleOne.js | 128 - components/PricingPlans/PricingStyleThree.js | 243 -- components/PricingPlans/PricingStyleTwo.js | 121 - components/Sales/Sales_Detail.js | 32 +- components/Yamaha/LatestNews/LatestNewsDetail.js | 167 - components/Yamaha/Product/Motor_Detail.js | 10 +- components/Yamaha/Shop/Checkout.js | 200 +- components/Yamaha/Shop/OrderList.js | 0 components/Yamaha/Shop/OrderSummary.js | 149 + package.json | 3 + pages/Sales/Sales.js | 66 - pages/Sales/sales_detail.js | 66 + pages/_app.js | 4 +- pages/about-1.js | 80 - pages/about-2.js | 83 - pages/about-3.js | 102 - pages/api/contact.js | 1 - pages/bigdata-analytics.js | 36 - pages/blog-1.js | 249 -- pages/blog-2.js | 258 -- pages/blog-3.js | 250 -- pages/blog-4.js | 258 -- pages/blog-5.js | 246 -- pages/blog-6.js | 254 -- pages/blog-details.js | 315 -- pages/contact.js | 27 - pages/digital-agency-portfolio.js | 28 - pages/digital-agency.js | 34 - pages/faq.js | 158 - pages/feature-details.js | 121 - pages/features.js | 24 - pages/feedback.js | 33 - pages/hosting.js | 36 - pages/iot.js | 34 - pages/it-startup-2.js | 34 - pages/it-startup.js | 36 - pages/machine-learning-2.js | 36 - pages/machine-learning.js | 36 - pages/pc-repair.js | 34 - pages/pricing.js | 29 - pages/privacy-policy.js | 34 - pages/project-details.js | 106 - pages/projects-1.js | 229 -- pages/projects-2.js | 121 - pages/service-details.js | 115 - pages/services-1.js | 158 - pages/services-2.js | 129 - pages/services-3.js | 209 - pages/services-4.js | 212 - pages/services-5.js | 165 - pages/team.js | 386 -- pages/term-condition.js | 34 - pages/yamaha/Shop/Checkout.js | 14 +- pages/yamaha/Shop/OrderSummary.js | 49 + yarn.lock | 4326 +++++++++++++++++++- 113 files changed, 4909 insertions(+), 11457 deletions(-) create mode 100644 components/BigdataAnalytics/IndustriesWeServe.js delete mode 100644 components/Contact/ContactForm.js delete mode 100644 components/Contact/ContactInfo.js delete mode 100644 components/Contact/GoogleMap.js delete mode 100644 components/DigitalAgency/AboutUsContent.js delete mode 100644 components/DigitalAgency/DigitalAgencyFunFacts.js delete mode 100644 components/DigitalAgency/MainBanner.js delete mode 100644 components/DigitalAgency/OurServices.js delete mode 100644 components/DigitalAgency/Projects.js delete mode 100644 components/DigitalAgency/WhatWeOffer.js delete mode 100644 components/DigitalAgencyPortfolio/AboutUsContent.js delete mode 100644 components/DigitalAgencyPortfolio/CreativeArea.js delete mode 100644 components/DigitalAgencyPortfolio/MainBanner.js delete mode 100644 components/DigitalAgencyPortfolio/Partner.js delete mode 100644 components/DigitalAgencyPortfolio/Projects.js delete mode 100644 components/Features/OurFeatures.js delete mode 100644 components/Features/SingleFeatures.js delete mode 100644 components/Hosting/DomainSearch.js delete mode 100644 components/Hosting/Features.js delete mode 100644 components/Hosting/MainBanner.js delete mode 100644 components/Hosting/TopFeatures.js delete mode 100644 components/Hosting/WhyChoose.js delete mode 100644 components/IOT/Cta.js delete mode 100644 components/IOT/Features.js delete mode 100644 components/IOT/MainBanner.js delete mode 100644 components/IOT/OurServices.js delete mode 100644 components/IOT/WhyWeAreBest.js delete mode 100644 components/ITStartup/Features.js delete mode 100644 components/ITStartup/MainBanner.js delete mode 100644 components/ITStartup/OurFeatures.js delete mode 100644 components/ITStartup/ServicesArea.js delete mode 100644 components/ITStartupTwo/Features.js delete mode 100644 components/ITStartupTwo/MainBanner.js delete mode 100644 components/ITStartupTwo/OurServices.js delete mode 100644 components/ITStartupTwo/ServicesArea.js delete mode 100644 components/MachineLearning/AboutUsContent.js delete mode 100644 components/MachineLearning/BlogCard.js delete mode 100644 components/MachineLearning/MainBanner.js delete mode 100644 components/MachineLearning/OurServices.js delete mode 100644 components/MachineLearning/Partner.js delete mode 100644 components/MachineLearning/Projects.js delete mode 100644 components/MachineLearning/WhatWeOffer.js delete mode 100644 components/MachineLearningTwo/AboutUsContent.js delete mode 100644 components/MachineLearningTwo/BlogCard.js delete mode 100644 components/MachineLearningTwo/MainBanner.js delete mode 100644 components/MachineLearningTwo/OurServices.js delete mode 100644 components/MachineLearningTwo/Partner.js delete mode 100644 components/MachineLearningTwo/Projects.js delete mode 100644 components/MachineLearningTwo/WhatWeOffer.js delete mode 100644 components/PCRepair/AboutUsContent.js delete mode 100644 components/PCRepair/CTA.js delete mode 100644 components/PCRepair/MainBanner.js delete mode 100644 components/PCRepair/Services.js delete mode 100644 components/PCRepair/Team.js delete mode 100644 components/PCRepair/WhyChoose.js delete mode 100644 components/PricingPlans/PricingStyleFour.js delete mode 100644 components/PricingPlans/PricingStyleOne.js delete mode 100644 components/PricingPlans/PricingStyleThree.js delete mode 100644 components/PricingPlans/PricingStyleTwo.js delete mode 100644 components/Yamaha/Shop/OrderList.js create mode 100644 components/Yamaha/Shop/OrderSummary.js delete mode 100644 pages/Sales/Sales.js create mode 100644 pages/Sales/sales_detail.js delete mode 100644 pages/about-1.js delete mode 100644 pages/about-2.js delete mode 100644 pages/about-3.js delete mode 100644 pages/bigdata-analytics.js delete mode 100644 pages/blog-1.js delete mode 100644 pages/blog-2.js delete mode 100644 pages/blog-3.js delete mode 100644 pages/blog-4.js delete mode 100644 pages/blog-5.js delete mode 100644 pages/blog-6.js delete mode 100644 pages/blog-details.js delete mode 100644 pages/contact.js delete mode 100644 pages/digital-agency-portfolio.js delete mode 100644 pages/digital-agency.js delete mode 100644 pages/faq.js delete mode 100644 pages/feature-details.js delete mode 100644 pages/features.js delete mode 100644 pages/feedback.js delete mode 100644 pages/hosting.js delete mode 100644 pages/iot.js delete mode 100644 pages/it-startup-2.js delete mode 100644 pages/it-startup.js delete mode 100644 pages/machine-learning-2.js delete mode 100644 pages/machine-learning.js delete mode 100644 pages/pc-repair.js delete mode 100644 pages/pricing.js delete mode 100644 pages/privacy-policy.js delete mode 100644 pages/project-details.js delete mode 100644 pages/projects-1.js delete mode 100644 pages/projects-2.js delete mode 100644 pages/service-details.js delete mode 100644 pages/services-1.js delete mode 100644 pages/services-2.js delete mode 100644 pages/services-3.js delete mode 100644 pages/services-4.js delete mode 100644 pages/services-5.js delete mode 100644 pages/team.js delete mode 100644 pages/term-condition.js create mode 100644 pages/yamaha/Shop/OrderSummary.js diff --git a/components/BigdataAnalytics/IndustriesWeServe.js b/components/BigdataAnalytics/IndustriesWeServe.js new file mode 100644 index 0000000..8a72b67 --- /dev/null +++ b/components/BigdataAnalytics/IndustriesWeServe.js @@ -0,0 +1,120 @@ +import React from 'react'; +import Link from 'next/link'; + +const IndustriesWeServe = () => { + return ( +
+
+
+

Industries We Serve

+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+ +
+
+
+
+ +
+ Manufacturing + + + +
+
+ +
+
+
+ +
+ Healthcare + + + +
+
+ +
+
+
+ +
+ Automobile + + + +
+
+ +
+
+
+ +
+ Banking + + + +
+
+ +
+
+
+ +
+ Real Estate + + + +
+
+ +
+
+
+ +
+ Logistics + + + +
+
+ +
+
+
+ +
+ Insurance + + + +
+
+ +
+
+
+ +
+ Capital Markets + + + +
+
+
+
+ +
+ image +
+
+ ) +} + +export default IndustriesWeServe; \ No newline at end of file diff --git a/components/BigdataAnalytics/MainBanner.js b/components/BigdataAnalytics/MainBanner.js index f07bad2..86b76e5 100644 --- a/components/BigdataAnalytics/MainBanner.js +++ b/components/BigdataAnalytics/MainBanner.js @@ -7,14 +7,50 @@ const MainBanner = () => {
-

Selamat Datang di Thamrin Group

-

Thamrin Group adalah perusahaan terkemuka di Sumatera Selatan & Bengkulu dengan fokus bisnis pada sektor otomotif dan properti.

+

Leading Big Data Analytics Company

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis ipsum suspendisse ultrices gravida.

Get Started
+ +
+
+
+
+
+
+ +
+

Analyze Your Data

+

Lorem ipsum dolor sit amet elit, adipiscing, sed do eiusmod tempor incididunt ut labore dolore magna aliqua.

+
+
+ +
+
+
+ +
+

Customized Plan

+

Lorem ipsum dolor sit amet elit, adipiscing, sed do eiusmod tempor incididunt ut labore dolore magna aliqua.

+
+
+ +
+
+
+ +
+

Implement Solution

+

Lorem ipsum dolor sit amet elit, adipiscing, sed do eiusmod tempor incididunt ut labore dolore magna aliqua.

+
+
+
+
+
) } diff --git a/components/BigdataAnalytics/Services.js b/components/BigdataAnalytics/Services.js index 52d2cde..c465bb5 100644 --- a/components/BigdataAnalytics/Services.js +++ b/components/BigdataAnalytics/Services.js @@ -7,18 +7,20 @@ const Services = () => {
-

Thamrin Group Businees Partner

+

Services We Can Help You With

+

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

- image -



+
+ image +

- Thamrin Brother's + Big Data Analysis

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ut labore et dolore magna aliqua.

@@ -37,11 +39,12 @@ const Services = () => {
- image -

+
+ image +

- Nusa Sarana Citra Bakti + Robust Analytics

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ut labore et dolore magna aliqua.

@@ -60,11 +63,12 @@ const Services = () => {
- image -

+
+ image +

- Citra Lestari Mobilindo + Marketing Analytics

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod ut labore et dolore magna aliqua.

diff --git a/components/Contact/ContactForm.js b/components/Contact/ContactForm.js deleted file mode 100644 index f761c69..0000000 --- a/components/Contact/ContactForm.js +++ /dev/null @@ -1,170 +0,0 @@ -import React, { useState } from 'react'; -import { useForm } from 'react-hook-form'; -import axios from 'axios'; -import Swal from 'sweetalert2' -import withReactContent from 'sweetalert2-react-content' -const MySwal = withReactContent(Swal) -import baseUrl from '../../utils/baseUrl'; - -const alertContent = () => { - MySwal.fire({ - title: 'Congratulations!', - text: 'Your message was successfully send and will back to you soon', - icon: 'success', - timer: 2000, - timerProgressBar: true, - showConfirmButton: false, - }) -} - -// Form initial state -const INITIAL_STATE = { - name: "", - email: "", - number: "", - subject: "", - text: "" -}; - -const ContactForm = () => { - - const [contact, setContact] = useState(INITIAL_STATE); - const { register, handleSubmit, errors } = useForm(); - - const handleChange = e => { - const { name, value } = e.target; - setContact(prevState => ({ ...prevState, [name]: value })); - console.log(contact) - } - - const onSubmit = async e => { - // e.preventDefault(); - try { - const url = `${baseUrl}/api/contact`; - const { name, email, number, subject, text } = contact; - const payload = { name, email, number, subject, text }; - await axios.post(url, payload); - console.log(url); - setContact(INITIAL_STATE); - alertContent(); - } catch (error) { - console.log(error) - } - }; - - return ( -
-
-
-

Get In Touch With Us

-
-

Anything On your Mind. We’ll Be Glad To Assist You!

-
- -
-
- image -
- -
-
-
-
-
- -
- {errors.name && 'Name is required.'} -
-
-
- -
-
- -
- {errors.email && 'Email is required.'} -
-
-
- -
-
- -
- {errors.number && 'Number is required.'} -
-
-
- -
-
- -
- {errors.subject && 'Subject is required.'} -
-
-
- -
-
- -

-

- - -

-

- - -

-

- - -

-

- - -

-

- -

- -
-
diff --git a/components/Yamaha/Product/Motor_Detail.js b/components/Yamaha/Product/Motor_Detail.js index edbf945..b7609e4 100644 --- a/components/Yamaha/Product/Motor_Detail.js +++ b/components/Yamaha/Product/Motor_Detail.js @@ -44,7 +44,6 @@ const ProductDetails = function ({ detailproduct, backend, user, ...props }) { }); const [OTRProduct, setProductOTR] = useState(''); - console.log("otr :", OTRProduct); const router = useRouter(); @@ -117,6 +116,7 @@ const ProductDetails = function ({ detailproduct, backend, user, ...props }) { var newformValue = { ...formValue, product_name: detailproduct[0].name, + // product_img: detailproduct[0].backend.img[0], } setFormValue(newformValue) console.log(JSON.stringify(newformValue)); @@ -169,7 +169,7 @@ const ProductDetails = function ({ detailproduct, backend, user, ...props }) {

- {/* +
-
*/} +
- {/* */} + diff --git a/components/Yamaha/Shop/Checkout.js b/components/Yamaha/Shop/Checkout.js index 3dba4ea..772510f 100644 --- a/components/Yamaha/Shop/Checkout.js +++ b/components/Yamaha/Shop/Checkout.js @@ -12,16 +12,27 @@ import { //library yarn import NumberFormat from 'react-number-format'; -const CheckoutContent = function ({ backend, checkout_product, user, provinces, ...props }) { - console.log(provinces); +//sweet alert +import swal from 'sweetalert'; +const CheckoutContent = function ({ backend, checkout_product, user, provinces, ...props }) { const [formValue, setFormValue] = React.useState({ - transaction_id: "", - product_img: "", + order_id: "", product_name: "", product_color: "", product_quantity: "", - product_total: "", + product_price: "", + product_courier: "JNE", + cust_name: "", + cust_telp: "", + cust_email: "", + cust_postCode: "", + cust_address: "", + cust_village: "", + cust_district: "", + cust_city: "", + cust_province: "", + note: "", }); return ( @@ -37,7 +48,46 @@ const CheckoutContent = function ({ backend, checkout_product, user, provinces,
-
+ { + e.preventDefault(); + var newformValue = { + ...formValue, + order_id: checkout_product[0].transaction_id, + product_name: checkout_product[0].product_name, + product_color: checkout_product[0].product_color, + product_quantity: checkout_product[0].product_quantity, + product_price: checkout_product[0].product_total, + } + setFormValue(newformValue) + console.log(JSON.stringify(newformValue)); + const response = await fetch( + "/api/transaction/create", + { + method: "POST", + headers: { + 'Content-Type': 'application/json' + }, + body: JSON.stringify(newformValue), + } + ); + if (response.ok) { + var res = await response.json(); + console.log("cek response :", res); + if (res["STATUS"] === 1) { + res["DATA"]["transaction"]; + swal("Produk Berhasil Ditambah ke Keranjang", "Silahkan Cek Keranjang Belanja Anda", "success"); + // router.push("/yamaha/Shop/Cart"); + } + else { + swal("Produk Gagal Ditambah ke Keranjang", "Silahkan Coba Lagi", "error"); + } + } else { + swal("Transaksi Gagal", "Silahkan Coba Lagi", "error"); + } + return false; + }} + >
@@ -47,73 +97,169 @@ const CheckoutContent = function ({ backend, checkout_product, user, provinces,
- + { + setFormValue({ + ...formValue, + cust_name: e.target.value.toString(), + }) + }} + />
- + { + setFormValue({ + ...formValue, + cust_telp: e.target.value.toString(), + }) + }} + />
- + { + setFormValue({ + ...formValue, + cust_email: e.target.value.toString(), + }) + }} + />
- + { + setFormValue({ + ...formValue, + cust_postCode: e.target.value.toString(), + }) + }} + />
- +
- + { + setFormValue({ + ...formValue, + cust_village: e.target.value.toString(), + }) + }} + />
- + { + setFormValue({ + ...formValue, + cust_district: e.target.value.toString(), + }) + }} + />
- + { + setFormValue({ + ...formValue, + cust_city: e.target.value.toString(), + }) + }} + />
-
+ { + setFormValue({ + ...formValue, + cust_province: e.target.value.toString(), + }) + }} + /> +
+
+ + {/*
+
+
-
+
*/} {/*
@@ -131,7 +277,19 @@ const CheckoutContent = function ({ backend, checkout_product, user, provinces,
- +
@@ -266,7 +424,7 @@ const CheckoutContent = function ({ backend, checkout_product, user, provinces, - $210.00 + 10$2.00 @@ -316,7 +474,7 @@ const CheckoutContent = function ({ backend, checkout_product, user, provinces,

*/} -
Lanjutkan Pembayaran +
diff --git a/components/Yamaha/Shop/OrderList.js b/components/Yamaha/Shop/OrderList.js deleted file mode 100644 index e69de29..0000000 diff --git a/components/Yamaha/Shop/OrderSummary.js b/components/Yamaha/Shop/OrderSummary.js new file mode 100644 index 0000000..4b8f7ab --- /dev/null +++ b/components/Yamaha/Shop/OrderSummary.js @@ -0,0 +1,149 @@ +import React from 'react'; +import { + Accordion, + AccordionItem, + AccordionItemHeading, + AccordionItemPanel, + AccordionItemButton +} from 'react-accessible-accordion'; + +const OrderSummary = () => { + return ( + <> +
+
+
+ + + + + + Nomer Pemesanan - Pesanan Sedang di Proses + + + + +

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. +

+
+
+ + + + + + Is Smart Lock required for instant apps? + + + + +

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. +

+
+
+ + + + + + Can I have multiple activities in a single feature? + + + + +

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. +

+
+
+ + + + + + Can I share resources between features? + + + + +

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. +

+
+
+ + + + + + Is multidex supported for instant apps? + + + + +

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. +

+
+
+ + + + + + Can I share resources between features? + + + + +

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. incididunt ut labore et dolore magna aliqua. +

+
+
+
+
+ +
+

Ask Your Question

+ +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+ +
+
+
+ + ) +} + +export default OrderSummary; \ No newline at end of file diff --git a/package.json b/package.json index 322cec4..b0b0a6b 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,8 @@ "cookies": "^0.8.0", "cross-fetch": "^3.1.4", "dotenv": "^10.0.0", + "firebase": "^9.5.0", + "firebase-tools": "^9.23.0", "graphql": "^15.6.1", "midtrans-client": "^1.2.5", "next": "^10.0.7", @@ -26,6 +28,7 @@ "react-accessible-accordion": "^3.3.4", "react-dom": "^17.0.1", "react-feather": "^2.0.9", + "react-firebaseui": "^6.0.0", "react-hook-form": "^6.15.4", "react-html-parser": "^2.0.2", "react-icons": "^4.3.1", diff --git a/pages/Sales/Sales.js b/pages/Sales/Sales.js deleted file mode 100644 index f400738..0000000 --- a/pages/Sales/Sales.js +++ /dev/null @@ -1,66 +0,0 @@ -import React from 'react'; -import TeamStyleTwo from '@/components/Sales/Sales_Detail'; -import Link from 'next/link'; -import * as Icon from 'react-feather'; - -import GetSales from "api/sales/sales-mercy.js"; - -const Sales = function ({ backend, sales, ...props }) { - - const currentYear = new Date().getFullYear(); - return ( - <> - -
-
-
-
-
-
    -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
  • - - - -
  • -
-
-

Copyright © {currentYear} All Right Reserved by @Thamrin Group

-
-
-
-
- - ) -} - -export default Sales; - -export async function getServerSideProps(context) { - var { query } = context; - var sales = []; - const backend = process.env.BACKEND_SERVER_URI; - - var res = await GetSales.GetDetailSalesMerci(query.s || 0); - if (res["STATUS"] === 1) { - sales = res["DATA"]["salesMercies"]; - } - - return { - props: { sales, backend }, // will be passed to the page component as props - }; -} \ No newline at end of file diff --git a/pages/Sales/sales_detail.js b/pages/Sales/sales_detail.js new file mode 100644 index 0000000..f400738 --- /dev/null +++ b/pages/Sales/sales_detail.js @@ -0,0 +1,66 @@ +import React from 'react'; +import TeamStyleTwo from '@/components/Sales/Sales_Detail'; +import Link from 'next/link'; +import * as Icon from 'react-feather'; + +import GetSales from "api/sales/sales-mercy.js"; + +const Sales = function ({ backend, sales, ...props }) { + + const currentYear = new Date().getFullYear(); + return ( + <> + +
+
+
+
+
+
    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
+

Copyright © {currentYear} All Right Reserved by @Thamrin Group

+
+
+
+
+ + ) +} + +export default Sales; + +export async function getServerSideProps(context) { + var { query } = context; + var sales = []; + const backend = process.env.BACKEND_SERVER_URI; + + var res = await GetSales.GetDetailSalesMerci(query.s || 0); + if (res["STATUS"] === 1) { + sales = res["DATA"]["salesMercies"]; + } + + return { + props: { sales, backend }, // will be passed to the page component as props + }; +} \ No newline at end of file diff --git a/pages/_app.js b/pages/_app.js index c63cf6f..634f070 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -21,8 +21,8 @@ export default function App({ Component, pageProps }) { const store = useStore(pageProps.initialReduxState) return ( - diff --git a/pages/about-1.js b/pages/about-1.js deleted file mode 100644 index da021d5..0000000 --- a/pages/about-1.js +++ /dev/null @@ -1,80 +0,0 @@ -import React from 'react'; -import Navbar from "@/components/_App/Navbar"; -import Team from "@/components/Common/Team"; -import FunFactsArea from "@/components/Common/FunFactsArea"; -import Partner from "@/components/Common/Partner"; -import Footer from "@/components/_App/Footer"; -import PageBanner from '@/components/Common/PageBanner'; - -const About1 = () => { - return ( - <> - - - - -
-
-
-
-
- image -
-
- -
-
-
-

About Us

-
-

Lorem ipsum dolor sit amet, con se ctetur adipiscing elit. In sagittis eg esta ante, sed viverra nunc tinci dunt nec elei fend et tiram.

-
- -

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sagittis egestas ante, sed viverra nunc tincidunt nec nteger nonsed condimntum elit, sit amet feugiat lorem. Proin tempus sagittis velit vitae scelerisque.

- -

Lorem ipsum dolor sit amet, con se ctetur adipiscing elit. In sagittis eg esta ante, sed viverra nunc tinci dunt nec elei fend et tiram.

- -

Business-to-business metrics analytics value proposition funding angel investor entrepreneur alpha ramen equity gamification. Social proof partner network research.

-
-
-
- -
-
-
-
-

Our History

-

Lorem ipsum dolor sit amet, con se ctetur adipiscing elit. In sagittis eg esta ante, sed viverra nunc tinci dunt nec elei fend et tiram.

-
-
- -
-
-

Our Mission

-

Lorem ipsum dolor sit amet, con se ctetur adipiscing elit. In sagittis eg esta ante, sed viverra nunc tinci dunt nec elei fend et tiram.

-
-
- -
-
-

Who We Are

-

Lorem ipsum dolor sit amet, con se ctetur adipiscing elit. In sagittis eg esta ante, sed viverra nunc tinci dunt nec elei fend et tiram.

-
-
-
-
-
-
- - - - - - - -