diff --git a/src/components/home/Product/index.tsx b/src/components/home/Product/index.tsx index f6df0d5..0616220 100644 --- a/src/components/home/Product/index.tsx +++ b/src/components/home/Product/index.tsx @@ -2,7 +2,7 @@ import { Swiper, SwiperSlide } from 'swiper/react'; import { Navigation, Pagination, Autoplay } from 'swiper/modules'; import { categories } from "@/data/categories" -import { productList } from '@/data/products'; +import { productList } from '@/data/productList'; import CategoryIcon from "./CategoryIcon" import ProductItem from "@/components/shared/ProductItem" import Link from 'next/link'; diff --git a/src/components/product/Category/Banner/index.tsx b/src/components/product/Category/Banner/index.tsx index 32e82a0..4c88d13 100644 --- a/src/components/product/Category/Banner/index.tsx +++ b/src/components/product/Category/Banner/index.tsx @@ -1,19 +1,55 @@ -export default function Banner() { +'use client'; + +import Link from "next/link"; +import Image from 'next/image'; +import { banner } from "@/data/banner"; +import { Swiper, SwiperSlide } from 'swiper/react'; +import { Navigation, Pagination, Autoplay } from 'swiper/modules'; + +export default function Banner( {id}:any ) { + const { banner_category_2020 } = banner.product_list; + + const categoryBanner = banner_category_2020.filter((item: any) => { + const category_list = item.category_list.split(','); + return category_list.includes(String(id)); + }); + return ( -
-
- Các câu hỏi thường gặp
+- Nếu quý khách còn có bất kì câu hỏi nào cần hỗ trợ, vui lòng liên hệ với - chúng tôi qua các số hotline để được tư vấn và giải đáp nhanh chóng - nhất. + Nếu quý khách còn có bất kì câu hỏi nào cần hỗ trợ, vui lòng liên hệ với chúng tôi qua các số hotline để được tư vấn và giải đáp nhanh chóng nhất.
- Có thể kiểm tra tính tương thích của linh kiện trước khi đặt không? -
++ {item.title} +
-Có. Chúng tôi cung cấp công cụ "Build PC" để bạn dễ dàng chọn và kiểm - tra tính tương thích giữa CPU, mainboard, RAM, GPU, và các linh kiện - khác trước khi mua hàng. -
-Lọc sản phẩm
- +Danh mục
-- - Tất cả -
-Danh mục
-Khoảng giá
- -+ + Tất cả +
-Thương hiệu
-CPU
-Khoảng giá
+ +Thương hiệu
+ +{attr.name}
+ +Tổng 124 sản phẩm
+Tổng {total} sản phẩm
-Lọc theo:
-- Lựa chọn {" "} - -
-Lọc theo:
+ ++ Lựa chọn + +
+ +Tin tức mới nhất
+ {/* limit: 5 */} +
+
+
+
+
+
+
+
+ 0 Bình luận
++ Đánh giá HHPC CORE i7 14700 | 32G DDR5 | NVIDIA RTX 3060 12G{" "} +
+
-
-
-
+ - {" "} - Lượt xem: 0{" "} -
- -- Tình trạng: - Còn hàng - Liên hệ -
-Thông số sản phẩm
-- - BIG SALE -
-- {" "} - 48.990.000 đ{" "} -
-- {" "} - Giá đã bao gồm VAT{" "} -
-- {" "} - Bảo hành theo từng linh kiện{" "} -
-Liên hệ
-Kết thúc sau:
-00
00
00
00
-
- {" "}
- *KHÔNG ÁP DỤNG CỘNG DỒN CHƯƠNG TRÌNH KHUYẾN MẠI KHÁC{" "}
+
+ { productSummary &&
+
+ + Miễn phí giao hàng trên toàn quốc
- {" "} - 48.990.000 đ{" "} -
-- {" "} - Giá đã bao gồm VAT{" "} -
-- {" "} - Bảo hành theo từng linh kiện{" "} -
-Liên hệ
-- - Miễn phí giao hàng trên toàn quốc -
-- Xem chi nhánh còn hàng - -
-- {" "} - Yên Tâm Mua Sắm Tại HoangHaPC{" "} -
-- {" "} - Đội ngũ kỹ thuật tư vấn chuyên sâu{" "} -
-- {" "} - Thanh toán thuận tiện{" "} -
-- {" "} - Sản phẩm 100% chính hãng{" "} -
-- {" "} - Bảo hành 1 đổi 1 tại nơi sử dụng{" "} -
-- {" "} - Giá cạnh tranh nhất thị trường{" "} -
-- {" "} - Liên Hệ Với Kinh Doanh Online{" "} -
-- Hotline Hà Nội:{" "} - - {" "} - 0969123666{" "} - -
-- Hotline Vinh, Nghệ An:{" "} - - {" "} - 0988.163.666{" "} - -
-- Hotline Hồ Chí Minh:{" "} - - {" "} - 0968.123.666{" "} - -
-- Hotline Bảo Hành:{" "} - - {" "} - 1900.6100{" "} - -
-- {" "} - Tham gia Cộng đồng "Cẩm Nang Build PC - Đồ Họa, Render, Giả Lập" để - theo dõi các ưu đãi dành riêng cho thành viên{" "} -
-- {" "} - Đánh giá HHPC CORE i7 14700 | 32G DDR5 | NVIDIA RTX 3060 12G{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Lorem ipsum dolor, sit amet consectetur adipisicing elit. Delectus - neque facere tenetur, harum maiores aperiam ratione veniam - molestias error sunt nostrum deleniti, beatae est? Est ipsam - dignissimos vel optio a!{" "} -
-- {" "} - Đánh giá và bình luận{" "} -
- {/* Rating */} -0
-0 lượt đánh giá
- - -- {" "} - 5{" "} - {" "} -
-0
-- 4{" "} - -
-0
-- 3{" "} - -
-0
-- 2{" "} - -
-0
-- 1{" "} - -
-0
-Chọn đánh giá của bạn
--
0 Bình luận
-- {" "} - Thông số kỹ thuật{" "} -
-| - STT - | -- MÃ HÀNG - | -- TÊN HÀNG - | -- THỜI HẠN BẢO HÀNH - | -
| - 1 - | -- CPU - | -- - - INTEL CORE ULTRA 7 265K UP 5.5GHz | 20 CORE | 20 THREAD - - - | -- 36 THÁNG - | -
| - 2 - | -- MAIN - | -- - - COLORFUL BATTLE-AX Z890M-PLUS V20 DDR5 - - - | -- 36 THÁNG - | -
| - 3 - | -- TẢN NHIỆT - | -- - - ID-COOLING FROZN A620 PRO SE ARGB - - - | -- 12 THÁNG - | -
| - 4 - | -- RAM - | -- - - DDR5 TEAMGROUP T-CREATE EXPERT 32GB 6000MHz (2x16GB) - - - | -- 36 THÁNG - | -
| - 5 - | -- SSD - | -- - - TEAMGROUP G50 1TB PCIE Gen4x4 - RW 5000MB/s - - - | -- 60 THÁNG - | -
| - 6 - | -- - VGA - - | -- - - COLORFUL RTX 3060 NB DUO 12G V4 L-V GDDR6 - - - | -- 36 THÁNG - | -
| - 7 - | -- PSU - | -- - - DEEPCOOL PL750D 750W 80 PLUS BRONZE | ATX 3.1 | PCIE 5.1 - - - | -- 60 THÁNG - | -
| - 8 - | -- CASE - | -- - - XIGMATEK GAMING X II 3F - 3FAN RGB - - - | -- |
| - STT - | -- MÃ HÀNG - | -- TÊN HÀNG - | -- THỜI HẠN BẢO HÀNH - | -
| - 1 - | -- CPU - | -- - - INTEL CORE ULTRA 7 265K UP 5.5GHz | 20 CORE | 20 THREAD - - - | -- 36 THÁNG - | -
| - 2 - | -- MAIN - | -- - - COLORFUL BATTLE-AX Z890M-PLUS V20 DDR5 - - - | -- 36 THÁNG - | -
| - 3 - | -- TẢN NHIỆT - | -- - - ID-COOLING FROZN A620 PRO SE ARGB - - - | -- 12 THÁNG - | -
| - 4 - | -- RAM - | -- - - DDR5 TEAMGROUP T-CREATE EXPERT 32GB 6000MHz (2x16GB) - - - | -- 36 THÁNG - | -
| - 5 - | -- SSD - | -- - - TEAMGROUP G50 1TB PCIE Gen4x4 - RW 5000MB/s - - - | -- 60 THÁNG - | -
| - 6 - | -- - VGA - - | -- - - COLORFUL RTX 3060 NB DUO 12G V4 L-V GDDR6 - - - | -- 36 THÁNG - | -
| - 7 - | -- PSU - | -- - - DEEPCOOL PL750D 750W 80 PLUS BRONZE | ATX 3.1 | PCIE 5.1 - - - | -- 60 THÁNG - | -
| - 8 - | -- CASE - | -- - - XIGMATEK GAMING X II 3F - 3FAN RGB - - - | -- |
Tin tức mới nhất
- {/* limit: 5 */} -
-
-
-
-
-
-
-
-
-
- 22.000.000 đ
+
+
+ 22.000.000 đ
++ + Sẵn hàng +
++ + Quà tặng +
++ [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX + 3060 12GB +
+
+ Giá bán:
+
+ 48.990.000 đ
+
+
+ 52.000.000 đ
+
+
+ -6%
+
+
+ Bảo hành: + Theo từng linh kiện +
++ + Thông số sản phẩm +
++ + Khuyến mại hấp dẫn +
++ + + ⭐ Bảo Hành Tại Nơi Sử Dụng (Áp Dụng Nội Thành + Hà Nội và Hồ Chí Minh) + + +
++ + + ⭐ Bảo Hành Siêu Tốc 1 Đổi 1 Trong 24h + + +
++ + + ⭐ Miễn Phí 100% Vận Chuyển Toàn Quốc + + +
+- - Sẵn hàng -
-- - Quà tặng -
+
+
+ 22.000.000 đ
++ + Liên hệ +
++ [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX + 3060 12GB +
+
+ Giá bán:
+
+ 48.990.000 đ
+
+
+ 52.000.000 đ
+
+
+ -6%
+
+
+ Bảo hành: + Theo từng linh kiện +
++ + Thông số sản phẩm +
+
+
+ 22.000.000 đ
++ + Liên hệ +
++ + Quà tặng +
++ [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX + 3060 12GB +
+
+ Giá bán:
+
+ 48.990.000 đ
+
+
+ 52.000.000 đ
+
+
+ -6%
+
+
+ Bảo hành: + Theo từng linh kiện +
++ + Thông số sản phẩm +
++ + Khuyến mại hấp dẫn +
++ + + ⭐ Bảo Hành Tại Nơi Sử Dụng (Áp Dụng Nội Thành + Hà Nội và Hồ Chí Minh) + + +
++ + + ⭐ Bảo Hành Siêu Tốc 1 Đổi 1 Trong 24h + + +
++ + + ⭐ Miễn Phí 100% Vận Chuyển Toàn Quốc + + +
+
+
+ 22.000.000 đ
++ + Sẵn hàng +
++ [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX + 3060 12GB +
+
+ Giá bán:
+
+ 48.990.000 đ
+
+
+ 52.000.000 đ
+
+
+ -6%
+
+
+ Bảo hành: + Theo từng linh kiện +
+
+
+ 22.000.000 đ
++ + Sẵn hàng +
+ ++ [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX + 3060 12GB +
++ Giá bán: + + 48.990.000 đ + +
++ Bảo hành: + Theo từng linh kiện +
+
+
+ 22.000.000 đ
++ + Liên hệ +
++ + Quà tặng +
++ [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX + 3060 12GB +
+
+ Giá bán:
+
+ 48.990.000 đ
+
+
+ 52.000.000 đ
+
+
+ -6%
+
+
+ Bảo hành: + Theo từng linh kiện +
++ + Thông số sản phẩm +
++ + Khuyến mại hấp dẫn +
++ + + ⭐ Bảo Hành Tại Nơi Sử Dụng (Áp Dụng Nội Thành + Hà Nội và Hồ Chí Minh) + + +
++ + + ⭐ Bảo Hành Siêu Tốc 1 Đổi 1 Trong 24h + + +
++ + + ⭐ Miễn Phí 100% Vận Chuyển Toàn Quốc + + +
+
+
+ 22.000.000 đ
++ + Sẵn hàng +
++ + Quà tặng +
++ [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX + 3060 12GB +
+
+ Giá bán:
+
+ 48.990.000 đ
+
+
+ 52.000.000 đ
+
+
+ -6%
+
+
+ Bảo hành: + Theo từng linh kiện +
++ + Thông số sản phẩm +
++ + Khuyến mại hấp dẫn +
++ + + ⭐ Bảo Hành Tại Nơi Sử Dụng (Áp Dụng Nội Thành + Hà Nội và Hồ Chí Minh) + + +
++ + + ⭐ Bảo Hành Siêu Tốc 1 Đổi 1 Trong 24h + + +
++ + + ⭐ Miễn Phí 100% Vận Chuyển Toàn Quốc + + +
+- [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX - 3060 12GB -
-
- Giá bán:
-
- 48.990.000 đ
-
-
- 52.000.000 đ
-
-
- -6%
-
-
- Bảo hành: - Theo từng linh kiện -
-- - Thông số sản phẩm -
-- - Khuyến mại hấp dẫn -
-- - - ⭐ Bảo Hành Tại Nơi Sử Dụng (Áp Dụng Nội Thành - Hà Nội và Hồ Chí Minh) - - -
-- - - ⭐ Bảo Hành Siêu Tốc 1 Đổi 1 Trong 24h - - -
-- - - ⭐ Miễn Phí 100% Vận Chuyển Toàn Quốc - - -
-
-
- 22.000.000 đ
-- - Liên hệ -
-- [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX - 3060 12GB -
-
- Giá bán:
-
- 48.990.000 đ
-
-
- 52.000.000 đ
-
-
- -6%
-
-
- Bảo hành: - Theo từng linh kiện -
-- - Thông số sản phẩm -
-
-
- 22.000.000 đ
-- - Liên hệ -
-- - Quà tặng -
-- [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX - 3060 12GB -
-
- Giá bán:
-
- 48.990.000 đ
-
-
- 52.000.000 đ
-
-
- -6%
-
-
- Bảo hành: - Theo từng linh kiện -
-- - Thông số sản phẩm -
-- - Khuyến mại hấp dẫn -
-- - - ⭐ Bảo Hành Tại Nơi Sử Dụng (Áp Dụng Nội Thành - Hà Nội và Hồ Chí Minh) - - -
-- - - ⭐ Bảo Hành Siêu Tốc 1 Đổi 1 Trong 24h - - -
-- - - ⭐ Miễn Phí 100% Vận Chuyển Toàn Quốc - - -
-
-
- 22.000.000 đ
-- - Sẵn hàng -
-- [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX - 3060 12GB -
-
- Giá bán:
-
- 48.990.000 đ
-
-
- 52.000.000 đ
-
-
- -6%
-
-
- Bảo hành: - Theo từng linh kiện -
-
-
- 22.000.000 đ
-- - Sẵn hàng -
- -- [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX - 3060 12GB -
-- Giá bán: - - 48.990.000 đ - -
-- Bảo hành: - Theo từng linh kiện -
-
-
- 22.000.000 đ
-- - Liên hệ -
-- - Quà tặng -
-- [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX - 3060 12GB -
-
- Giá bán:
-
- 48.990.000 đ
-
-
- 52.000.000 đ
-
-
- -6%
-
-
- Bảo hành: - Theo từng linh kiện -
-- - Thông số sản phẩm -
-- - Khuyến mại hấp dẫn -
-- - - ⭐ Bảo Hành Tại Nơi Sử Dụng (Áp Dụng Nội Thành - Hà Nội và Hồ Chí Minh) - - -
-- - - ⭐ Bảo Hành Siêu Tốc 1 Đổi 1 Trong 24h - - -
-- - - ⭐ Miễn Phí 100% Vận Chuyển Toàn Quốc - - -
-
-
- 22.000.000 đ
-- - Sẵn hàng -
-- - Quà tặng -
-- [Tặng bàn phím] HHPC ULTRA 7 265K | 32GB DDR5 | NVIDIA RTX - 3060 12GB -
-
- Giá bán:
-
- 48.990.000 đ
-
-
- 52.000.000 đ
-
-
- -6%
-
-
- Bảo hành: - Theo từng linh kiện -
-- - Thông số sản phẩm -
-- - Khuyến mại hấp dẫn -
-- - - ⭐ Bảo Hành Tại Nơi Sử Dụng (Áp Dụng Nội Thành - Hà Nội và Hồ Chí Minh) - - -
-- - - ⭐ Bảo Hành Siêu Tốc 1 Đổi 1 Trong 24h - - -
-- - - ⭐ Miễn Phí 100% Vận Chuyển Toàn Quốc - - -
-+ + BIG SALE +
++ {" "} + 48.990.000 đ{" "} +
++ {" "} + Giá đã bao gồm VAT{" "} +
++ {" "} + Bảo hành theo từng linh kiện{" "} +
+Liên hệ
+Kết thúc sau:
+00
00
00
00
++ {" "} + *KHÔNG ÁP DỤNG CỘNG DỒN CHƯƠNG TRÌNH KHUYẾN MẠI KHÁC{" "} +
++ {" "} + 48.990.000 đ{" "} +
++ {" "} + Giá đã bao gồm VAT{" "} +
++ {" "} + Bảo hành theo từng linh kiện{" "} +
+Liên hệ
++ {" "} + Đánh giá và bình luận{" "} +
+ {/* Rating */} +0
+0 lượt đánh giá
+ + ++ {" "} + 5{" "} + {" "} +
+0
++ 4{" "} + +
+0
++ 3{" "} + +
+0
++ 2{" "} + +
+0
++ 1{" "} + +
+0
+Chọn đánh giá của bạn
++
+ {" "} + Thông số kỹ thuật{" "} +
+| + STT + | ++ MÃ HÀNG + | ++ TÊN HÀNG + | ++ THỜI HẠN BẢO HÀNH + | +
| + 1 + | ++ CPU + | ++ + + INTEL CORE ULTRA 7 265K UP 5.5GHz | 20 CORE | 20 THREAD + + + | ++ 36 THÁNG + | +
| + 2 + | ++ MAIN + | ++ + + COLORFUL BATTLE-AX Z890M-PLUS V20 DDR5 + + + | ++ 36 THÁNG + | +
| + 3 + | ++ TẢN NHIỆT + | ++ + + ID-COOLING FROZN A620 PRO SE ARGB + + + | ++ 12 THÁNG + | +
| + 4 + | ++ RAM + | ++ + + DDR5 TEAMGROUP T-CREATE EXPERT 32GB 6000MHz (2x16GB) + + + | ++ 36 THÁNG + | +
| + 5 + | ++ SSD + | ++ + + TEAMGROUP G50 1TB PCIE Gen4x4 - RW 5000MB/s + + + | ++ 60 THÁNG + | +
| + 6 + | ++ + VGA + + | ++ + + COLORFUL RTX 3060 NB DUO 12G V4 L-V GDDR6 + + + | ++ 36 THÁNG + | +
| + 7 + | ++ PSU + | ++ + + DEEPCOOL PL750D 750W 80 PLUS BRONZE | ATX 3.1 | PCIE 5.1 + + + | ++ 60 THÁNG + | +
| + 8 + | ++ CASE + | ++ + + XIGMATEK GAMING X II 3F - 3FAN RGB + + + | ++ |
| + STT + | ++ MÃ HÀNG + | ++ TÊN HÀNG + | ++ THỜI HẠN BẢO HÀNH + | +
| + 1 + | ++ CPU + | ++ + + INTEL CORE ULTRA 7 265K UP 5.5GHz | 20 CORE | 20 THREAD + + + | ++ 36 THÁNG + | +
| + 2 + | ++ MAIN + | ++ + + COLORFUL BATTLE-AX Z890M-PLUS V20 DDR5 + + + | ++ 36 THÁNG + | +
| + 3 + | ++ TẢN NHIỆT + | ++ + + ID-COOLING FROZN A620 PRO SE ARGB + + + | ++ 12 THÁNG + | +
| + 4 + | ++ RAM + | ++ + + DDR5 TEAMGROUP T-CREATE EXPERT 32GB 6000MHz (2x16GB) + + + | ++ 36 THÁNG + | +
| + 5 + | ++ SSD + | ++ + + TEAMGROUP G50 1TB PCIE Gen4x4 - RW 5000MB/s + + + | ++ 60 THÁNG + | +
| + 6 + | ++ + VGA + + | ++ + + COLORFUL RTX 3060 NB DUO 12G V4 L-V GDDR6 + + + | ++ 36 THÁNG + | +
| + 7 + | ++ PSU + | ++ + + DEEPCOOL PL750D 750W 80 PLUS BRONZE | ATX 3.1 | PCIE 5.1 + + + | ++ 60 THÁNG + | +
| + 8 + | ++ CASE + | ++ + + XIGMATEK GAMING X II 3F - 3FAN RGB + + + | ++ |
+ Xem chi nhánh còn hàng + +
++ {" "} + Yên Tâm Mua Sắm Tại HoangHaPC{" "} +
++ {" "} + Đội ngũ kỹ thuật tư vấn chuyên sâu{" "} +
++ {" "} + Thanh toán thuận tiện{" "} +
++ {" "} + Sản phẩm 100% chính hãng{" "} +
++ {" "} + Bảo hành 1 đổi 1 tại nơi sử dụng{" "} +
++ {" "} + Giá cạnh tranh nhất thị trường{" "} +
++ {" "} + Liên Hệ Với Kinh Doanh Online{" "} +
++ Hotline Hà Nội:{" "} + + {" "} + 0969123666{" "} + +
++ Hotline Vinh, Nghệ An:{" "} + + {" "} + 0988.163.666{" "} + +
++ Hotline Hồ Chí Minh:{" "} + + {" "} + 0968.123.666{" "} + +
++ Hotline Bảo Hành:{" "} + + {" "} + 1900.6100{" "} + +
++ {" "} + Tham gia Cộng đồng "Cẩm Nang Build PC - Đồ Họa, Render, Giả Lập" để + theo dõi các ưu đãi dành riêng cho thành viên{" "} +
+Thông số sản phẩm
+ +
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=574"
- }
- ],
"banner_category_2020": [
{
@@ -715,7 +687,7 @@ export const banner = {
"location_index": "banner_category_2020",
"name": "",
"summary": "",
- "category_list": "6,139",
+ "category_list": "1,139",
"fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/24_12-9e6fbff06bc8199c22e9647055955fe8.jpg",
"desUrl": "https:\/\/hoanghapc.vn\/nvidia-quadro",
"type": "1",
@@ -741,7 +713,7 @@ export const banner = {
"location_index": "banner_category_2020",
"name": "",
"summary": "",
- "category_list": "213",
+ "category_list": "1",
"fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/16_12-3933dc785eba6cded64d7d6a9974fff9.jpg",
"desUrl": "https:\/\/hoanghapc.vn\/ssd-western-digital",
"type": "1",
@@ -767,7 +739,7 @@ export const banner = {
"location_index": "banner_category_2020",
"name": "ch\u01b0\u01a1ng tr\u00ecnh thermaltake th\u00e1ng 8 ",
"summary": "",
- "category_list": "186,7,199,8,24,221",
+ "category_list": "1,186,7,199,8,24,221",
"fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/22_08-47bc453bda077cfb348647fbc9409204.jpg",
"desUrl": "https:\/\/hoanghapc.vn\/brand\/thermaltake",
"type": "1",
@@ -812,396 +784,6 @@ export const banner = {
"is_active": 1,
"tracking_url": "\/ad.php?id=551"
},
- {
- "id": "550",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "T\u1ea3n nhi\u1ec7t noctua ",
- "summary": "",
- "category_list": "24,17,217",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/28_06-1713b24bfd739471c23a817291633fec.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/tan-nhiet-cpu?brand=56",
- "type": "1",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "0",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1751078931",
- "click": "52",
- "counter": 5,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=550"
- },
- {
- "id": "549",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "T\u1ea3n nhi\u1ec7t AIO Asus ROG Ryujin III 360 ARGB Extreme",
- "summary": "",
- "category_list": "28,223,24",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/25_06-0db32e0a515cabe0c340b0145780647c.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/tan-nhiet-nuoc-asus-rog-ryujin-iii-360-argb-extreme",
- "type": "banner",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "0",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1750822357",
- "click": "258",
- "counter": 6,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=549"
- },
- {
- "id": "548",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "WD trang s\u1ea3n ph\u1ea9m ",
- "summary": "",
- "category_list": "16,5,213",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/25_06-8778bdabe8fe24f3e1485452ad9ce647.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/ssd-western-digital",
- "type": "banner",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "1",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1750822065",
- "click": "46",
- "counter": 7,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=548"
- },
- {
- "id": "547",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "Trang S\u1ea3n Ph\u1ea9m Seagate ",
- "summary": "",
- "category_list": "5,15,214",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/24_06-69a5eede29314b510cfd6329e32b8047.jpg",
- "desUrl": "",
- "type": "1",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "0",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1750752726",
- "click": "0",
- "counter": 8,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=547"
- },
- {
- "id": "546",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "Chuong tr\u00ecnh laptop thang 5 gigabyte ",
- "summary": "",
- "category_list": "168,254",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/24_06-52b10fe663583cfb3dca4da8f09f4f81.jpg",
- "desUrl": "",
- "type": "1",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "0",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1750728949",
- "click": "0",
- "counter": 9,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=546"
- },
- {
- "id": "545",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "Mainboard X870 AMD ",
- "summary": "",
- "category_list": "3,166,257",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/23_06-c88a9227496de4b57b0ae691117a9cbd.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/mainboard-x870",
- "type": "1",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "0",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1750670382",
- "click": "55",
- "counter": 10,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=545"
- },
- {
- "id": "544",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "Main B860 ",
- "summary": "",
- "category_list": "166,3,275",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/23_06-ec95ae33daaf87a3cad3e06ddb5474be.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/mainboard-intel-b860",
- "type": "1",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "0",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1750664624",
- "click": "39",
- "counter": 11,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=544"
- },
- {
- "id": "539",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "VGA 5x Series Asus",
- "summary": "",
- "category_list": "6,263,273,274,264,271",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/06_06-8b82fcbf96f6dc38842bacc1732e997c.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/tim?category=&q=asus+vga",
- "type": "1",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "0",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1749191620",
- "click": "54",
- "counter": 12,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=539"
- },
- {
- "id": "538",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "MSI VGA 5x Series ",
- "summary": "",
- "category_list": "6,271,273,264",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/06_06-935204c33033f73d12a872f47b4a4a60.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/vga-card-man-hinh?brand=7",
- "type": "1",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "4",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1749179562",
- "click": "80",
- "counter": 13,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=538"
- },
- {
- "id": "537",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "VGA Inno3d 5060 5070 ",
- "summary": "",
- "category_list": "6,271,273,263,274",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/05_06-de8977bd31fce7a71da182da2f39c312.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/tim?category=&q=inno3d",
- "type": "1",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "0",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1749109030",
- "click": "57",
- "counter": 14,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=537"
- },
- {
- "id": "536",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "VGA 5080 Inno3d",
- "summary": "",
- "category_list": "6,264",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/05_06-72cf8f2cb757f15ccdba563c25ac0808.jpg",
- "desUrl": "",
- "type": "1",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "4",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1749105853",
- "click": "0",
- "counter": 15,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=536"
- },
- {
- "id": "535",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "5070ti 5060ti gigabyte ",
- "summary": "",
- "category_list": "271,273,6",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/05_06-2c2de627ec9cd8cfbebb9f813412b3eb.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/nvidia-rtx-5070-ti?brand=6",
- "type": "1",
- "width": "1920",
- "height": "766",
- "status": "1",
- "ordering": "4",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1749099591",
- "click": "102",
- "counter": 16,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=535"
- },
- {
- "id": "534",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "5080 Gigabyte ",
- "summary": "",
- "category_list": "6,264",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/05_06-6da78f695d339cdca336e671370437ee.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/nvidia-rtx-5080?brand=6",
- "type": "banner",
- "width": "1920",
- "height": "766",
- "status": "1",
- "ordering": "4",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1749098563",
- "click": "46",
- "counter": 17,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=534"
- },
- {
- "id": "520",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "VGA LEADTEK NVIDIA RTX 5880 ADA",
- "summary": "",
- "category_list": "6",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/03_03-2bf375f0bab36fc0bb9f49a3ba3eda89.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/vga-leadtek-nvidia-rtx-5880-ada",
- "type": "1",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "8",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1740974427",
- "click": "98",
- "counter": 18,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=520"
- },
- {
- "id": "516",
- "template_page": "product_list",
- "location": "12",
- "location_index": "banner_category_2020",
- "name": "tex ddr4 gaming apacer trang s\u1ea3n ph\u1ea9m",
- "summary": "",
- "category_list": "4,272",
- "fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/26_02-b8f22fa2b252501f48744621b8d3fdd6.jpg",
- "desUrl": "https:\/\/hoanghapc.vn\/ram-apacer",
- "type": "banner",
- "width": "2640",
- "height": "902",
- "status": "1",
- "ordering": "0",
- "from_time": "0",
- "to_time": "0",
- "show_in_mobile": "1",
- "lastUpdate": "1743497861",
- "click": "137",
- "counter": 19,
- "html_code": "
",
- "is_expired": 0,
- "is_active": 1,
- "tracking_url": "\/ad.php?id=516"
- },
{
"id": "515",
"template_page": "product_list",
@@ -1209,7 +791,7 @@ export const banner = {
"location_index": "banner_category_2020",
"name": "Ram Gaming NOX DDR5 Apacer th\u00e1ng 2",
"summary": "",
- "category_list": "4,272",
+ "category_list": "5,4,272",
"fileUrl": "https:\/\/hoanghapccdn.com\/media\/banner\/26_02-2af64ecf370b0b9de4c2b05e62993b8f.jpg",
"desUrl": "https:\/\/hoanghapc.vn\/ram-apacer",
"type": "banner",
diff --git a/src/data/productCategory/index.tsx b/src/data/productCategory/index.tsx
index 4d2bafc..9fde517 100644
--- a/src/data/productCategory/index.tsx
+++ b/src/data/productCategory/index.tsx
@@ -40,7 +40,20 @@ export const productCategory = {
"number_display": 0,
"brand_url": null,
"hide_menu": 0,
- "extend": null,
+ "extend": {
+ "faq" : [
+ {
+ "id" : 1,
+ "title" : "Có thể kiểm tra tính tương thích của linh kiện trước khi đặt không?",
+ "content" : "Có. Chúng tôi cung cấp công cụ 'Build PC' để bạn dễ dàng chọn và kiểm tra tính tương thích giữa CPU, mainboard, RAM, GPU, và các linh kiện khác trước khi mua hàng."
+ },
+ {
+ "id" : 2,
+ "title" : "Test title",
+ "content" : "Có. Chúng tôi cung cấp công cụ 'Build PC' để bạn dễ dàng chọn và kiểm tra tính tương thích giữa CPU, mainboard, RAM, GPU, và các linh kiện khác trước khi mua hàng."
+ }
+ ]
+ },
"related": {
"article-article": []
},
@@ -339,37 +352,37 @@ export const productCategory = {
],
"sort_by_collection" : [
{
- url: "https://hoanghapc.vn/pc-workstation?sort=new",
+ url: "/pc-workstation?sort=new",
key: "new",
name: "Mới nhất"
},
{
- url: "https://hoanghapc.vn/pc-workstation?sort=price-asc",
+ url: "/pc-workstation?sort=price-asc",
key: "price-asc",
name: "Giá tăng dần"
},
{
- url: "https://hoanghapc.vn/pc-workstation?sort=price-desc",
+ url: "/pc-workstation?sort=price-desc",
key: "price-desc",
name: "Giá giảm dần"
},
{
- url: "https://hoanghapc.vn/pc-workstation?sort=view",
+ url: "/pc-workstation?sort=view",
key: "view",
name: "Lượt xem"
},
{
- url: "https://hoanghapc.vn/pc-workstation?sort=comment",
+ url: "/pc-workstation?sort=comment",
key: "comment",
name: "Trao đổi"
},
{
- url: "https://hoanghapc.vn/pc-workstation?sort=rating",
+ url: "/pc-workstation?sort=rating",
key: "rating",
name: "Đánh giá"
},
{
- url: "https://hoanghapc.vn/pc-workstation?sort=name",
+ url: "/pc-workstation?sort=name",
key: "name",
name: "Tên A->Z"
}
@@ -406,7 +419,7 @@ export const productCategory = {
"count": 1,
"is_selected": 0,
"name": "D\u01b0\u1edbi 10 tri\u1ec7u",
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&id=1&max=10000000"
+ "url": "/pc-workstation?max=10000000"
},
{
"min": 40000000,
@@ -414,7 +427,7 @@ export const productCategory = {
"count": 7,
"is_selected": 0,
"name": "40 tri\u1ec7u - 45 tri\u1ec7u",
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&id=1&max=45000000&min=40000000"
+ "url": "/pc-workstation?max=45000000&min=40000000"
},
{
"min": 45000000,
@@ -422,7 +435,7 @@ export const productCategory = {
"count": 8,
"is_selected": 0,
"name": "45 tri\u1ec7u - 50 tri\u1ec7u",
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&id=1&max=50000000&min=45000000"
+ "url": "/pc-workstation?max=50000000&min=45000000"
},
{
"min": 50000000,
@@ -430,7 +443,7 @@ export const productCategory = {
"count": 91,
"is_selected": 0,
"name": "Tr\u00ean 50 tri\u1ec7u",
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&id=1&min=50000000"
+ "url": "/pc-workstation?min=50000000"
}
],
"attribute_filter_list": [
@@ -446,7 +459,7 @@ export const productCategory = {
"description": "",
"count": 13,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=397&id=1"
+ "url": "/pc-workstation?filter=397"
},
{
"id": 398,
@@ -455,7 +468,7 @@ export const productCategory = {
"description": "",
"count": 15,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=398&id=1"
+ "url": "/pc-workstation?filter=398"
},
{
"id": 399,
@@ -464,7 +477,7 @@ export const productCategory = {
"description": "",
"count": 1,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=399&id=1"
+ "url": "/pc-workstation?filter=399"
},
{
"id": 402,
@@ -473,7 +486,7 @@ export const productCategory = {
"description": "",
"count": 5,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=402&id=1"
+ "url": "/pc-workstation?filter=402"
},
{
"id": 403,
@@ -482,7 +495,7 @@ export const productCategory = {
"description": "",
"count": 22,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=403&id=1"
+ "url": "/pc-workstation?filter=403"
},
{
"id": 404,
@@ -491,7 +504,7 @@ export const productCategory = {
"description": "",
"count": 13,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=404&id=1"
+ "url": "/pc-workstation?filter=404"
},
{
"id": 637,
@@ -500,7 +513,7 @@ export const productCategory = {
"description": "",
"count": 18,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=637&id=1"
+ "url": "/pc-workstation?filter=637"
},
{
"id": 636,
@@ -509,7 +522,7 @@ export const productCategory = {
"description": "",
"count": 8,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=636&id=1"
+ "url": "/pc-workstation?filter=636"
}
]
},
@@ -525,7 +538,7 @@ export const productCategory = {
"description": "",
"count": 49,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=407&id=1"
+ "url": "/pc-workstation?filter=407"
},
{
"id": 408,
@@ -534,16 +547,7 @@ export const productCategory = {
"description": "",
"count": 26,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=408&id=1"
- },
- {
- "id": 409,
- "name": ">64GB",
- "api_key": "64gb-1",
- "description": "",
- "count": 22,
- "is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=409&id=1"
+ "url": "/pc-workstation?filter=408"
}
]
},
@@ -559,7 +563,7 @@ export const productCategory = {
"description": "",
"count": 67,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=410&id=1"
+ "url": "/pc-workstation?filter=410"
},
{
"id": 411,
@@ -568,7 +572,7 @@ export const productCategory = {
"description": "",
"count": 28,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=411&id=1"
+ "url": "/pc-workstation?filter=411"
},
{
"id": 414,
@@ -577,7 +581,7 @@ export const productCategory = {
"description": "",
"count": 1,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&filter=414&id=1"
+ "url": "/pc-workstation?filter=414"
}
]
}
@@ -590,7 +594,7 @@ export const productCategory = {
"image": "gigabyte.jpg",
"count": 2,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&brand=6&id=1"
+ "url": "/pc-workstation?brand=6"
},
{
"id": 7,
@@ -599,7 +603,7 @@ export const productCategory = {
"image": "msi.jpg",
"count": 1,
"is_selected": false,
- "url": "https:\/\/hoanghapc.vn\/ajax\/get_json.php?action=category&action_type=filter&brand=7&id=1"
+ "url": "/pc-workstation?brand=7"
}
]
}
\ No newline at end of file
diff --git a/src/data/products/index.tsx b/src/data/productList/index.tsx
similarity index 100%
rename from src/data/products/index.tsx
rename to src/data/productList/index.tsx
diff --git a/src/lib/slug/resolveProductPage.ts b/src/lib/slug/resolveProductPage.ts
index 19c8675..c969432 100644
--- a/src/lib/slug/resolveProductPage.ts
+++ b/src/lib/slug/resolveProductPage.ts
@@ -1,6 +1,6 @@
// hoanghapc/src/lib/productPage.ts
import { categories } from "@/data/categories";
-import { productList } from "@/data/products";
+import { productList } from "@/data/productList";
export type ProductResult =
| { type: "product_category"; data: any }
@@ -23,7 +23,10 @@ export function resolveProductPage(slug: string): ProductResult | null {
}
// DETAIL
- const product = productList.list?.find(p => p.productUrl === url);
+ const product = productList
+ .flatMap((item: any) => item.list)
+ .find((p: any) => p.productUrl === url);
+
if (product) {
return { type: "product_detail", data: product };
}
diff --git a/src/lib/utils.tsx b/src/lib/utils.tsx
index bec71f0..7df4ba3 100644
--- a/src/lib/utils.tsx
+++ b/src/lib/utils.tsx
@@ -1,8 +1,8 @@
// Add tất cả sp trong data product vào 1 mảng
-import { productList } from '@/data/products';
+import { productList } from '@/data/productList';
export function getAllProducts() {
- return productList.flatMap((group:any) => group.list);
+ return productList.flatMap((group: any) => group.list);
}
@@ -38,8 +38,6 @@ export function formatTextList(
.join('');
}
-
-
// Format giá
export function formatPrice(amount: number) {
return amount.toLocaleString('vi-VN');
@@ -54,22 +52,30 @@ export function calculateDiscount(
return Math.ceil(((marketPrice - price) / marketPrice) * 100);
}
-export function formatArticleTime(article_time:string) {
+// format thời gian
+export function formatArticleTime(article_time: string) {
let day: string;
let month: string;
let year: string;
if (article_time.toLowerCase().includes('hôm nay')) {
- const time = new Date();
- day = (time.getDate() <= 9) ? '0' + time.getDate() : String(time.getDate());
- month = (time.getMonth()+1 <= 9) ? '0' + (time.getMonth()+1) : String(time.getMonth()+1);
- year = String(time.getFullYear());
+ const time = new Date();
+ day = (time.getDate() <= 9) ? '0' + time.getDate() : String(time.getDate());
+ month = (time.getMonth() + 1 <= 9) ? '0' + (time.getMonth() + 1) : String(time.getMonth() + 1);
+ year = String(time.getFullYear());
} else {
- day = article_time.substring(0,2);
- month = article_time.substring(3,5);
- year = article_time.substring(6,10);
+ day = article_time.substring(0, 2);
+ month = article_time.substring(3, 5);
+ year = article_time.substring(6, 10);
}
return `${day}/${month}/${year}`;
}
-
+//
+export function normalizeKey(str: string) {
+ return str
+ .normalize('NFD')
+ .replace(/[\u0300-\u036f]/g, '')
+ .toLowerCase()
+ .replace(/\s+/g, '-');
+}
diff --git a/src/styles/pc_style.css b/src/styles/pc_style.css
index 3c9915f..09c93b5 100644
--- a/src/styles/pc_style.css
+++ b/src/styles/pc_style.css
@@ -111,7 +111,7 @@ body{min-width:1248px;background:#E8ECF6}
.static-container .bg-content{overflow:hidden}
.static-container .bg-content::after{background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#FFF 100%)}
.static-container .static-btn{display:flex;justify-content:center;margin-top:16px;position:relative;z-index:2}
-.static-container .static-btn button{border:1px solid #0678DB;color:#0678DB;background:#fff;text-transform:uppercase;border-radius:30px;min-width:150px;height:38px;font-weight:500;font-size:16px;transition:.1s all;display:none}
+.static-container .static-btn button{border:1px solid #0678DB;color:#0678DB;background:#fff;text-transform:uppercase;border-radius:30px;min-width:150px;height:38px;font-weight:500;font-size:16px;transition:.1s all;}
.static-container .static-btn button:hover{color:#fff;background:#0678DB}
.static-container .static-btn i{font-size:20px;margin-left:-1px;vertical-align:sub}
.global-header-container{background:linear-gradient(180.3deg,#259AFF -18.56%,#114CDD 100.92%);top:-50px;transition:.3s all}