Browse Source

chore: minor formatting

Signed-off-by: Muthu Kumar <muthukumar@thefeathers.in>
pull/1/head
Muthu Kumar 3 years ago
parent
commit
dc41bf4f67
Signed by: mkrhere GPG Key ID: 3FD688398897097E
  1. 35
      src/pages/main/Exp.tsx

35
src/pages/main/Exp.tsx

@ -3,27 +3,47 @@ import { css } from "@emotion/css";
import Container from "../../components/Container"; import Container from "../../components/Container";
const exp = [ const exp = [
{ title: "BlueCube", location: "Chennai", position: "Architectural Intern", year: "2015" }, {
{ title: "Zoho", location: "Chennai", position: "Technical Content Writer", year: "2017" }, title: "BlueCube",
location: "Chennai",
position: "Architectural Intern",
year: "2015",
},
{
title: "Zoho",
location: "Chennai",
position: "Technical Content Writer",
year: "2017",
},
{ {
title: "Manoj Exports", title: "Manoj Exports",
location: "Chennai", location: "Chennai",
position: "Designer & web developer", position: "Designer & web developer",
year: "2017", year: "2017",
}, },
{ title: "Klenty", location: "Chennai", position: "Full stack developer", year: "2018" }, {
title: "Klenty",
location: "Chennai",
position: "Full stack developer",
year: "2018",
},
{ {
title: "Hugo's Way", title: "Hugo's Way",
location: "Remote", location: "Remote",
position: "Full stack developer", position: "Full stack developer",
year: "2018-19", year: "2018-19",
}, },
{ title: "Feathers Studio", location: "Chennai", position: "Founder", year: "2019-present" },
{ {
title: "Navana Tech", title: "Navana Tech",
location: "Remote", location: "Remote",
position: "Lead web dev", position: "Lead web dev / architect",
year: "2021-present", year: "2021-22",
},
{
title: "Feathers Studio",
location: "Chennai",
position: "Founder",
year: "2019-present",
}, },
]; ];
@ -90,7 +110,8 @@ const getAge = (date: string) => {
var birthDate = new Date(date); var birthDate = new Date(date);
var age = today.getFullYear() - birthDate.getFullYear(); var age = today.getFullYear() - birthDate.getFullYear();
var m = today.getMonth() - birthDate.getMonth(); var m = today.getMonth() - birthDate.getMonth();
if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) return age - 1; if (m < 0) return age - 1;
if (m === 0 && today.getDate() < birthDate.getDate()) return age - 1;
return age; return age;
}; };

Loading…
Cancel
Save