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/pages/faq.js b/components/Yamaha/Shop/OrderSummary.js similarity index 95% rename from pages/faq.js rename to components/Yamaha/Shop/OrderSummary.js index c5370da..4b8f7ab 100644 --- a/pages/faq.js +++ b/components/Yamaha/Shop/OrderSummary.js @@ -1,7 +1,4 @@ import React from 'react'; -import Navbar from "@/components/_App/Navbar"; -import Footer from "@/components/_App/Footer"; -import PageBanner from '@/components/Common/PageBanner'; import { Accordion, AccordionItem, @@ -10,13 +7,9 @@ import { AccordionItemButton } from 'react-accessible-accordion'; -const FAQ = () => { +const OrderSummary = () => { return ( <> - - - -
@@ -25,7 +18,7 @@ const FAQ = () => { - How do permissions work in Google Play Instant? + Nomer Pemesanan - Pesanan Sedang di Proses @@ -149,10 +142,8 @@ const FAQ = () => {
- -