Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fzcj-pl/HTML-CSS-JavaScript-projects-for-beginners
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: sahandghavidel/HTML-CSS-JavaScript-projects-for-beginners
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Mar 2, 2023

  1. add weather app

    sahandghavidel committed Mar 2, 2023
    Copy the full SHA
    6064fbc View commit details

Commits on Mar 4, 2023

  1. update weather app

    sahandghavidel committed Mar 4, 2023
    Copy the full SHA
    d51b3e3 View commit details
  2. add new projects

    sahandghavidel committed Mar 4, 2023
    Copy the full SHA
    99e37f2 View commit details

Commits on Mar 6, 2023

  1. Copy the full SHA
    d464c78 View commit details

Commits on Mar 7, 2023

  1. Copy the full SHA
    55fd9ba View commit details

Commits on Mar 10, 2023

  1. Update README.md

    sahandghavidel authored Mar 10, 2023
    Copy the full SHA
    d3c6e3c View commit details

Commits on Mar 16, 2023

  1. update and clean files

    sahandghavidel committed Mar 16, 2023
    Copy the full SHA
    ce561ee View commit details
  2. Copy the full SHA
    ad2a96d View commit details
  3. clean files 2

    sahandghavidel committed Mar 16, 2023
    Copy the full SHA
    e62d161 View commit details
  4. update folder name

    sahandghavidel committed Mar 16, 2023
    Copy the full SHA
    f04e0e3 View commit details

Commits on Mar 22, 2023

  1. Copy the full SHA
    61d4cf2 View commit details

Commits on Mar 23, 2023

  1. Copy the full SHA
    3ff1ee9 View commit details
  2. Copy the full SHA
    051f5a5 View commit details

Commits on Mar 24, 2023

  1. Copy the full SHA
    0c0e315 View commit details

Commits on Mar 25, 2023

  1. Copy the full SHA
    07a1687 View commit details

Commits on Mar 26, 2023

  1. Copy the full SHA
    dfb834e View commit details

Commits on Mar 27, 2023

  1. add 2 new projects

    sahandghavidel committed Mar 27, 2023
    Copy the full SHA
    2617699 View commit details

Commits on Mar 28, 2023

  1. add 2 more projects

    sahandghavidel committed Mar 28, 2023
    Copy the full SHA
    0643a11 View commit details

Commits on Mar 29, 2023

  1. Copy the full SHA
    6d61e9c View commit details

Commits on Mar 30, 2023

  1. update recipe book app

    sahandghavidel committed Mar 30, 2023
    Copy the full SHA
    0894ef2 View commit details

Commits on Apr 11, 2023

  1. update last 4 projects

    sahandghavidel committed Apr 11, 2023
    Copy the full SHA
    cde2cb9 View commit details

Commits on Jun 4, 2023

  1. Update README.md

    sahandghavidel authored Jun 4, 2023
    Copy the full SHA
    b395884 View commit details
  2. Update README.md

    sahandghavidel authored Jun 4, 2023
    Copy the full SHA
    383128a View commit details

Commits on Oct 3, 2023

  1. Update README.md

    sahandghavidel authored Oct 3, 2023
    Copy the full SHA
    9178903 View commit details
Showing with 1,759 additions and 50 deletions.
  1. +15 −13 README.md
  2. +0 −34 projects/Navbar-project/index.html
  3. +23 −0 projects/age-calculator/index.html
  4. +31 −0 projects/age-calculator/index.js
  5. +63 −0 projects/age-calculator/style.css
  6. BIN projects/{background-video-project → background-video}/background-video.mp4
  7. 0 projects/{background-video-project → background-video}/index.html
  8. 0 projects/{background-video-project → background-video}/index.js
  9. BIN projects/{background-video-project → background-video}/preloader.gif
  10. 0 projects/{background-video-project → background-video}/styles.css
  11. +35 −0 projects/basic-calculator/index.html
  12. +29 −0 projects/basic-calculator/index.js
  13. +68 −0 projects/basic-calculator/style.css
  14. +1 −0 projects/dad-jokes-generator/index.js
  15. +20 −0 projects/dice-roll-simulator/index.html
  16. +53 −0 projects/dice-roll-simulator/index.js
  17. +70 −0 projects/dice-roll-simulator/style.css
  18. +1 −1 projects/double-landing-page/style.css
  19. +57 −0 projects/image-search-app/index.html
  20. +54 −0 projects/image-search-app/index.js
  21. +125 −0 projects/image-search-app/style.css
  22. +34 −0 projects/music-player/index.html
  23. BIN projects/music-player/pause.png
  24. BIN projects/music-player/play.png
  25. +90 −0 projects/music-player/script.js
  26. BIN projects/music-player/songs/song1.m4a
  27. BIN projects/music-player/songs/song2.m4a
  28. BIN projects/music-player/songs/song3.m4a
  29. +90 −0 projects/music-player/style.css
  30. +38 −0 projects/navbar/index.html
  31. 0 projects/{Navbar-project → navbar}/index.js
  32. 0 projects/{Navbar-project → navbar}/logo.svg
  33. 0 projects/{Navbar-project → navbar}/styles.css
  34. +1 −1 projects/new-year-countdown/index.html
  35. +1 −1 projects/new-year-countdown/index.js
  36. +22 −0 projects/pomodoro-timer/index.html
  37. +42 −0 projects/pomodoro-timer/index.js
  38. +47 −0 projects/pomodoro-timer/style.css
  39. 0 projects/{Q&A-section → q-and-a-section}/app.js
  40. 0 projects/{Q&A-section → q-and-a-section}/index.html
  41. 0 projects/{Q&A-section → q-and-a-section}/styles.css
  42. +57 −0 projects/recipe-book-app/index.html
  43. +50 −0 projects/recipe-book-app/index.js
  44. +104 −0 projects/recipe-book-app/style.css
  45. +25 −0 projects/rock-paper-scissors-game/index.html
  46. +42 −0 projects/rock-paper-scissors-game/index.js
  47. +58 −0 projects/rock-paper-scissors-game/style.css
  48. 0 projects/{Sidebar-project → sidebar}/index.html
  49. 0 projects/{Sidebar-project → sidebar}/index.js
  50. 0 projects/{Sidebar-project → sidebar}/logo.svg
  51. 0 projects/{Sidebar-project → sidebar}/styles.css
  52. +20 −0 projects/stopwatch/index.html
  53. +54 −0 projects/stopwatch/index.js
  54. +61 −0 projects/stopwatch/style.css
  55. +28 −0 projects/tip-calculator/index.html
  56. +13 −0 projects/tip-calculator/index.js
  57. +53 −0 projects/tip-calculator/style.css
  58. +32 −0 projects/weather-app/index.html
  59. +58 −0 projects/weather-app/index.js
  60. +94 −0 projects/weather-app/style.css
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# HTML-CSS-JavaScript-projects-for-beginners

This is the source code of the YouTube video (10 projects) https://www.youtube.com/watch?v=ePzOFu2xXUQ.

Part 2 (16 projects) : https://youtu.be/EWv2jnhZErc

NEW HTML CSS JavaScript Projects Interesting HTML CSS JavaScript projects Learn HTML, CSS, and JavaScript 2021 to create modern websites. Fun learning HTML, CSS, and JavaScript!

I'm Sahand, a web developer in computer science. I've been doing this for over a decade. This course was created to share my knowledge and experience with you. Build simple websites using HTML, CSS, and JavaScript. Responsive web design employs HTML, CSS, and JavaScript. This is a skill you'll learn in this course. This new course teaches students how to install Visual Studio Code and its extensions. Then we start from scratch with each project. After finishing HTML, it's on to CSS and JavaScript. Building in HTML, CSS, or JavaScript is fine. This guide explains HTML, CSS, and JavaScript syntax.

Every project is started from scratch and finished without using copied code. Then they are used on the project to ensure everyone understands. This program's exciting project-based curriculum includes building modern, super cool, and responsive websites! Let's get started learning HTML, CSS, and JavaScript.

Contact me if you have any questions through my twitter: @codewithsahand.
# <a href="https://100jsprojects.com" style="background-color: #1a73e8; color: white; font-weight: bold; padding: 10px 20px; border-radius: 5px; text-decoration: none;">HTML CSS JavaScript Projects</a>

This is the source code of the website: <a href="https://100jsprojects.com" style="background-color: #1a73e8; color: white; font-weight: bold; padding: 10px 20px; border-radius: 5px; text-decoration: none;">100 HTML CSS JavaScript Projects</a>
<div>
Visit <a href="https://100jsprojects.com">100jsprojects.com</a> to preview the projects.

</div>
<div style="max-width: 600px; margin: 0 auto; padding: 20px;">
<h1 style="font-size: 2rem; font-weight: bold; margin-bottom: 10px;">About</h1>
<p style="font-size: 1.1rem; line-height: 1.5; margin-bottom: 20px;">Hi there! I'm Sahand, a web developer with over a decade of experience. This course, "<a href="https://100jsprojects.com" style="background-color: #1a73e8; color: white; font-weight: bold; padding: 10px 20px; border-radius: 5px; text-decoration: none;">HTML CSS JavaScript Projects</a>," was created to share my knowledge and experience with you. In this course, you'll learn how to build simple, responsive websites using HTML, CSS, and JavaScript.</p>
<p style="font-size: 1.1rem; line-height: 1.5; margin-bottom: 20px;">In this course, you'll learn how to install Visual Studio Code and its extensions, and then we'll start from scratch with each project. After finishing HTML, we'll move on to CSS and JavaScript. Building in HTML, CSS, or JavaScript is fine, and this guide will explain HTML, CSS, and JavaScript syntax.</p>
<p style="font-size: 1.1rem; line-height: 1.5; margin-bottom: 20px;">Each project in this course is started from scratch and finished without using copied code. Then, we'll go over the code together to ensure that everyone understands. This program's exciting project-based curriculum includes building modern, super cool, and responsive websites!</p>
<p style="font-size: 1.1rem; line-height: 1.5; margin-bottom: 20px;">If you have any questions, please feel free to contact me through my email: codewithsahand@gmail.com </p>
<a href="https://100jsprojects.com" style="background-color: #1a73e8; color: white; font-weight: bold; padding: 10px 20px; border-radius: 5px; text-decoration: none;">Visit my website</a>
</div>
34 changes: 0 additions & 34 deletions projects/Navbar-project/index.html

This file was deleted.

23 changes: 23 additions & 0 deletions projects/age-calculator/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Age Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1>Age Calculator</h1>
<div class="form">
<label for="birthday">Enter you date of birth</label>
<input type="date" id="birthday" name="birthday">
<button id="btn">Calculate Age</button>
<p id="result">Your age is 21 years old</p>
</div>
</div>

<script src="index.js"></script>
</body>
</html>
31 changes: 31 additions & 0 deletions projects/age-calculator/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
const btnEl = document.getElementById("btn");
const birthdayEl = document.getElementById("birthday");
const resultEl = document.getElementById("result");

function calculateAge() {
const birthdayValue = birthdayEl.value;
if (birthdayValue === "") {
alert("Please enter your birthday");
} else {
const age = getAge(birthdayValue);
resultEl.innerText = `Your age is ${age} ${age > 1 ? "years" : "year"} old`;
}
}

function getAge(birthdayValue) {
const currentDate = new Date();
const birthdayDate = new Date(birthdayValue);
let age = currentDate.getFullYear() - birthdayDate.getFullYear();
const month = currentDate.getMonth() - birthdayDate.getMonth();

if (
month < 0 ||
(month === 0 && currentDate.getDate() < birthdayDate.getDate())
) {
age--;
}

return age;
}

btnEl.addEventListener("click", calculateAge);
63 changes: 63 additions & 0 deletions projects/age-calculator/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
body {
margin: 0;
padding: 20px;
font-family: "Montserrat", sans-serif;
background-color: #f7f7f7;
}

.container {
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
padding: 20px;
max-width: 600px;
margin: 0 auto;
border-radius: 5px;
margin-top: 50px;
}

h1 {
font-size: 36px;
text-align: center;
margin-top: 0;
margin-bottom: 20px;
}

.form {
display: flex;
flex-direction: column;
align-items: center;
}

label {
font-weight: bold;
margin-bottom: 10px;
}

input {
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
width: 100%;
max-width: 300px;
}

button {
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
margin-top: 10px;
cursor: pointer;
transition: background-color 0.3s ease;
}

button:hover {
background-color: #0062cc;
}

#result {
margin-top: 20px;
font-size: 24px;
font-weight: bold;
}
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
35 changes: 35 additions & 0 deletions projects/basic-calculator/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="calculator">
<input type="text" id="result" readonly>
<div class="buttons">
<button class="clear">C</button>
<button class="operator">/</button>
<button class="operator">*</button>
<button class="operator">-</button>
<button class="number">7</button>
<button class="number">8</button>
<button class="number">9</button>
<button class="operator">+</button>
<button class="number">4</button>
<button class="number">5</button>
<button class="number">6</button>
<button class="equals">=</button>
<button class="number">1</button>
<button class="number">2</button>
<button class="number">3</button>
<button class="number">0</button>
<button class="decimal">.</button>
</div>
</div>
<script src="index.js"></script>
</body>
</html>
29 changes: 29 additions & 0 deletions projects/basic-calculator/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const buttonsEl = document.querySelectorAll("button");

const inputFieldEl = document.getElementById("result");

for (let i = 0; i < buttonsEl.length; i++) {
buttonsEl[i].addEventListener("click", () => {
const buttonValue = buttonsEl[i].textContent;
if (buttonValue === "C") {
clearResult();
} else if (buttonValue === "=") {
calculateResult();
} else {
appendValue(buttonValue);
}
});
}

function clearResult() {
inputFieldEl.value = "";
}

function calculateResult() {
inputFieldEl.value = eval(inputFieldEl.value);
}

function appendValue(buttonValue) {
inputFieldEl.value += buttonValue;
// inputFieldEl.value = inputFieldEl.value + buttonValue;
}
68 changes: 68 additions & 0 deletions projects/basic-calculator/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
* {
box-sizing: border-box;
margin: 0;
}

.calculator {
background-color: #f2f2f2;
padding: 20px;
max-width: 400px;
margin: 0 auto;
border: solid 1px #ccc;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
border-radius: 5px;
margin-top: 40px;
}

#result{
width: 100%;
padding: 10px;
font-size: 24px;
border: none;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) inset;
border-radius: 5px;
}

.buttons{
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
margin-top: 20px;
}

button{
padding: 10px;
font-size: 24px;
border: none;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;

}

button:hover{
background-color: #ddd;
}

.clear{
background-color: #ff4136;
color: #fff;
}

.number, .decimal{
background-color: #fff;
color: #333;

}

.operator{
background-color: #0074d9;
color: #fff;
}

.equals{
background-color: #01ff70;
grid-row: span 3;
color: #fff;
}
1 change: 1 addition & 0 deletions projects/dad-jokes-generator/index.js
Original file line number Diff line number Diff line change
@@ -33,3 +33,4 @@ async function getJoke() {
}

btnEl.addEventListener("click", getJoke);

20 changes: 20 additions & 0 deletions projects/dice-roll-simulator/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dice Roll Simulator</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Dice Roll Simulator</h1>
<div class="dice" id="dice">&#9860;</div>
<button id="roll-button">Roll Dice</button>
<ul id="roll-history">
<!-- <li>Roll 1: <span>&#9856;</span></li>
<li>Roll 2: <span>&#9860;</span></li> -->
</ul>
<script src="index.js"></script>
</body>
</html>
Loading