diff --git a/src/components/AboutPage/index.tsx b/src/components/AboutPage/index.tsx index 52cfc79f..81892b3c 100644 --- a/src/components/AboutPage/index.tsx +++ b/src/components/AboutPage/index.tsx @@ -1,49 +1,52 @@ -import { mdiBullet } from '@mdi/js' -import Icon from '@mdi/react' -import { useEffect, useState } from 'react' +import { mdiBullet } from "@mdi/js"; +import Icon from "@mdi/react"; +import { useEffect, useState } from "react"; -export default function AboutPage () { - const [currentGrade, setCurrentGrade] = useState("0th") +export default function AboutPage() { + const [currentGrade, setCurrentGrade] = useState("0th"); useEffect(() => { - let year:number = new Date().getFullYear() + let year: number = new Date().getFullYear(); if (year > 2027) { -let result = year - 2027 - switch(result) { -case 0: - setCurrentGrade(`12th`) - break; - default: -setCurrentGrade(`Collage Student`) - break; + let result = year - 2027; + switch (result) { + case 0: + setCurrentGrade(`12th`); + break; + default: + setCurrentGrade(`Collage Student`); + break; } } else { - setCurrentGrade(`${Math.abs((2027 - 2024) - 13)}th`) + setCurrentGrade(`${Math.abs(2027 - 2024 - 13)}th`); } - }) - return
-
-

-Some info about me -

-
-
-

- Hi Everyone, I am{' '} - Saahil dutta, - from USA -
I am a {currentGrade} grader in KCD. -
-
- Apart from coding, some other activities that I love to do! -

-
    -
  • - Playing Games -
  • -
  • - Eating different types of food -
  • - {/*
  • + }); + return ( +
    +
    +

    + Some info about me +

    +
    +
    +

    + Hi Everyone, I am{" "} + Saahil dutta, + from USA +
    I am a {currentGrade} grader in KCD. +
    +
    + Apart from coding, some other activities that I love to do! +

    +
      +
    • + {" "} + Playing Games +
    • +
    • + {" "} + Eating different types of food +
    • + {/*
    • Traveling
    • */}