diff --git a/globals.d.ts b/globals.d.ts index cbe652d..4b516a4 100644 --- a/globals.d.ts +++ b/globals.d.ts @@ -1 +1,5 @@ declare module "*.css"; +declare module 'swiper/css'; +declare module 'swiper/css/navigation'; +declare module 'swiper/css/pagination'; +declare module 'swiper/css/autoplay'; \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index fc52203..7778036 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,8 @@ import type { Metadata } from 'next'; import '../styles/sf-pro-display.css'; +import 'swiper/css'; +import 'swiper/css/navigation'; +import 'swiper/css/pagination'; import '../styles/globals.css'; import Header from '@components/layout/Header/Header'; diff --git a/src/app/page.tsx b/src/app/page.tsx index 34c3cdf..eafe967 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -3,7 +3,7 @@ import SliderHome from '@components/layout/homepage/SliderHome'; export default function Home() { return ( -
+
{/* slider */} diff --git a/src/components/layout/Header/HeaderBottom.tsx b/src/components/layout/Header/HeaderBottom.tsx index e1e60f4..2cf5956 100644 --- a/src/components/layout/Header/HeaderBottom.tsx +++ b/src/components/layout/Header/HeaderBottom.tsx @@ -56,7 +56,7 @@ const HeaderBottom: React.FC = () => { ))}
-
diff --git a/src/components/layout/Header/HeaderBottomRight.tsx b/src/components/layout/Header/HeaderBottomRight.tsx index 22edb1d..970d585 100644 --- a/src/components/layout/Header/HeaderBottomRight.tsx +++ b/src/components/layout/Header/HeaderBottomRight.tsx @@ -42,15 +42,15 @@ const HeaderBottomRight: React.FC = () => { return (
  • - + {info.title} - +
    -
      +
        {item.isParent === '1' && ( <> {item.id === '408' @@ -62,7 +62,7 @@ const HeaderBottomRight: React.FC = () => { {child1.title} {child1.isParent === '1' && ( -
        +
        {child1.children?.map((child2) => ( {child2.title} @@ -78,7 +78,7 @@ const HeaderBottomRight: React.FC = () => { {_item_child.title} {_item_child.isParent === '1' && ( -
        +
        {_item_child.children?.map((_item_childtwo) => ( {
        -

        Bán chạy nhất

        +

        Bán chạy nhất

        diff --git a/src/components/layout/Header/HeaderMid.tsx b/src/components/layout/Header/HeaderMid.tsx index 3c6521d..b20f13d 100644 --- a/src/components/layout/Header/HeaderMid.tsx +++ b/src/components/layout/Header/HeaderMid.tsx @@ -14,7 +14,7 @@ const HeaderMid: React.FC = () => { return (
        -
        +
        {
        -
        - -

        +

        + +

        - Xây dựng cấu hình + Xây dựng cấu hình -

        +

        - Khách hàng liên hệ + Khách hàng liên hệ - -

        + +

        Tin tức công nghệ
        - -

        + +

        1

        @@ -107,14 +98,14 @@ const HeaderMid: React.FC = () => {
        -
        +

        Tổng tiền hàng

        THANH TOÁN NGAY

        @@ -123,9 +114,9 @@ const HeaderMid: React.FC = () => { -

        +

        Tài khoản diff --git a/src/components/layout/homepage/BoxProductDeal.tsx b/src/components/layout/homepage/BoxProductDeal.tsx index 4b2434d..f484154 100644 --- a/src/components/layout/homepage/BoxProductDeal.tsx +++ b/src/components/layout/homepage/BoxProductDeal.tsx @@ -1,6 +1,24 @@ 'use client'; import React from 'react'; -const BoxProductDeal: React.FC = () => {}; +const BoxProductDeal: React.FC = () => { + return ( +
        +
        +
        + +

        Giá tốt mỗi ngày

        + + Kết thúc sau + +
        +
        + + Xem thêm khuyến mãi + +
        +
        + ); +}; export default BoxProductDeal; diff --git a/src/components/layout/homepage/SliderHome.tsx b/src/components/layout/homepage/SliderHome.tsx index 997e5a5..7985020 100644 --- a/src/components/layout/homepage/SliderHome.tsx +++ b/src/components/layout/homepage/SliderHome.tsx @@ -12,49 +12,52 @@ const SliderHome: React.FC = () => { return ( <> - - {dataSlider?.banner_slider_homepage_main?.map((banner, index) => ( - - - {banner.title} - - - ))} - - - {dataSlider?.banner_under_slider_trangchu?.map((banner, index) => ( - - - {banner.title} - - - ))} - +
        + + {dataSlider?.banner_slider_homepage_main?.map((banner, index) => ( + + + {banner.title} + + + ))} + +
        +
        + + {dataSlider?.banner_under_slider_trangchu?.map((banner, index) => ( + + + {banner.title} + + + ))} + +
        ); }; diff --git a/src/styles/globals.css b/src/styles/globals.css index 1b831b3..40b12de 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -1,8 +1,5 @@ @import 'tailwindcss'; @plugin 'daisyui'; -@import 'swiper/css'; -@import 'swiper/css/navigation'; -@import 'swiper/css/pagination'; :root { --background: #ffffff; @@ -29,17 +26,10 @@ .color-green { color: var(--green); } -.bg-white { - background: #fff; -} -.bg-gray { - background: #f4f4f4; -} + *, ::after, ::before { - margin: 0; - padding: 0; -webkit-box-sizing: inherit; box-sizing: inherit; } @@ -90,117 +80,14 @@ ol, ul { list-style: none; } -.position-relative { - position: relative; -} -table { - border-collapse: collapse; - width: 100%; -} -.w-100 { - width: 100% !important; -} -.w-50 { - width: 50%; -} .fz-16 { font-size: 16px; } -.mb-10 { - margin-bottom: 10px; -} -.mt-10 { - margin-top: 10px; -} -.mt-12 { - margin-top: 12px; -} -.mb-0 { - margin-bottom: 0 !important; -} -.gap-4 { - gap: 4px; -} -.gap-6 { - gap: 6px; -} -.gap-8 { - gap: 8px; -} -.gap-10 { - gap: 10px; -} -.gap-16 { - gap: 16px; -} -.gap-12 { - gap: 12px; -} -.gap-14 { - gap: 14px; -} -.gap-20 { - gap: 20px; -} -.pt-12 { - padding-top: 12px !important; -} -.text-center { - text-align: center; -} img { display: block; max-width: 100%; height: auto; } -input::-webkit-input-placeholder, -textarea::-webkit-input-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input::-moz-placeholder, -textarea::-moz-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input:-ms-input-placeholder, -textarea:-ms-input-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input::-ms-input-placeholder, -textarea::-ms-input-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input::-webkit-input-placeholder, -textarea::-webkit-input-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input::-moz-placeholder, -textarea::-moz-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input:-ms-input-placeholder, -textarea:-ms-input-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input::-ms-input-placeholder, -textarea::-ms-input-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input::-webkit-input-placeholder, -textarea::-webkit-input-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input::-moz-placeholder, -textarea::-moz-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input:-ms-input-placeholder, -textarea:-ms-input-placeholder { - font-family: 'SF Pro Display', sans-serif; -} -input::-ms-input-placeholder, -textarea::-ms-input-placeholder { - font-family: 'SF Pro Display', sans-serif; -} input, input::placeholder, select, @@ -300,21 +187,6 @@ textarea::placeholder { .border-error { border: 2px solid red !important; } -.font-weight-400 { - font-weight: 400; -} -.font-weight-500 { - font-weight: 500; -} -.font-weight-600 { - font-weight: 600; -} -.font-weight-700 { - font-weight: 700; -} -.font-weight-800 { - font-weight: 800; -} .boder-radius-10 { border-radius: 10px; -webkit-border-radius: 10px; @@ -322,42 +194,6 @@ textarea::placeholder { -ms-border-radius: 10px; -o-border-radius: 10px; } -.line-clamp-1 { - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - overflow: hidden; - display: -webkit-box; -} -.line-clamp-2 { - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - overflow: hidden; - display: -webkit-box; -} -.line-clamp-3 { - -webkit-line-clamp: 3; - -webkit-box-orient: vertical; - overflow: hidden; - display: -webkit-box; -} -.line-clamp-6 { - -webkit-line-clamp: 6; - -webkit-box-orient: vertical; - overflow: hidden; - display: -webkit-box; -} -.d-block { - display: block !important; -} -.d-none, -.hide { - display: none !important; -} -.grid { - display: -ms-grid; - display: grid; - gap: 12px; -} .grid--product-info { -ms-grid-columns: 2fr 1fr; grid-template-columns: 2fr 1fr; @@ -370,78 +206,6 @@ textarea::placeholder { -ms-grid-columns: 5.13fr 6.48fr; grid-template-columns: 7fr 5.76fr; } -.d-flex { - display: -webkit-box; - display: -ms-flexbox; - display: flex; -} -.align-items-end { - -webkit-box-align: end; - -ms-flex-align: end; - align-items: flex-end; -} -.flex-1 { - -webkit-box-flex: 1; - -ms-flex: 1; - flex: 1; -} -.order-1 { - -webkit-box-ordinal-group: 2; - -ms-flex-order: 1; - order: 1; -} -.align-items-start { - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; -} -.align-items-center { - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} -.justify-content-end { - -ms-flex-pack: end !important; - -webkit-box-pack: end !important; - justify-content: flex-end !important; -} -.justify-content-center { - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; -} -.justify-content-between { - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-between; -} -.justify-content-around { - -webkit-box-pack: justify; - -ms-flex-pack: justify; - justify-content: space-around; -} -.flex-around { - -ms-flex-pack: distribute; - justify-content: space-around; -} -.flex-column { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; -} -.flex-row { - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row; -} -.flex-wrap { - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-wrap: row; - flex-wrap: wrap; -} .swiper-button-next, .swiper-button-prev { width: 28px !important; @@ -1873,9 +1637,9 @@ textarea::placeholder { color: #fff; border: 1px solid #fff; border-radius: 50%; - width: 33px; - height: 33px; - line-height: 33px; + width: 35px; + height: 30px; + line-height: 30px; text-align: center; margin: 0 10px 0 25px; } @@ -1940,10 +1704,6 @@ textarea::placeholder { border-right: 1px solid #e3e3e3; padding: 12px 0; } -.header .header-bottom .list-category-child .box-left .sub-menu { - margin-bottom: 16px; - width: calc(100% / 4 - 8px); -} .header .header-bottom .list-category-child .box-left .list-child-lv3 .child-lv3:hover { color: var(--red); } @@ -2407,6 +2167,10 @@ textarea::placeholder { .page-hompage .box-banner-under-slider { margin-top: -50px; } +.page-hompage .box-banner-under-slider svg { + width: 8px !important; + color: #000; +} .page-hompage .box-product-deal { padding: 12px; margin: 20px 0;