Skip to content

Commit

Permalink
some improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmin-panescu committed Jan 23, 2025
1 parent 1b47661 commit c327ec9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 133 deletions.
32 changes: 22 additions & 10 deletions scripts/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var experience = [
"I've worked on some of the following at these places 👨‍💻",
"<br>",
"<span class='white-glow'>Junior Web Developer</span>",
" ├─ <i>360Advertising (may 2024 - december 2024)</i>",
" ├─ <i>360Advertising (May 2024 - December 2024)</i>",
" ├─ Developed 6 websites and optimized 15+ websites, implementing APIs while ensuring",
" │ high performance and an excellent user experience; specialized in development and",
" │ maintenance, including WooCommerce integration, server administration, security",
Expand All @@ -51,6 +51,23 @@ var experience = [
" └─ <i> SQL, Azure OpenAI, SysAdmin, CRM, ERP, CMS, git, Excel.</i>",
"<br>",
];
var education = [
"<br>",
"My educational journey 🎓",
"<br>",
"<span class='white-glow'>University of Bucharest</span>",
" ├─ Bachelor's program: Cybernetics, statistics and economic informatics. (2022-2025)",
" └─ Relevant classes: Computer Programming, Databases, Algorithms and programming techniques",
" Information Technology, Web Technologies, Software Packages, Data Analysis.",
"<br>",
"<span class='white-glow'>Google Cybersecurity</span>",
" └─ Relevant skills: SIEM tools, linux commands, computer networking & security, cryptography,",
" TCP/IP, security controls, network security, cyber attacks, threat modeling.",
"<br>",
"<span class='white-glow'>Frontend Masters</span>",
" └─ Relevant classes: Practical Guide to Algorithms, Modern SEO, Web Performance, JavaScript, Python.",
"<br>",
];

var social = [
"<br>",
Expand Down Expand Up @@ -84,14 +101,12 @@ var projects = [
var help = [
"<br>",
'<span class="command">aboutme</span> Who am I?',
'<span class="command">contact</span> View my socials',
'<span class="command">experience</span> View my relevant work experience',
'<span class="command">education</span> See where and what I study',
'<span class="command">projects</span> View my projects',
'<span class="command">help</span> You should already know what this does',
'<span class="command">error</span> DO NOT USE THIS COMMAND!!!',
'<span class="command">email</span> View my email address',
'<span class="command">clear</span> Clear terminal',
'<span class="command">contact</span> View my socials',
'<span class="command">romana</span> Translate into Romanian',
'<span class="command">search [query]</span> Google it',
'<span class="command">clear</span> Clear terminal',
"<br>",
];

Expand Down Expand Up @@ -124,11 +139,8 @@ var helpRo = [
'<span class="command">contact</span> Vezi rețelele mele sociale',
'<span class="command">proiecte</span> Vezi proiectele mele',
'<span class="command">ajutor</span> Ar trebui sa stii deja ce face',
'<span class="command">error</span> NU FOLOSI ACEASTA COMANDA!!!',
'<span class="command">email</span> Vezi adresa mea de email',
'<span class="command">clear</span> Curăță terminalul',
'<span class="command">english</span> Website in English',
'<span class="command">search [query]</span> Caută pe Google',
"<br>",
];

Expand Down
89 changes: 0 additions & 89 deletions scripts/hackerEffect.js

This file was deleted.

44 changes: 10 additions & 34 deletions scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { activateHackerEffect } from "./hackerEffect.js";

var before = document.getElementById("before");
var liner = document.getElementById("liner");
var command = document.getElementById("typer");
Expand All @@ -13,10 +11,11 @@ var currentLanguage = "en";
const commandsRo = {
help: "ajutor",
aboutme: "despremine",
contact: "contact",
experience: "experienta",
education: "educatie",
projects: "proiecte",
banner: "banner",
search: "cauta",
contact: "contact",
};

let currentDirectory = "";
Expand Down Expand Up @@ -73,25 +72,6 @@ function commander(cmd) {
cmd = Object.keys(commandsRo).find((key) => commandsRo[key] === cmd) || cmd;
}

const searchPattern = /^search\s+(.+)/;
const searchMatch = cmd.match(searchPattern);

if (searchMatch) {
const query = searchMatch[1];
const googleSearchUrl = `https://www.google.com/search?q=${encodeURIComponent(
query
)}`;
addLine(
currentLanguage === "ro"
? `Căutăm pe Google: <a href='${googleSearchUrl}' target='_blank'>${query}</a>`
: `Searching on Google: <a href='${googleSearchUrl}' target='_blank'>${query}</a>`,
"color2",
80
);
newTab(googleSearchUrl);
return;
}

switch (cmd.toLowerCase()) {
case "help":
loopLines(currentLanguage === "ro" ? helpRo : help, "color2 margin", 80);
Expand Down Expand Up @@ -120,6 +100,13 @@ function commander(cmd) {
80
);
break;
case "education":
loopLines(
currentLanguage === "ro" ? educationRo : education,
"color2 margin",
80
);
break;
case "email":
addLine(
currentLanguage === "ro"
Expand All @@ -144,14 +131,6 @@ function commander(cmd) {
);
newTab(github);
break;
case "youtube":
addLine(
currentLanguage === "ro" ? "Către YouTube..." : "Opening YouTube...",
"color2",
80
);
newTab(youtube);
break;
case "linkedin":
addLine(
currentLanguage === "ro" ? "Către LinkedIn..." : "Opening LinkedIn...",
Expand All @@ -171,9 +150,6 @@ function commander(cmd) {
currentLanguage = "en";
updateLanguage();
break;
case "error":
activateHackerEffect();
break;

default:
addLine(
Expand Down

0 comments on commit c327ec9

Please sign in to comment.