Skip to content

Commit dd29830

Browse files
Add files via upload
Add assignment files
1 parent 5cb8573 commit dd29830

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed

.phcode.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

index.html

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>My first website in HTML</title>
6+
<link rel="stylesheet" href="styles.css" />
7+
<script src="script.js"></script>
8+
</head>
9+
<body>
10+
<h1 class="title">Hello World</h1>
11+
<h2>This is Cam trying to learn frontend development.</h2>
12+
<br>
13+
<button onclick="Yaaay()">Click me</button>
14+
<section>
15+
<h1>This is my first website, which I am creating by scratch</h1>
16+
<p>I am currently following a course on FreeCodecamp. I just finished the first section, called HTML
17+
basics.</p>
18+
</section>
19+
<section>
20+
<p>This an image I took from a free stock images website, just to showcase my skills of
21+
how to add an image into my existing HTML code.</p>
22+
<figure>
23+
<img src="https://images.pexels.com/photos/546819/pexels-photo-546819.jpeg" alt="a big image"
24+
width="475" height="400">
25+
<figcaption>This is an image from Pexels</figcaption>
26+
</figure>
27+
</section>
28+
<section>
29+
<h3>This is what an embedded Google Maps looks like.</h3>
30+
<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d10704.698855428405!2d4.272079874418961!3d52.04216582383364!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1snl!2snl!4v1750680104006!5m2!1snl!2snl"
31+
title="Google Maps"
32+
width="500" height="350"
33+
style="border:0;" allowfullscreen="" loading="lazy"
34+
referrerpolicy="no-referrer-when-downgrade">
35+
</iframe>
36+
</section>
37+
<br>
38+
<section>
39+
<h1>How to use Phcode, click on the video below.</h1>
40+
<iframe width="560" height="315"
41+
src="https://www.youtube.com/embed/MgESh4fOQbk?si=bpBF4lkaubGpVslD"
42+
title="YouTube video player" frameborder="0"
43+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
44+
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
45+
46+
</section>
47+
<p>So, I am really surprised of myself. I started learning HTML just a week and a half ago, and I'm already
48+
capable of building a simple one pager.</p>
49+
<h2>I hope you enjoyed looking at my website. Don't worry, I'll get better in the future if I keep practicing.</h2>
50+
<br>
51+
<footer>
52+
<p>Connect with me on <a href="https://www.linkedin.com/in/cameliaena/" target="_blank">
53+
LinkedIn
54+
</a>
55+
</p>
56+
</footer>
57+
58+
59+
</body>
60+
61+
</html>

script.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
let numButtonClicks = 0;
2+
function buttonClicked() {
3+
numButtonClicks = numButtonClicks + 1;
4+
document.getElementById("mainDiv").textContent =
5+
"Button Clicked times: " + numButtonClicks;
6+
7+
// First pop-up
8+
alert("You clicked the button! Total clicks: " + numButtonClicks);
9+
10+
// Second pop-up
11+
alert("Congratulations, you made it!");
12+
}
13+

styles.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.title {
2+
color: rgb(50, 0, 255);
3+
}
4+
body {
5+
background-color: rgba(34, 183, 196, 0.29);
6+
}

0 commit comments

Comments
 (0)