-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (89 loc) · 3.74 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!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>I'm a Photographer</title>
<!-- font awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta2/css/all.min.css" integrity="sha512-YWzhKL2whUzgiheMoBFwW8CKV4qpHQAEuvilg9FAn5VJUDwKZZxkJNuGM4XkWuk94WCrrwslk8yWNGmY1EduTA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel = "stylesheet" href = "css/style.css">
</head>
<body>
<!-- main content -->
<main>
<!-- portfolio section -->
<section id = "portfolio" class = "vh-100 py-7">
<div class = "container">
<div class = "portfolio-content">
<div class = "title">
<h2>Ayomide Enoch Ojo</h2>
</div>
<div class = "portfolio-grid grid">
<div><img src = "images/bbball.png"></div>
<div><img src = "images/IMG_9753.jpg"></div>
<div><img src = "images/016100380001.jpg"></div>
<div><img src = "images/IMG_0796-01.jpeg"></div>
<div><img src = "images/IMG_0284-01.jpeg"></div>
<div><img src = "images/IMG_0760-01.jpeg"></div>
<div><img src = "images/_MG_2779.jpg"></div>
<div><img src = "images/016100380019.jpg"></div>
</div>
</div>
</div>
</section>
<!-- end of portfolio section -->
<!-- end of instagram section -->
<!-- Modal for Enlarged Image -->
<div id="imageModal" class="modal">
<span class="close">×</span>
<img class="modal-content" id="modalImage">
</div>
</main>
<!-- end of main content -->
<!-- footer -->
<footer id = "footer" class = "py-7">
<div class = "container">
<div class = "footer-content">
<div>
<div><img src = "images/sacboy.jpg"></div>
</div>
<div>
<h3>Links</h3>
<ul class = "flex">
<li><a href = "mailto:Ayomideojo2001@gmail.com">Contact Me</a></li>
<li><a href = "https://www.instagram.com/ayomideenochojo" target="_blank">Instagram</a></li>
</ul>
</div>
</div>
</div>
</footer>
<!-- end of footer -->
<!-- typewriting js -->
<script src = "typewriting-master/typewriting.js"></script>
<!-- JavaScript for Enlarging Image -->
<script>
// Get the modal elements
const modal = document.getElementById("imageModal");
const modalImg = document.getElementById("modalImage");
const closeBtn = document.getElementsByClassName("close")[0];
// When an image is clicked, open the modal
document.querySelectorAll(".portfolio-grid img").forEach(img => {
img.addEventListener("click", () => {
modal.style.display = "flex";
modalImg.src = img.src;
});
});
// Close the modal when the close button is clicked
closeBtn.onclick = () => {
modal.style.display = "none";
};
// Close the modal when clicking outside the image
window.onclick = (event) => {
if (event.target == modal) {
modal.style.display = "none";
}
};
</script>
</body>
</html>