Skip to content

Commit

Permalink
Merge pull request #136 from khalosmoscato/patch-1
Browse files Browse the repository at this point in the history
Patch 1
  • Loading branch information
khalosmoscato authored Aug 8, 2024
2 parents e2729b6 + ed9d636 commit 96ec5a3
Show file tree
Hide file tree
Showing 31 changed files with 1,455 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Mac folder system files
.DS_Store
**/.DS_Store

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down
Binary file added users/khalosmoscato/.DS_Store
Binary file not shown.
11 changes: 0 additions & 11 deletions users/khalosmoscato/index.html

This file was deleted.

Binary file added users/khalosmoscato/khalos/.DS_Store
Binary file not shown.
106 changes: 106 additions & 0 deletions users/khalosmoscato/khalos/calculator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles/calculator.css">
</head>
<body>
<!-- Create an element to display the calculation. -->
<p class="js-calculation calculation"></p>

<p>
<button class="calculator-button gray-button" onclick="
updateCalculation('1');
">1</button>

<button class="calculator-button gray-button" onclick="
updateCalculation('2');
">2</button>

<button class="calculator-button gray-button" onclick="
updateCalculation('3');
">3</button>

<button class="calculator-button orange-button" onclick="
updateCalculation(' + ');
">+</button>
</p>

<p>
<button class="calculator-button gray-button" onclick="
updateCalculation('4');
">4</button>

<button class="calculator-button gray-button" onclick="
updateCalculation('5');
">5</button>

<button class="calculator-button gray-button" onclick="
updateCalculation('6');
">6</button>

<button class="calculator-button orange-button" onclick="
updateCalculation(' - ');
">-</button>
</p>

<p>
<button class="calculator-button gray-button" onclick="
updateCalculation('7');
">7</button>

<button class="calculator-button gray-button" onclick="
updateCalculation('8');
">8</button>

<button class="calculator-button gray-button" onclick="
updateCalculation('9');
">9</button>

<button class="calculator-button orange-button" onclick="
updateCalculation(' * ');
">*</button>
</p>

<p>
<button class="calculator-button gray-button" onclick="
updateCalculation('0');
">0</button>

<button class="calculator-button gray-button" onclick="
updateCalculation('.');
">.</button>

<button class="calculator-button gray-button" onclick="
// Note: eval() takes a string and runs it as code.
// Avoid using eval() in real world projects since
// it can potentially be given harmful code to run.
// Only use eval() for learning purposes.
calculation = eval(calculation);
// Display the calculation on the page
// instead of console.log
displayCalculation();
localStorage.setItem('calculation', calculation);
">=</button>

<button class="calculator-button orange-button" onclick="
updateCalculation(' / ');
">/</button>
</p>

<p>
<button class="calculator-button gray-button clear-button" onclick="
calculation = '';
// Display the calculation on the page
// instead of console.log
displayCalculation();
localStorage.setItem('calculation', calculation);
">Clear</button>
</p>

<script src="scripts/calculator.js"></script>
</body>
</html>
26 changes: 26 additions & 0 deletions users/khalosmoscato/khalos/ekans.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Snake Game JavaScript</title>
<link rel="stylesheet" href="styles/ekans.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">
<script src="scripts/ekans.js" defer></script>
</head>
<body>
<div class="wrapper">
<div class="game-details">
<span class="score">Score: 0</span>
<span class="high-score">High Score: 0</span>
</div>
<div class="play-board"></div>
<div class="controls">
<i data-key="ArrowLeft" class="fa-solid fa-arrow-left-long"></i>
<i data-key="ArrowUp" class="fa-solid fa-arrow-up-long"></i>
<i data-key="ArrowRight" class="fa-solid fa-arrow-right-long"></i>
<i data-key="ArrowDown" class="fa-solid fa-arrow-down-long"></i>
</div>
</div>
</body>
</html>
137 changes: 137 additions & 0 deletions users/khalosmoscato/khalos/example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="'viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/example.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Poppins:200i,300,400&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Raleway:700&amp;display=swap" rel="stylesheet"> -->
</head>
<body>
<!-- START NAV -->

<nav id="navbar" class="nav">
<ul class="nav-list">
<li>
<a href="#welcome-section">Info</a>
</li>
<li>
<a href="#projects">Projects</a>
</li>
<li>
<a href="#contact">Contact</a>
</li>
</ul>
</nav>

<!-- END NAV -->

<!-- START WELCOME SECTION -->

<section id="welcome-section" class="welcome-section">
<h1>Hi everyone, this is Khalos!</h1>
<p>a web developer by day and super hero by night</p>
</section>

<!-- END WELCOME SECTION -->

<!-- START PROJECTS SECTION -->

<section id="projects" class="projects-section">
<h2 class="projects-section-header">These are some of my projects</h2>

<div class="projects-grid">
<a href="https://codepen.io/freeCodeCamp/full/zNqgVx" target="_blank" class="project project-tile">
<img class="project-image" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute.jpg" alt="project">
<p class="project-title">
<span class="code">&lt;</span>
Tribute Page
<span class="code">/&gt;</span>
</p>
</a>
<a href="https://codepen.io/freeCodeCamp/full/qRZeGZ" target="_blank" class="project project-tile">
<img class="project-image" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/random-quote-machine.png" alt="project">
<p class="project-title">
<span class="code">&lt;</span>
Random Quote Machine
<span class="code">/&gt;</span>
</p>
</a>
<a href="https://codepen.io/freeCodeCamp/full/wgGVVX" target="_blank" class="project project-tile">
<img class="project-image" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/calc.png" alt="project">
<p class="project-title">
<span class="code">&lt;</span>
JavaScript Calculator
<span class="code">/&gt;</span>
</p>
</a>
<a href="https://codepen.io/freeCodeCamp/full/mVEJag" target="_blank" class="project project-tile">
<img class="project-image" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/map.jpg" alt="project">
<p class="project-title">
<span class="code">&lt;</span>
Map Data Across the Globe
<span class="code">/&gt;</span>
</p>
</a>
<a href="https://codepen.io/freeCodeCamp/full/wGqEga" target="_blank" class="project project-tile">
<img class="project-image" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/wiki.png" alt="project">
<p class="project-title">
<span class="code">&lt;</span>
Wikipedia Viewer
<span class="code">/&gt;</span>
</p>
</a>
<a href="https://codepen.io/freeCodeCamp/full/KzXQgy" target="_blank" class="project project-tile">
<img class="project-image" src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tic-tac-toe.png" alt="project">
<p class="project-title">
<span class="code">&lt;</span>
Tic Tac Toe Game
<span class="code">/&gt;</span>
</p>
</a>
</div>

<a href="https://codepen.io/FreeCodeCamp/" class="btn btn-show-all" target="_blank">Show all<i class="fas fa-chevron-right"></i></a>
</section>

<!-- END PROJECTS SECTION -->

<!-- START CONTACT SECTION -->

<section id="contact" class="contact-section">
<div class="contact-section-header">
<h2>Let's work together...</h2>
<p>How do you take your coffee?</p>
</div>
<div class="contact-links">
<a href="https://facebook.com/freecodecamp" target="_blank" class="btn contact-details"><i class="fab fa-facebook-square"></i> Facebook</a>
<a id="profile-link" href="https://github.com/freecodecamp" target="_blank" class="btn contact-details"><i class="fab fa-github"></i> GitHub</a>
<a href="https://twitter.com/freecodecamp" target="_blank" class="btn contact-details"><i class="fab fa-twitter"></i> Twitter</a>
<a href="mailto:[email protected]" class="btn contact-details"><i class="fas fa-at"></i> Send a mail</a>
<a href="tel:555-555-5555" class="btn contact-details"><i class="fas fa-mobile-alt"></i> Call me</a>
</div>
</section>

<!-- END CONTACT SECTION -->

<!-- START FOOTER SECTION -->

<footer>
<p>
**This is just a fake portfolio. All the projects and contact details
given are not real.
</p>
<p>
© Created for
<a href="https://www.freecodecamp.com/" target="_blank">freeCodeCamp <i class="fab fa-free-code-camp"></i></a>
</p>
</footer>

<script src="scripts/example.js"></script>

<!-- END FOOTER SECTION -->


</body>
</html>
Binary file added users/khalosmoscato/khalos/images/calculator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added users/khalosmoscato/khalos/images/ekans.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added users/khalosmoscato/khalos/images/paper-emoji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added users/khalosmoscato/khalos/images/rock-emoji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added users/khalosmoscato/khalos/images/rps-game.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added users/khalosmoscato/khalos/images/sh-day.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added users/khalosmoscato/khalos/images/sh-night.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading

0 comments on commit 96ec5a3

Please sign in to comment.