Skip to content

Commit ba36cf7

Browse files
refactor: update whoami page, update maxTimeout
1 parent d91635d commit ba36cf7

File tree

4 files changed

+17
-21
lines changed

4 files changed

+17
-21
lines changed

src/components/Typewriter/utils/generateActions.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const generateActions = async (
2323
let isComplete = false;
2424
let currentStr = '';
2525
const typoRate = drawCharRandomness?.typoRate ?? 0.2;
26-
const maxTimeout = drawCharRandomness?.maxTimeout ?? 250;
26+
const maxTimeout = drawCharRandomness?.maxTimeout ?? 300;
2727
const deleteTimeoutMultiplier =
2828
drawCharRandomness?.deleteTimeoutMultiplier ?? 1.2;
2929

@@ -42,11 +42,7 @@ export const generateActions = async (
4242
if (isError && typo) {
4343
const typoChar = typo[Math.floor(Math.random() * typo.length)];
4444
const typoTime = Math.random() * maxTimeout * deleteTimeoutMultiplier;
45-
const correctionTime =
46-
Math.random() *
47-
maxTimeout *
48-
deleteTimeoutMultiplier *
49-
deleteTimeoutMultiplier;
45+
const correctionTime = typoTime * deleteTimeoutMultiplier;
5046

5147
// first action: error
5248
actions.push({

src/i18n/en/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ const en = {
1515
testPostfix: ' :)',
1616
},
1717
whoami: {
18-
title: "I'm Valerio Pescatori and I work as a Frontend Engineer",
19-
par1: "Child of the web, _always_ been passionate about Computer Science and programming. Earned my Bachelor's Degree in Computer Science from _Sapienza University of Rome_.",
20-
par2: 'During my studies I had the chance to learn a lot and to develop a _"scientific"_ approach that I use on a daily basis to solve techincal problems, to build __scalable__, __user-friendly__ and __efficient__ architectures.',
21-
par3: "I've been working for Accenture for the past 2 years: I worked on various large-scale projects taking technical decisions and implementing new features. Among the tool I've used the most important are:",
18+
title: 'My name is Valerio Pescatori and I am a Frontend Engineer',
19+
par1: "Passionate about computer science and programming from an early age, I earned a Bachelor's Degree in Computer Science from _Sapienza, University of Rome_, building a solid technical and methodological foundation.",
20+
par2: 'My academic journey enabled me to develop a _"scientific"_ approach to solving technical problems and designing __scalable__, __user-friendly__, and __efficient__ architectures, with particular attention to code quality and best practices.',
21+
par3: 'At Accenture, I gained two years of experience on large-scale enterprise projects, taking responsibility for technical and architectural decisions, coordinating with teams, and implementing critical features. Among the main tools I used:',
2222
},
2323
contacts: {
2424
title: 'You can find me here:',

src/i18n/i18n-types.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@ type RootTranslation = {
5757
}
5858
whoami: {
5959
/**
60-
* I​'​m​ ​V​a​l​e​r​i​o​ ​P​e​s​c​a​t​o​r​i​ ​a​n​d​ ​I​ ​w​o​r​k​ ​a​s​ ​a​ ​F​r​o​n​t​e​n​d​ ​E​n​g​i​n​e​e​r
60+
* M​y​ ​n​a​m​e​ ​i​s​ ​V​a​l​e​r​i​o​ ​P​e​s​c​a​t​o​r​i​ ​a​n​d​ ​I​ ​a​m​ ​a​ ​F​r​o​n​t​e​n​d​ ​E​n​g​i​n​e​e​r
6161
*/
6262
title: string
6363
/**
64-
* C​h​i​l​d​ ​o​f​ ​t​h​e​ ​w​e​b​,​ ​_​a​l​w​a​y​s​_​ ​b​e​e​n​ ​p​a​s​s​i​o​n​a​t​e​ ​a​b​o​u​t​ ​C​o​m​p​u​t​e​r​ ​S​c​i​e​n​c​e​ ​a​n​d​ ​p​r​o​g​r​a​m​m​i​n​g​.​ ​E​a​r​n​e​d​ ​m​y​ ​B​a​c​h​e​l​o​r​'​s​ ​D​e​g​r​e​e​ ​i​n​ ​C​o​m​p​u​t​e​r​ ​S​c​i​e​n​c​e​ ​f​r​o​m​ ​_​S​a​p​i​e​n​z​a​ ​U​n​i​v​e​r​s​i​t​y​ ​o​f​ ​R​o​m​e​_​.
64+
* P​a​s​s​i​o​n​a​t​e​ ​a​b​o​u​t​ ​c​o​m​p​u​t​e​r​ ​s​c​i​e​n​c​e​ ​a​n​d​ ​p​r​o​g​r​a​m​m​i​n​g​ ​f​r​o​m​ ​a​n​ ​e​a​r​l​y​ ​a​g​e​,​ ​I​ ​e​a​r​n​e​d​ ​a​ ​B​a​c​h​e​l​o​r​'​s​ ​D​e​g​r​e​e​ ​i​n​ ​C​o​m​p​u​t​e​r​ ​S​c​i​e​n​c​e​ ​f​r​o​m​ ​_​S​a​p​i​e​n​z​a​,​ ​U​n​i​v​e​r​s​i​t​y​ ​o​f​ ​R​o​m​e​_​,​ ​b​u​i​l​d​i​n​g​ ​a​ ​s​o​l​i​d​ ​t​e​c​h​n​i​c​a​l​ ​a​n​d​ ​m​e​t​h​o​d​o​l​o​g​i​c​a​l​ ​f​o​u​n​d​a​t​i​o​n​.
6565
*/
6666
par1: string
6767
/**
68-
* D​u​r​i​n​g​ ​m​y​ ​s​t​u​d​i​e​s​ ​I​ ​h​a​d​ ​t​h​e​ ​c​h​a​n​c​e​ ​t​o​ ​l​e​a​r​n​ ​a​ ​l​o​t​ ​a​n​d​ ​t​o​ ​d​e​v​e​l​o​p​ ​a​ ​_​"​s​c​i​e​n​t​i​f​i​c​"​_​ ​a​p​p​r​o​a​c​h​ ​t​h​a​t​ ​I​ ​u​s​e​ ​o​n​ ​a​ ​d​a​i​l​y​ ​b​a​s​i​s​ ​t​o​ ​s​o​l​v​e​ ​t​e​c​h​i​n​c​a​l​ ​p​r​o​b​l​e​m​s​,​ ​t​o​ ​b​u​i​l​d​ ​_​_​s​c​a​l​a​b​l​e​_​_​,​ ​_​_​u​s​e​r​-​f​r​i​e​n​d​l​y​_​_​ ​a​n​d​ ​_​_​e​f​f​i​c​i​e​n​t​_​_​ ​a​r​c​h​i​t​e​c​t​u​r​e​s​.
68+
* M​y​ ​a​c​a​d​e​m​i​c​ ​j​o​u​r​n​e​y​ ​e​n​a​b​l​e​d​ ​m​e​ ​t​o​ ​d​e​v​e​l​o​p​ ​a​ ​_​"​s​c​i​e​n​t​i​f​i​c​"​_​ ​a​p​p​r​o​a​c​h​ ​t​o​ ​s​o​l​v​i​n​g​ ​t​e​c​h​n​i​c​a​l​ ​p​r​o​b​l​e​m​s​ ​a​n​d​ ​d​e​s​i​g​n​i​n​g​ ​_​_​s​c​a​l​a​b​l​e​_​_​,​ ​_​_​u​s​e​r​-​f​r​i​e​n​d​l​y​_​_​,​ ​a​n​d​ ​_​_​e​f​f​i​c​i​e​n​t​_​_​ ​a​r​c​h​i​t​e​c​t​u​r​e​s​,​ ​w​i​t​h​ ​p​a​r​t​i​c​u​l​a​r​ ​a​t​t​e​n​t​i​o​n​ ​t​o​ ​c​o​d​e​ ​q​u​a​l​i​t​y​ ​a​n​d​ ​b​e​s​t​ ​p​r​a​c​t​i​c​e​s​.
6969
*/
7070
par2: string
7171
/**
72-
* I​'​v​e​ ​b​e​e​n​ ​w​o​r​k​i​n​g​ ​f​o​r​ ​A​c​c​e​n​t​u​r​e​ ​f​o​r​ ​t​h​e​ ​p​a​s​t​ ​2​ ​y​e​a​r​s​:​ ​I​ ​w​o​r​k​e​d​ ​o​n​ ​v​a​r​i​o​u​s​ ​l​a​r​g​e​-​s​c​a​l​e​ ​p​r​o​j​e​c​t​s​ ​t​a​k​i​n​g​ ​t​e​c​h​n​i​c​a​l​ ​d​e​c​i​s​i​o​n​s​ ​a​n​d​ ​i​m​p​l​e​m​e​n​t​i​n​g​ ​n​e​w​ ​f​e​a​t​u​r​e​s​.​ ​A​m​o​n​g​ ​t​h​e​ ​t​o​o​l​ ​I​'​v​e​ ​u​s​e​d​ ​t​h​e​ ​m​o​s​t​ ​i​m​p​o​r​t​a​n​t​ ​a​r​e​:
72+
* A​t​ ​A​c​c​e​n​t​u​r​e​,​ ​I​ ​g​a​i​n​e​d​ ​t​w​o​ ​y​e​a​r​s​ ​o​f​ ​e​x​p​e​r​i​e​n​c​e​ ​o​n​ ​l​a​r​g​e​-​s​c​a​l​e​ ​e​n​t​e​r​p​r​i​s​e​ ​p​r​o​j​e​c​t​s​,​ ​t​a​k​i​n​g​ ​r​e​s​p​o​n​s​i​b​i​l​i​t​y​ ​f​o​r​ ​t​e​c​h​n​i​c​a​l​ ​a​n​d​ ​a​r​c​h​i​t​e​c​t​u​r​a​l​ ​d​e​c​i​s​i​o​n​s​,​ ​c​o​o​r​d​i​n​a​t​i​n​g​ ​w​i​t​h​ ​t​e​a​m​s​,​ ​a​n​d​ ​i​m​p​l​e​m​e​n​t​i​n​g​ ​c​r​i​t​i​c​a​l​ ​f​e​a​t​u​r​e​s​.​ ​A​m​o​n​g​ ​t​h​e​ ​m​a​i​n​ ​t​o​o​l​s​ ​I​ ​u​s​e​d​:
7373
*/
7474
par3: string
7575
}
@@ -219,19 +219,19 @@ export type TranslationFunctions = {
219219
}
220220
whoami: {
221221
/**
222-
* I'm Valerio Pescatori and I work as a Frontend Engineer
222+
* My name is Valerio Pescatori and I am a Frontend Engineer
223223
*/
224224
title: () => LocalizedString
225225
/**
226-
* Child of the web, _always_ been passionate about Computer Science and programming. Earned my Bachelor's Degree in Computer Science from _Sapienza University of Rome_.
226+
* Passionate about computer science and programming from an early age, I earned a Bachelor's Degree in Computer Science from _Sapienza, University of Rome_, building a solid technical and methodological foundation.
227227
*/
228228
par1: () => LocalizedString
229229
/**
230-
* During my studies I had the chance to learn a lot and to develop a _"scientific"_ approach that I use on a daily basis to solve techincal problems, to build __scalable__, __user-friendly__ and __efficient__ architectures.
230+
* My academic journey enabled me to develop a _"scientific"_ approach to solving technical problems and designing __scalable__, __user-friendly__, and __efficient__ architectures, with particular attention to code quality and best practices.
231231
*/
232232
par2: () => LocalizedString
233233
/**
234-
* I've been working for Accenture for the past 2 years: I worked on various large-scale projects taking technical decisions and implementing new features. Among the tool I've used the most important are:
234+
* At Accenture, I gained two years of experience on large-scale enterprise projects, taking responsibility for technical and architectural decisions, coordinating with teams, and implementing critical features. Among the main tools I used:
235235
*/
236236
par3: () => LocalizedString
237237
}

src/i18n/it/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const it = {
1616
},
1717
whoami: {
1818
title: 'Mi chiamo Valerio Pescatori e sono un Frontend Engineer',
19-
par1: 'Figlio del web, sono _sempre_ stato appassionato di informatica e programamzione. Ho conseguito una Laurea Triennale in Informatica presso _Sapienza, Università di Roma_.',
20-
par2: 'Durante il mio persorso di studi ho imparato molto e ho avuto modo di sviluppare ed un approccio _"scientifico"_ alla risoluzione dei problemi tecnici, alla realizzazione di un\'architettura in ottica __scalabile__, __user-friendly__ ed __efficiente__.',
21-
par3: 'Ho lavorato per Accenture per due anni: ho partecipato a diversi progetti di grandi dimensioni prendendo decisioni tecniche e architetturali, implementando nuove funzionalità. Tra i tool che ho utilizato di più ci sono:',
19+
par1: 'Appassionato di informatica e programmazione fin da piccolo, ho conseguito una Laurea Triennale in Informatica presso _Sapienza, Università di Roma_, costruendo solide fondamenta tecniche e metodologiche.',
20+
par2: 'Il mio percorso di studi mi ha permesso di sviluppare un approccio _"scientifico"_ alla risoluzione dei problemi tecnici e alla progettazione di architetture __scalabili__, __user-friendly__ ed __efficienti__, con particolare attenzione alla qualità del codice e alle best practice.',
21+
par3: "In Accenture ho maturato due anni di esperienza su progetti enterprise di grande complessità, assumendo responsabilità nella definizione di scelte tecniche e architetturali, nel coordinamento con i team e nell'implementazione di funzionalità critiche. Tra i principali tool utilizzati:",
2222
},
2323
contacts: {
2424
title: 'Puoi trovarmi qui:',

0 commit comments

Comments
 (0)