diff --git a/src/components/details/index.jsx b/src/components/details/index.jsx index a9de84d..4f4c6b5 100644 --- a/src/components/details/index.jsx +++ b/src/components/details/index.jsx @@ -47,6 +47,7 @@ const Details = ({ profile, loading }) => { for (let index = 0; index < 4; index++) { array.push( ( +
  • +
    +
    {time}
    +

    {degree}

    +
    {institution}
    +
  • +); + const Education = ({ loading }) => { const renderSkeleton = () => { let array = []; for (let index = 0; index < 2; index++) { array.push( -
  • -
    -
    - {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' })} -

    -
  • + ); } @@ -51,27 +55,18 @@ const Education = ({ loading }) => {
    -
      +
        {loading ? ( renderSkeleton() ) : ( {config.education.map((item, index) => ( -
      1. -
        -
        - {item.from} - {item.to} -
        -

        - {item.degree} -

        -

        - {item.institution} -

        -
      2. + ))}
        )} diff --git a/src/components/experience/index.jsx b/src/components/experience/index.jsx index bab3ff9..1aa1559 100644 --- a/src/components/experience/index.jsx +++ b/src/components/experience/index.jsx @@ -3,33 +3,36 @@ import { skeleton } from '../../helpers/utils'; import config from '../../ezprofile.config'; import { Fragment } from 'react'; +const ListItem = ({ time, position, company }) => ( +
      3. +
        +
        {time}
        +

        {position}

        +
        {company}
        +
      4. +); + const Experience = ({ loading }) => { const renderSkeleton = () => { let array = []; for (let index = 0; index < 2; index++) { array.push( -
      5. -
        -
        - {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' })} -

        -
      6. + ); } @@ -52,27 +55,18 @@ const Experience = ({ loading }) => {
    -
      +
        {loading ? ( renderSkeleton() ) : ( {config.experiences.map((experience, index) => ( -
      1. -
        -
        - {experience.from} - {experience.to} -
        -

        - {experience.position} -

        -

        - {experience.company} -

        -
      2. + ))}
        )}