-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
206 lines (173 loc) · 5.65 KB
/
blog.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SYW2WSQ0HY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SYW2WSQ0HY');
</script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>GALLERY | WW Portfolio</title>
<link rel="icon" type="image/png" href='https://img.icons8.com/external-others-inmotus-design/67/external-W-kid-alphabet-others-inmotus-design-2.png'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Wenge Wang">
<link rel="stylesheet" href="css\css.css">
<!--font-->
<link href="https://fonts.googleapis.com/css2?family=Kanit:wght@100;200;400;600&display=swap" rel="stylesheet">
<!--social media link-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" >
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.min.js"></script>
</head>
<style>
#announcement-bar {
background-color: #333;
color: #fff;
padding: 10px 0;
text-align: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
transition: top 0.3s ease-in-out;
}
#content {
padding-top: 40px;
}
h2 {
font-weight: 300;
text-transform: none;
font-size: 18px;
padding: 0;
margin: 0
}
body {
margin: 0;
padding: 0;
background: #f0f0f0;
overflow-y:scroll
}
.footer{
color:black; padding-top: 14vh;
}
.footer-icon a{
color:black
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap: 16px;
padding-left:3vw;
padding-right:3vw;
}
.gallery-item {
margin-top:10vh;
overflow: hidden;
border-radius: 10px;
}
.gallery-item img {
width: 100%;
height: auto;
display: block;
}
.first-row{
margin-top:18vh
}
@media (max-width: 1020px) { .gallery {
gap: 0;
padding:0;
}
}
</style>
</head>
<body>
<div id="announcement-bar">👋 For optimal viewing, a laptop is recommended!</div>
<div id="content">
<div class="navbar-mobile ">
<input type="checkbox" id="overlay-input" />
<label for="overlay-input" id="overlay-button"><span></span></label>
<div id="overlay">
<ul>
<li><a href="index.html" class="inactive">DATA</a></li>
<li><a href="uxproject.html" class="inactive">UI/UX</a></li>
<li><strong><a href="blog.html" class="active">OTHER</a></strong></li>
<li><a href="contact.html" class="menu-button">CONTACT</a></li>
</ul>
<div class="overlay-footer row">
<p>2023 © by Wenge Wang</p>
<a href="mailto:wwang24@outlook.com"><i class="fa fa-envelope-square" aria-hidden="true"></i></a>
</div>
<div class="overlay-logo">WENGE<br>WANG</div>
</div>
</div>
<nav>
<div class="navbar">
<div class="left-menu gray">
<a href="index.html">WENGE WANG</a>
<h2 style="padding-left:4px;">Data Visualization & UX Designer, available for hire</h2>
</div>
<ul class="right-menu">
<li><a href="index.html" class="inactive">DATA</a></li>
<li><a href="uxproject.html" class="inactive">UI/UX</a></li>
<li><strong><a href="blog.html" class="active">OTHER</a></strong></li>
<li><a href="contact.html" class="menu-button">CONTACT</a></li>
</ul>
</div>
</nav>
<div>
<div class="gallery">
<div class="gallery-item first-row" >
<img src="image\graphic-spectracell.jpg" alt="Triplefold brochure design">
</div>
<div class="gallery-item first-row" >
<img src="image\graphic-spectracell2.jpg" alt="box design">
</div>
<div class="gallery-item first-row" >
<img src="image\cover2.jpg" alt="Cover2">
</div>
<!-- <div class="gallery-item">
<img src="image\cover1.jpg" alt="Cover1">
</div>
<div class="gallery-item">
<img src="image\cover3.jpg" alt="Cover3">
</div>-->
</div>
</div>
<footer>
<div class="footer">
<div class="laptop-show-only">
<p>2023 © Designed & Programmed by Wenge Wang</p>
</div>
<div class="footer-icon">
<a href="mailto:wwang24@outlook.com"><i class="fa fa-envelope-square"
aria-hidden="true">wwang24@outlook.com</i></a>
<a href="index.html"><i class="fas fa-arrow-up"></i></a>
</div>
</div>
</footer>
</div>
<script>
var announcementBar = document.getElementById('announcement-bar');
// Track the last scroll position
var lastScrollPosition = window.pageYOffset;
// Function to handle scroll events
function handleScroll() {
var currentScrollPosition = window.pageYOffset;
// Check if scrolling down
if (currentScrollPosition > lastScrollPosition) {
announcementBar.style.top = '-50px'; // Hide the announcement bar when scrolling down
} else {
announcementBar.style.top = '0'; // Show the announcement bar when scrolling up
}
lastScrollPosition = currentScrollPosition; // Update last scroll position
}
// Add scroll event listener
window.addEventListener('scroll', handleScroll);
</script>
</body>
</html>