From 86ad16ee31864854a37fa7870b760c9d7c2803e6 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sat, 19 Mar 2022 22:18:34 +0600 Subject: [PATCH] Update style of education history --- src/components/education/index.jsx | 115 ++++++++++++++--------------- 1 file changed, 57 insertions(+), 58 deletions(-) diff --git a/src/components/education/index.jsx b/src/components/education/index.jsx index a02de67..b852a2d 100644 --- a/src/components/education/index.jsx +++ b/src/components/education/index.jsx @@ -1,35 +1,33 @@ -import { GoPrimitiveDot } from 'react-icons/go'; import { skeleton } from '../../helpers/utils'; import config from '../../ezprofile.config'; +import { Fragment } from 'react'; const Education = ({ loading }) => { const renderSkeleton = () => { let array = []; for (let index = 0; index < 2; index++) { array.push( -
  • - - {skeleton({ width: 'w-2', height: 'h-2', className: 'mr-2' })} -
    -
    -
    - {skeleton({ - width: 'w-9/12', - height: 'h-4', - className: 'mb-2', - })} -
    -
    - {skeleton({ - width: 'w-6/12', - height: 'h-4', - className: 'mb-2', - })} -
    -
    -
    {skeleton({ width: 'w-6/12', height: 'h-3' })}
    -
    -
    +
  • +
    +
    + {skeleton({ + width: 'w-5/12', + height: 'h-4', + })} +
    +

    + {skeleton({ + width: 'w-6/12', + height: 'h-4', + className: 'my-1.5', + })} +

    +

    + {skeleton({ width: 'w-6/12', height: 'h-3' })} +

  • ); } @@ -43,41 +41,42 @@ const Education = ({ loading }) => { config.education.length !== 0 && (
    -
      -
    • -
      -
      - {loading ? ( - skeleton({ width: 'w-32', height: 'h-8' }) - ) : ( - Education - )} -
      -
      -
    • - {loading - ? renderSkeleton() - : config.education.map((item, index) => ( -
    • - -
      - +
      +
      + {loading ? ( + skeleton({ width: 'w-32', height: 'h-8' }) + ) : ( + Education + )} +
      +
      +
      +
        + {loading ? ( + renderSkeleton() + ) : ( + + {config.education.map((item, index) => ( +
      1. +
        +
        + {item.from} - {item.to}
        -
        -
        -
        - {item.institution} -
        -
        - {item.from} - {item.to} -
        -
        -
        {item.degree}
        -
        - -
      2. - ))} -
    +

    + {item.degree} +

    +

    + {item.institution} +

    + + ))} + + )} + +
    )}