-
Notifications
You must be signed in to change notification settings - Fork 0
/
work.html
127 lines (113 loc) · 5.65 KB
/
work.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-control" content="public">
<title>Julia Robinek | Work</title>
<link rel="icon" type="image/svg+xml" href="Logos/Circle-small.svg">
<link rel="preload" href="menustyles.css" as="style" onload="this.rel='stylesheet'">
<link rel="preload" href="workstyles.css" as="style" onload="this.rel='stylesheet'">
</head>
<body>
<!-- Black run-up "page"-->
<div>
<div id="run-up">
<a href="index.html" class="home-icon-run-up">Julia Robinek</a>
<div class="home-icon-sign-run-up"> <img src="Logos/RJlogo-small-white.svg"></img> </div>
</div>
</div>
<!-- Header Section Start NEED TO COPY TO EVERY PAGE DUE TO SLOW SERVER-->
<header>
<div class="header-content">
<div class="home-box">
<a href="index.html" class="home-icon">Julia Robinek</a>
<div class="home-icon-sign"> <img src="Logos/RJlogo-small-white.svg" loading="lazy"></img> </div>
</div>
<div class="menu-icon" id="menu-icon">
☰ <!-- Hamburger icon -->
</div>
<ul class="menu" id="menu">
<li><a href="index.html">Home</a></li>
<li><a href="work.html" class="activem">Work</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
</header>
<!-- Header Section End -->
<!-- Hero Section -->
<h1>work</h1>
<div class="gallery"> <!--Start of grid gallery-->
<a class="lightbox" href="work2023.html">
<img src="WebImages/57-2023.jpg" alt="Julia Robinek painting titled The voice in the head" title="Julia Robinek painting titled The voice in the head">
<h3>Paintings 2023-NOW</h3>
</a>
<a class="lightbox" href="work2020-2022.html">
<img src="WebImages/13-2020.jpg" alt="Julia Robinek painting titled The surface is the great divider " title="Julia Robinek painting titled The surface is the great divider ">
<h3>Paintings 2020-2022</h3>
</a>
<a class="lightbox" href="work2015-2019.html"> <!--executes the container with id "dog1" when clicked on this anchor-->
<img src="WebImages/23-2018.jpg" alt="Julia Robinek painting titled Two projections" title="Julia Robinek painting titled Two projections">
<h3>Paintings 2015-2019</h3>
</a>
</div> <!--End of grid gallery-->
<!-- Footer Section Start NEED TO COPY TO EVERY PAGE -->
<footer>
<div class="footer-content">
<div class="footer-left">
<p>Copyright © Julia Robinek 2015 - <span id="year"></span></p>
<div class="small">
<a href="privacy.html">Privacy Policy</a>
<p>Run by GitHub</p>
</div>
</div>
<div class="footer-right">
<a href="https://www.instagram.com/juliarobinek" target="_blank">
<img src="Logos/logoInstaGraySmall-toUse.svg" loading="lazy" alt="Instagram Icon" class="social-icon">
</a>
</div>
</div>
<!-- Get the current year and insert it into the span with id="year" -->
<script defer>
document.getElementById('year').textContent = new Date().getFullYear();
</script>
</footer>
<!-- Footer Section End -->
<script>
// Add the run-up "page" before the index page comes up
document.addEventListener("DOMContentLoaded", function() {
setTimeout(function() {
const runUpDiv = document.getElementById("run-up");
runUpDiv.style.transition = "opacity 0.3s";
runUpDiv.style.opacity = 0.4;
// When the opacity transition ends, hide the element completely
runUpDiv.addEventListener("transitionend", function() {
runUpDiv.style.display = "none";
}, { once: true }); // { once: true } ensures this runs only once
}, 800);
});
// Add the menu on top of every page of the website
document.addEventListener("DOMContentLoaded", function() {
fetch('menu.html') // Load the menu.html file
.then(response => response.text()) // Convert to text
.then(data => {
document.getElementById('wholehead').innerHTML = data; // Insert the menu HTML into the page
})
.catch(error => console.error('Error loading menu:', error));
});
// JavaScript to toggle the responsive menu and header background
document.getElementById("menu-icon").addEventListener("click", function() {
var menu = document.getElementById("menu");
var header = document.querySelector("header");
if (menu.classList.contains("show")) {
menu.classList.remove("show");
header.classList.remove("header-active"); // Remove half-transparent gray
} else {
menu.classList.add("show");
header.classList.add("header-active"); // Add half-transparent gray
}
});
</script>
</body>
</html>