From 48c05ae7a4be3d091fc1ec368ab306da97850450 Mon Sep 17 00:00:00 2001 From: RandomDemon <104325602+RandomDemon@users.noreply.github.com> Date: Fri, 19 May 2023 19:08:52 -0400 Subject: [PATCH 1/6] Update index.html --- index.html | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index 88c12ab..155a491 100644 --- a/index.html +++ b/index.html @@ -1,15 +1,12 @@ - - - - CodeNerve - - - - - -
- - - - + + + + CodeNerve + + + + + +
+ + From 9d0694f60e2a7b9b149203ebda00966583dcbb82 Mon Sep 17 00:00:00 2001 From: RandomDemon <104325602+RandomDemon@users.noreply.github.com> Date: Fri, 19 May 2023 19:09:55 -0400 Subject: [PATCH 2/6] Update index.css --- index.css | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/index.css b/index.css index 7c24ccc..e7c4e00 100644 --- a/index.css +++ b/index.css @@ -1,19 +1,17 @@ :root { - background-color: #000 !important; + background-color: #000; } body { - background-color: #000 + background-color: #000; } #console { - font-family: courier, monospace; + font-family: Courier, monospace; color: #fff; - width:750px; - margin-left:auto; - margin-right:auto; - margin-top:100px; - font-size:14px; + width: 750px; + margin: 100px auto 0; + font-size: 14px; } a { @@ -34,15 +32,15 @@ a { } #k { - animation: change 1s; + animation: change 1s; } -#op{ - color: #888888 +#op { + color: #888888; } @keyframes change { - 0% { color: #0f0; } - 50% { color: #0f0; } - 99% { color: black; } + 0% { color: #0f0; } + 50% { color: #0f0; } + 99% { color: #000; } } From d5d21888f6645f9aff8882938280a49f5ee73fa9 Mon Sep 17 00:00:00 2001 From: RandomDemon <104325602+RandomDemon@users.noreply.github.com> Date: Fri, 19 May 2023 19:12:00 -0400 Subject: [PATCH 3/6] Update index.js --- index.js | 210 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 106 insertions(+), 104 deletions(-) diff --git a/index.js b/index.js index c8b0597..0dd1975 100644 --- a/index.js +++ b/index.js @@ -1,121 +1,123 @@ -var Typer = { - text: '', - accessCountimer: null, - index: 0, - speed: 2, - file: '', - accessCount: 0, - deniedCount: 0, - init: function () { - accessCountimer = setInterval(function () { - Typer.updLstChr(); - }, 500); - $.get(Typer.file, function (data) { - Typer.text = data; - Typer.text = Typer.text.slice(0, Typer.text.length - 1); - }); - }, - - content: function () { - return $('#console').html(); - }, - - write: function (str) { - $('#console').append(str); - return false; - }, - - addText: function (key) { - if (key.keyCode == 18) { - Typer.accessCount++; - - if (Typer.accessCount >= 3) { - Typer.makeAccess(); - } - } else if (key.keyCode == 20) { - Typer.deniedCount++; - - if (Typer.deniedCount >= 3) { - Typer.makeDenied(); - } - } else if (key.keyCode == 27) { - Typer.hidepop(); - } else if (Typer.text) { - var cont = Typer.content(); - if (cont.substring(cont.length - 1, cont.length) == '|') - $('#console').html( - $('#console') - .html() - .substring(0, cont.length - 1), - ); - if (key.keyCode != 8) { - Typer.index += Typer.speed; - } else { - if (Typer.index > 0) Typer.index -= Typer.speed; - } - var text = Typer.text.substring(0, Typer.index); - var rtn = new RegExp('\n', 'g'); - - $('#console').html(text.replace(rtn, '
')); - window.scrollBy(0, 50); - } - - if (key.preventDefault && key.keyCode != 122) { - key.preventDefault(); +const Typer = { + text: '', + accessCountimer: null, + index: 0, + speed: 2, + file: '', + accessCount: 0, + deniedCount: 0, + + init: function () { + this.accessCountimer = setInterval(() => { + this.updLstChr(); + }, 500); + fetch(this.file) + .then(response => response.text()) + .then(data => { + this.text = data.slice(0, -1); + }); + }, + + content: function () { + return $('#console').html(); + }, + + write: function (str) { + $('#console').append(str); + return false; + }, + + addText: function (key) { + if (key.keyCode === 18) { + this.accessCount++; + if (this.accessCount >= 3) { + this.makeAccess(); + } + } else if (key.keyCode === 20) { + this.deniedCount++; + if (this.deniedCount >= 3) { + this.makeDenied(); + } + } else if (key.keyCode === 27) { + this.hidepop(); + } else if (this.text) { + const cont = this.content(); + if (cont.endsWith('|')) { + $('#console').html(cont.slice(0, -1)); + } + if (key.keyCode !== 8) { + this.index += this.speed; + } else { + if (this.index > 0) { + this.index -= this.speed; } + } + const text = this.text.substring(0, this.index); + const rtn = /\n/g; + $('#console').html(text.replace(rtn, '
')); + window.scrollBy(0, 50); + } - if (key.keyCode != 122) { - // otherway prevent keys default behavior - key.returnValue = false; - } - }, - - updLstChr: function () { - var cont = this.content(); - - if (cont.substring(cont.length - 1, cont.length) == '|') - $('#console').html( - $('#console') - .html() - .substring(0, cont.length - 1), - ); - else this.write('|'); // else write it - }, -}; + if (key.preventDefault && key.keyCode !== 122) { + key.preventDefault(); + } -function replaceUrls(text) { - var http = text.indexOf('http://'); - var space = text.indexOf('.me ', http); + if (key.keyCode !== 122) { + // prevent default behavior for other keys + key.returnValue = false; + } + }, - if (space != -1) { - var url = text.slice(http, space - 1); - return text.replace(url, '' + url + ''); + updLstChr: function () { + const cont = this.content(); + if (cont.endsWith('|')) { + $('#console').html(cont.slice(0, -1)); } else { - return text; + this.write('|'); } + }, + + makeAccess: function () { + // Implement the makeAccess function as needed + }, + + makeDenied: function () { + // Implement the makeDenied function as needed + }, + + hidepop: function () { + // Implement the hidepop function as needed + } +}; + +function replaceUrls(text) { + const http = text.indexOf('http://'); + const space = text.indexOf('.me ', http); + + if (space !== -1) { + const url = text.slice(http, space - 1); + return text.replace(url, `${url}`); + } else { + return text; + } } Typer.speed = 3; Typer.file = 'CodeNerve.txt'; Typer.init(); -var timer = setInterval('t();', 30); +const timer = setInterval(t, 30); function t() { - Typer.addText({keyCode: 123748}); - - if (Typer.index > Typer.text.length) { - clearInterval(timer); - } + Typer.addText({ keyCode: 123748 }); +if (Typer.index > Typer.text.length) { +clearInterval(timer); } - -document.onkeydown = function (e) { - if (e.keyCode == 27) { - // fastforward text - Typer.index = Typer.text.length; - } } - - - +document.addEventListener('keydown', function (e) { +if (e.keyCode === 27) { +// fast forward text +Typer.index = Typer.text.length; +} +}); \ No newline at end of file From a008c0744f9f28b66884c69ca16aea55384d4bd9 Mon Sep 17 00:00:00 2001 From: RandomDemon <104325602+RandomDemon@users.noreply.github.com> Date: Fri, 19 May 2023 19:14:15 -0400 Subject: [PATCH 4/6] Update CodeNerve.txt --- CodeNerve.txt | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/CodeNerve.txt b/CodeNerve.txt index 2408159..f6e232c 100644 --- a/CodeNerve.txt +++ b/CodeNerve.txt @@ -1,13 +1,22 @@ -code@nerve:~$ cd CodeNerve/About_Us -coder@nerve:~$ cat codenerve.txt

-My favorite code quote, "Code for Everyone". +code@nerve:~$ cd CodeNerve/About_Us -Hey There! This is the portflio website in the skin of a terminal.

You can see that, this is how your portfolio would look like.

-

You can introduce yourself here.

-

You can also tell what you've worked and known and what skills you have, you can also give link to your professional portfolio here portfolio.

-

Tell more about yourself.


Give your project links or something like that. Here you go.

-

You can give links to other professional profiles you have on Internet, here:
Profile1
Profile2 and
Profile3.

+coder@nerve:~$ cat codenerve.txt

+My favorite code quote, "Code for Everyone". -You can also give your email ID for contacting you, feel free to send me an email atEmail. +Hey there! This is the portfolio website in the skin of a terminal. + +

You can see that this is how your portfolio would look like.

+

You can introduce yourself here.

+ +

You can also share your work experience and skills. You can provide a link to your professional portfolio here.

+ +

Tell more about yourself.


Share your project links or anything you'd like to highlight. Here you go.

+ +

You can also provide links to your other professional profiles on the internet, such as:
+Profile1
+Profile2
+Profile3

+ +You can also share your email ID for contacting you. Feel free to send me an email at Email.

Cheers!

From 77bd72ac18e23a819b0879a04d8a5e95113a63d6 Mon Sep 17 00:00:00 2001 From: RandomDemon <104325602+RandomDemon@users.noreply.github.com> Date: Fri, 19 May 2023 19:15:35 -0400 Subject: [PATCH 5/6] Update README.md --- README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5b1d7a9..33230b9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,48 @@ -# CodeNerve.github.io -Terminal based portfolio website for CodeNerve +# CodeNerve Portfolio Website + +Welcome to the CodeNerve Portfolio Website project! This project aims to create a unique and interactive portfolio website in the form of a terminal interface. + +## Project Overview + +The CodeNerve Portfolio Website is designed to showcase your skills, projects, and professional information in a creative and engaging manner. The website mimics a terminal environment, providing a unique user experience for visitors. + +## Features + +- Terminal Interface: The portfolio website resembles a terminal, giving it a distinctive look and feel. +- Introduction: Introduce yourself and provide a brief overview of your background and expertise. +- Professional Portfolio: Share your work experience, skills, and accomplishments by providing a link to your professional portfolio. +- Project Showcase: Highlight your projects by including descriptions and links for visitors to explore. +- External Profile Links: Provide links to your other professional profiles on the internet, such as LinkedIn, GitHub, or other relevant platforms. +- Contact Information: Include your email ID for visitors to contact you. + +## Usage + +To view the portfolio website locally, follow these steps: + +1. Clone the project repository. +2. Open the `index.html` file in your preferred web browser. +3. Explore the different sections of the website by navigating through the terminal interface. +4. Click on links to access additional information or external profiles. +5. Enjoy the interactive experience and get to know the portfolio owner better. + +## Contributions + +Contributions to the CodeNerve Portfolio Website project are welcome. If you would like to contribute new features, enhancements, or bug fixes, please follow these steps: + +1. Fork the repository. +2. Create a new branch for your contribution. +3. Make your changes and ensure that the website is functioning correctly. +4. Commit and push your changes to your forked repository. +5. Submit a pull request detailing your changes and their purpose. + +Please ensure that your contributions align with the project's goals and adhere to the existing code style and structure. + +## License + +This project is licensed under the [MIT License](LICENSE). Feel free to modify and use the code for personal or commercial projects. + +## Contact + +If you have any questions, suggestions, or feedback regarding the CodeNerve Portfolio Website project, please feel free to contact [Your Name] at [Your Email Address]. + +Thank you for your interest and support in this project! From 802adbfe5f6e64e9f9a15acebcae8f1be0ce0907 Mon Sep 17 00:00:00 2001 From: RandomDemon <104325602+RandomDemon@users.noreply.github.com> Date: Fri, 19 May 2023 19:18:50 -0400 Subject: [PATCH 6/6] Update README.md --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 33230b9..3180034 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,4 @@ Please ensure that your contributions align with the project's goals and adhere This project is licensed under the [MIT License](LICENSE). Feel free to modify and use the code for personal or commercial projects. -## Contact - -If you have any questions, suggestions, or feedback regarding the CodeNerve Portfolio Website project, please feel free to contact [Your Name] at [Your Email Address]. - -Thank you for your interest and support in this project! +## Thank you for your interest and support in this project!