From fdffd280b787231f46b1b8d7908bcfe1deb99bcc Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sat, 19 Mar 2022 22:12:38 +0600 Subject: [PATCH] Update style --- src/components/details/index.jsx | 8 +- src/components/experience/index.jsx | 116 ++++++++++++++-------------- 2 files changed, 61 insertions(+), 63 deletions(-) diff --git a/src/components/details/index.jsx b/src/components/details/index.jsx index 04db832..a9de84d 100644 --- a/src/components/details/index.jsx +++ b/src/components/details/index.jsx @@ -18,11 +18,11 @@ import config from '../../ezprofile.config'; const ListItem = ({ icon, title, value, link, skeleton = false }) => { return ( -
- {icon} -
{title}
+
+ {icon} +
{title}
diff --git a/src/components/experience/index.jsx b/src/components/experience/index.jsx index 14bf9a3..bab3ff9 100644 --- a/src/components/experience/index.jsx +++ b/src/components/experience/index.jsx @@ -1,35 +1,34 @@ import { GoPrimitiveDot } from 'react-icons/go'; import { skeleton } from '../../helpers/utils'; import config from '../../ezprofile.config'; +import { Fragment } from 'react'; const Experience = ({ 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,43 +42,42 @@ const Experience = ({ loading }) => { config.experiences.length !== 0 && (
    -
      -
    • -
      -
      - {loading ? ( - skeleton({ width: 'w-32', height: 'h-8' }) - ) : ( - Experience - )} -
      -
      -
    • - {loading - ? renderSkeleton() - : config.experiences.map((experience, index) => ( -
    • - -
      - +
      +
      + {loading ? ( + skeleton({ width: 'w-32', height: 'h-8' }) + ) : ( + Experience + )} +
      +
      +
      +
        + {loading ? ( + renderSkeleton() + ) : ( + + {config.experiences.map((experience, index) => ( +
      1. +
        +
        + {experience.from} - {experience.to}
        -
        -
        -
        - {experience.company} -
        -
        - {experience.from} - {experience.to} -
        -
        -
        - {experience.position} -
        -
        - -
      2. - ))} -
    +

    + {experience.position} +

    +

    + {experience.company} +

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