atlp-rwanda/hackers-ec-Fe

View on GitHub
src/pages/About.tsx

Summary

Maintainability
D
2 days
Test Coverage
A
100%

Function About has 105 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const About = () => {
    return (
        <div className="flex flex-col min-h-screen py-0 gap-6 px-[5%] mt-10 mobile:mt-5 laptop:mt-36">
            <div className=" flex flex-col-reverse gap-7 tablet:flex-row tablet:relative laptop:top-0">
                <div className="flex flex-col ipad:justify-center gap-6 tablet:py-16 tablet:h-[50%] laptop:h-screen relative tablet:w-[100%] tablet:gap-16 ipad:w-[60%] laptop:py-0 laptop:gap-10">
Severity: Major
Found in src/pages/About.tsx - About 4 hrs to fix

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

                    <div className="h-[23rem] w-[100%] rounded-[24px] bg-primary-lightblue m-auto justify-start items-start text-start flex flex-col p-5 gap-5 text-neutral-white">
                        <img src={gift} alt="" className="h-20 w-20 object-contain" />
                        <h3 className="text-[20px]">Millions of business offerings</h3>
                        <p className="text-[14px]">
                            We offer millions of items to select Continuous promotions
    Severity: Major
    Found in src/pages/About.tsx and 7 other locations - About 2 hrs to fix
    src/pages/About.tsx on lines 64..71
    src/pages/About.tsx on lines 72..79
    src/pages/About.tsx on lines 80..86
    src/pages/About.tsx on lines 87..93
    src/pages/About.tsx on lines 94..101
    src/pages/About.tsx on lines 102..110
    src/pages/About.tsx on lines 111..118

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

                    <div className="h-[23rem] w-full place-content-center rounded-[24px] bg-primary-lightblue m-auto justify-start items-start text-start flex flex-col p-5 gap-5 text-neutral-white">
                        <img src={quality} alt="" className="h-20 w-20 object-contain" />
                        <h3 className="text-[20px]">Assured quality and transactions</h3>
                        <p className="text-[14px]">
                            Ensure production quality from verified suppliers, with your orders
    Severity: Major
    Found in src/pages/About.tsx and 7 other locations - About 2 hrs to fix
    src/pages/About.tsx on lines 56..63
    src/pages/About.tsx on lines 72..79
    src/pages/About.tsx on lines 80..86
    src/pages/About.tsx on lines 87..93
    src/pages/About.tsx on lines 94..101
    src/pages/About.tsx on lines 102..110
    src/pages/About.tsx on lines 111..118

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

                    <div className="h-[23rem] w-full place-content-center rounded-[24px] bg-primary-lightblue m-auto justify-start items-start text-start flex flex-col p-5 gap-5 text-neutral-white">
                        <img src={payment} alt="" className="h-20 w-20 object-contain" />
                        <h3 className="text-[20px]">Safe Payments</h3>
                        <p className="text-[14px]">
                            Pay with popular and secure payment methods that are acceptable
    Severity: Major
    Found in src/pages/About.tsx and 7 other locations - About 2 hrs to fix
    src/pages/About.tsx on lines 56..63
    src/pages/About.tsx on lines 64..71
    src/pages/About.tsx on lines 80..86
    src/pages/About.tsx on lines 87..93
    src/pages/About.tsx on lines 94..101
    src/pages/About.tsx on lines 102..110
    src/pages/About.tsx on lines 111..118

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

                    <div className="h-[23rem] w-full place-content-center rounded-[24px] bg-primary-lightblue m-auto justify-start items-start text-start flex flex-col p-5 gap-5 text-neutral-white">
                        <img src={message} alt="" className="h-20 w-20 object-contain" />
                        <h3 className="text-[20px]">Public Live chat</h3>
                        <p className="text-[14px]">
                            Convenient online consultation and message to solve your problem.
    Severity: Major
    Found in src/pages/About.tsx and 7 other locations - About 2 hrs to fix
    src/pages/About.tsx on lines 56..63
    src/pages/About.tsx on lines 64..71
    src/pages/About.tsx on lines 72..79
    src/pages/About.tsx on lines 87..93
    src/pages/About.tsx on lines 94..101
    src/pages/About.tsx on lines 102..110
    src/pages/About.tsx on lines 111..118

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

                    <div className="h-[23rem] w-full place-content-center rounded-[24px] bg-primary-lightblue m-auto justify-start items-start text-start flex flex-col p-5 gap-5 text-neutral-white">
                        <img src={world} alt="" className="h-20 w-20 object-contain" />
                        <h3 className="text-[20px]">Worldwide Delivery</h3>
                        <p className="text-[14px]">
                            Supported more than 10 countries. Register to get $ 10 coupons.
    Severity: Major
    Found in src/pages/About.tsx and 7 other locations - About 2 hrs to fix
    src/pages/About.tsx on lines 56..63
    src/pages/About.tsx on lines 64..71
    src/pages/About.tsx on lines 72..79
    src/pages/About.tsx on lines 80..86
    src/pages/About.tsx on lines 94..101
    src/pages/About.tsx on lines 102..110
    src/pages/About.tsx on lines 111..118

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

                    <div className="h-[23rem] w-full place-content-center rounded-[24px] bg-primary-lightblue m-auto justify-start items-start text-start flex flex-col p-5 gap-5 text-neutral-white">
                        <img src={oneStep} alt="" className="h-20 w-20 object-contain" />
                        <h3 className="text-[20px]">One-stop trading solution</h3>
                        <p className="text-[14px]">
                            Order seamlessly from product/supplier search to order management,
    Severity: Major
    Found in src/pages/About.tsx and 7 other locations - About 2 hrs to fix
    src/pages/About.tsx on lines 56..63
    src/pages/About.tsx on lines 64..71
    src/pages/About.tsx on lines 72..79
    src/pages/About.tsx on lines 80..86
    src/pages/About.tsx on lines 87..93
    src/pages/About.tsx on lines 102..110
    src/pages/About.tsx on lines 111..118

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

                    <div className="h-[23rem] w-full place-content-center rounded-[24px] bg-primary-lightblue m-auto justify-start items-start text-start flex flex-col p-5 gap-5 text-neutral-white">
                        <img src={benefits} alt="" className="h-20 w-20 object-contain" />
                        <h3 className="text-[20px]">Enjoy the benefits</h3>
                        <p className="text-[14px]">
                            Get curated benefits, such as exclusive discounts, enhanced
    Severity: Major
    Found in src/pages/About.tsx and 7 other locations - About 2 hrs to fix
    src/pages/About.tsx on lines 56..63
    src/pages/About.tsx on lines 64..71
    src/pages/About.tsx on lines 72..79
    src/pages/About.tsx on lines 80..86
    src/pages/About.tsx on lines 87..93
    src/pages/About.tsx on lines 94..101
    src/pages/About.tsx on lines 111..118

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

                    <div className="h-[23rem] w-full place-content-center rounded-[24px] bg-primary-lightblue m-auto justify-start items-start text-start flex flex-col p-5 gap-5 text-neutral-white">
                        <img src={cart} alt="" className="h-20 w-20 object-contain" />
                        <h3 className="text-[20px]">Variety of products</h3>
                        <p className="text-[14px]">
                            Explore products and suppliers for your business from millions of
    Severity: Major
    Found in src/pages/About.tsx and 7 other locations - About 2 hrs to fix
    src/pages/About.tsx on lines 56..63
    src/pages/About.tsx on lines 64..71
    src/pages/About.tsx on lines 72..79
    src/pages/About.tsx on lines 80..86
    src/pages/About.tsx on lines 87..93
    src/pages/About.tsx on lines 94..101
    src/pages/About.tsx on lines 102..110

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 78.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status