Skip to content

Commit

Permalink
Fix senior, fix getImageUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorTom327 authored Oct 14, 2024
1 parent a2de835 commit 9b51eb0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
10 changes: 5 additions & 5 deletions app/data/cv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ type CVItem = {

const originalCV: CVItem[] = [
{
title: "jobs.fullstack",
title: "jobs.fullstack.senior",
society: "societies.soiltrackers",
skills: ["skills.react", "skills.node", "skills.remix", "skills.agile", "skills.postgres", "skills.rust"],
description: ["experiences.soiltrackers.description.0"],
startOf: "2024-01-01",
},
{
title: "jobs.fullstack",
title: "jobs.fullstack.senior",
society: "societies.fasst",
skills: ["skills.react", "skills.node", "skills.express", "skills.mongo", "skills.agile"],
description: ["experiences.fasst.description.0"],
Expand All @@ -39,23 +39,23 @@ const originalCV: CVItem[] = [
startOf: "2018-11-01",
},
{
title: "jobs.fullstack",
title: "jobs.fullstack.index",
society: "societies.monbuilding",
skills: ["skills.meteor", "skills.react"],
description: ["experiences.monbuilding.description.0"],
endOf: "2018-10-01",
startOf: "2018-08-01",
},
{
title: "jobs.fullstack",
title: "jobs.fullstack.index",
society: "societies.solicis",
skills: ["skills.php"],
description: ["experiences.solicis.description.0"],
endOf: "2018-07-01",
startOf: "2018-05-01",
},
{
title: "jobs.fullstack",
title: "jobs.fullstack.index",
society: "societies.mscpi",
skills: ["skills.php"],
description: ["experiences.mscpi.description.0"],
Expand Down
5 changes: 4 additions & 1 deletion app/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@
"title": "My timeline"
},
"jobs": {
"fullstack": "Fullstack Developer",
"fullstack": {
"senior": "Fullstack Developer",
"index": "Fullstack Developer"
},
"csharp": "C# Developer"
},
"societies": {
Expand Down
13 changes: 1 addition & 12 deletions app/lib/getImageUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,7 @@ type Options = Partial<{
}>;

export const getImageUrl = (src: string, options?: Options) => {
if (process.env.NODE_ENV === "development") {
return src;
}

const params = new URLSearchParams({});

params.append("url", src);
// @ts-ignore
params.append("w", propOr(1200, "width", options).toString());
// @ts-ignore
params.append("q", propOr(75, "quality", options).toString());
return `https://valentin-thomas.com/_vercel/image?${params}`;
return src;
};

export default getImageUrl;

0 comments on commit 9b51eb0

Please sign in to comment.