From b4abdb00ef83aa824e8a05d5b75df48adb7b9629 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 3 May 2023 10:38:52 +0700 Subject: semi dynamic page --- .../components/elements/CountDown/CountDown.jsx | 19 +++++-- .../components/elements/Footer/BasicFooter.jsx | 66 +++++++++++++--------- .../components/elements/Navbar/NavbarDesktop.jsx | 5 +- .../components/elements/Navbar/NavbarMobile.jsx | 2 +- src/core/components/elements/Sidebar/Sidebar.jsx | 5 +- 5 files changed, 56 insertions(+), 41 deletions(-) (limited to 'src/core/components/elements') diff --git a/src/core/components/elements/CountDown/CountDown.jsx b/src/core/components/elements/CountDown/CountDown.jsx index 877f7998..91a1f68e 100644 --- a/src/core/components/elements/CountDown/CountDown.jsx +++ b/src/core/components/elements/CountDown/CountDown.jsx @@ -15,7 +15,8 @@ const CountDown = ({ initialTime }) => { useEffect(() => { const timer = setInterval(() => { - const totalSeconds = timeLeft.day * 86400 + timeLeft.hour * 3600 + timeLeft.minute * 60 + timeLeft.second + const totalSeconds = + timeLeft.day * 86400 + timeLeft.hour * 3600 + timeLeft.minute * 60 + timeLeft.second const secondsLeft = totalSeconds - 1 if (secondsLeft < 0) { clearInterval(timer) @@ -33,19 +34,27 @@ const CountDown = ({ initialTime }) => { return (
- {timeLeft.day.toString().padStart(2, '0')} + + {timeLeft.day.toString().padStart(2, '0')} + Hari
- {timeLeft.hour.toString().padStart(2, '0')} + + {timeLeft.hour.toString().padStart(2, '0')} + Jam
- {timeLeft.minute.toString().padStart(2, '0')} + + {timeLeft.minute.toString().padStart(2, '0')} + Menit
- {timeLeft.second.toString().padStart(2, '0')} + + {timeLeft.second.toString().padStart(2, '0')} + Detik
diff --git a/src/core/components/elements/Footer/BasicFooter.jsx b/src/core/components/elements/Footer/BasicFooter.jsx index eecd7fee..325d7d7b 100644 --- a/src/core/components/elements/Footer/BasicFooter.jsx +++ b/src/core/components/elements/Footer/BasicFooter.jsx @@ -22,6 +22,7 @@ const BasicFooter = () => { + {/* */} @@ -29,7 +30,7 @@ const BasicFooter = () => {
- +
@@ -49,6 +50,7 @@ const BasicFooter = () => { +
@@ -99,31 +101,22 @@ const AboutUs = () => (
Tentang Kami
  • - Company Profile -
  • -
  • - Karir -
  • -
  • - Pelanggan Kami + Company Profile
  • - Menjadi Supplier + Pelanggan Kami
  • - Garansi dan Pengembalian + Hubungi Kami
  • - Metode Pembayaran + Karir
  • - Metode Pengiriman + Syarat & Ketentuan
  • - Testimonial -
  • -
  • - Kebijakan Privacy + Kebijakan Privasi
@@ -131,34 +124,53 @@ const AboutUs = () => ( const CustomerGuide = () => (
-
Panduan Pelanggan
+
Bantuan & Panduan
  • - Panduan Belanja + Metode Pembayaran
  • - F.A.Q + Metode Pengiriman
  • - Kebijakan Privasi + Panduan Belanja
  • - Pengajuan Tempo + Panduan Quotation
  • - Garansi Produk + + Pengembalian Barang & Dana +
  • - Online Quotation + Informasi Garansi
  • - Pengiriman + Panduan Pick Up Service +
  • +
+
+) + +const Form = () => ( +
+
Formulir
+
    +
  • + Kunjungan Sales
  • - Pembayaran + Kunjungan Service
  • - Syarat & Ketentuan + Pembayaran Tempo +
  • +
  • + Surat Dukungan +
  • +
  • + Daftar Merchant
@@ -205,7 +217,7 @@ const OpenHours = () => ( const SocialMedias = () => (
Temukan Kami
-
+
diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx index aab43e26..43407fab 100644 --- a/src/core/components/elements/Navbar/NavbarDesktop.jsx +++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx @@ -42,16 +42,13 @@ const NavbarDesktop = () => {
- + Tentang Indoteknik.com
Pembayaran Tempo - - F.A.Q - Fitur Layanan diff --git a/src/core/components/elements/Navbar/NavbarMobile.jsx b/src/core/components/elements/Navbar/NavbarMobile.jsx index 072ed572..1fd7658e 100644 --- a/src/core/components/elements/Navbar/NavbarMobile.jsx +++ b/src/core/components/elements/Navbar/NavbarMobile.jsx @@ -31,7 +31,7 @@ const NavbarMobile = () => { return ( - +