-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
242 lines (227 loc) · 11.5 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
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
<link rel="stylesheet" href="{{ get_url(path="style.css", trailing_slash=false) | safe }}">
{% if config.generate_feed %}
<link rel="alternate" type="application/atom+xml" title="RSS"
href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
{% endif %}
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎨</text></svg>">
{% if page.title %}
<meta property="og:title" content="{{ page.title }}" />
{% else %}
<meta property="og:title" content="{{ config.title }}" />
{% endif %}
<meta property="og:type" content="website" />
{% if page.permalink %}
<meta property="og:url" content="{{ page.permalink | safe }}" />
{% else %}
<meta property="og:url" content="{{ config.base_url | safe }}" />
{% endif %}
{% if page.extra.summary %}
<meta property="og:description" content="{{ page.extra.summary }}" />
{% else %}
<meta property="og:description" content="{{ config.description }}" />
{% endif %}
{% if page.extra.image %}
{% if page.extra.image is starting_with("http") %}
<meta property="og:image" content="{{ page.extra.image | safe }}" />
{% else %}
<meta property="og:image" content="{{ get_url(path=page.extra.image) }}" />
{% endif %}
{% else %}
<meta property="og:image" content="{{ get_url(path='cover_girl.png') }}" />
{% endif %}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:100,200,300,400,500,600,700">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
</head>
<body>
<div class="container">
<header>
<ul>
<li><img class="top-flower" src="https://user-images.githubusercontent.com/52693877/242770800-ea0f280d-6ab4-4df9-8599-2aa1a540a4ae.png" alt="flower"></li>
<li><a href="/#project">Project</a></li>
<li><a href="/playground">Playground</a></li>
<li><a href="/">About Me</a></li>
<li><a href="https://github.com/gezellii/design/files/11685610/Resume.-.Lily.pdf">Resume</a></li>
</ul>
</header>
<main>
{% block content %}
<div class="cover">
<img src="cover_girl.png" id="coverImageDefault" alt="girl with plane in her hand">
<img src="cover_girl_plane_released.png" id="coverImageActive" alt="girl with plane released" style="display: none;">
</div>
<div class="greet">Hi there!</div>
<div class="introduction">
<p>
This is Lily, a product designer with engineering background, currently based in Singapore.
</p>
<p>
During the past 8 years, I've been immersed in e-commerce environment, working under the Designer title, but as a mixed role of researcher, designer and product manager.
</p>
<p>
I try my best to deliver smooth user experience to users across the world (Mainland China - Russia - Europe - Middle East - South East Asia).
</p>
<p>
When I'm not working, I help with some open source projects on <a target="_blank" href="https://github.com/lilylee1874">GitHub</a>.
</p>
</div>
<div class="title">My Journey</div>
<div class="journey">
<div class="work">
<div class="year">2015</div>
<div class="company" id="company-jd"><a target="_blank" href="https://global.jd.com/">JD</a></div>
<div class="location">
<p>Mainland China</p>
<p>RU, ES, UK</p>
</div>
</div>
<div class="line"></div>
<div class="work">
<div class="year">2018</div>
<div class="company" id="company-jollychic"><a target="_blank" href="http://www.jollychic.com/">JollyChic</a></div>
<div class="location">
<p>Middle East</p>
<p> </p>
</div>
</div>
<div class="line"></div>
<div class="work">
<div class="year">2019</div>
<div class="company" id="company-shopee"><a target="_blank" href="https://shopee.sg/">Shopee</a></div>
<div class="location">
<p>South East Asia</p>
<p>Brazil</p>
</div>
</div>
</div>
<div class="left-draw">
<img src="https://user-images.githubusercontent.com/52693877/242770786-f737e329-9467-43dd-82da-cc238865faa9.png" alt="left draw">
</div>
<div class="title">My Principles</div>
<div class="principle">
<p>
For me, design is about problem solving, saving cost and helping people. And everything we can imagine is possible when we have clearly defined goals, strong design, strategy and assemble a talented team.
</p>
<div class="item">
<li>
<object data="account.svg" type="image/svg+xml"></object>
People are the biggest value
</li>
<li>
<object data="chat.svg" type="image/svg+xml"></object>
Good communication leads to success
</li>
<li>
<object data="refresh.svg" type="image/svg+xml"></object>
Flexibility makes good cooperation
</li>
<li>
<object data="star.svg" type="image/svg+xml"></object>
Do our best, then trade off
</li>
</div>
</div>
<div class="title" id="project">My Projects</div>
<div class="right-draw">
<img src="https://user-images.githubusercontent.com/52693877/242770807-8672e33d-3343-4437-a456-b9cd197ccf0c.png" alt="right draw">
</div>
<section>
{% set section = get_section(path="work/_index.md") %}
{% for page in section.pages %}
<a href="{{ page.permalink | safe }}">
<article>
<div class="post-img">
<img src="{{ page.extra.image }}" alt="" loading="lazy">
</div>
<div class="post">
<div class="post-title">
{{ page.title }}
</div>
<div class="post-label">
{% for label in page.extra.labels %}
<span class="label label-{{ label | slugify }}">{{ label }}</span>
{% endfor %}
</div>
<div class="post-desp">
{{ page.extra.summary | markdown | safe }}
</div>
</div>
</article>
</a>
{% endfor %}
</section>
<svg id="track" xmlns="http://www.w3.org/2000/svg" width="1460" height="1708" viewbox="0 0 1460 1708" fill="none">
<path id="curve"
d="M1061.5 179C919.5 69.4998 395.536 -86.0222 105 69.4998C-64.9999 160.5 -6.50002 483.65 172.5 600C271.72 664.493 500.5 743.5 1048 743.5C1172.42 743.5 1246.5 737.667 1326.5 743.5C1443.5 752.031 1525.5 1088.5 1372 1137C714.198 1344.84 860 1658 526 1658C233.737 1658 152.833 1682.33 103 1704"
stroke="#ED5500" stroke-width="7" />
</svg>
<img id="plane" src="https://user-images.githubusercontent.com/52693877/244940796-84336030-0fd2-4583-afef-b74598e7aef6.png" alt="plane">
{% endblock content %}
</main>
</div>
<script>
const plane = document.getElementById("plane");
const path = document.getElementById("curve");
const coverImageDefault = document.getElementById("coverImageDefault");
const coverImageActive = document.getElementById("coverImageActive");
const pathLength = path.getTotalLength();
const START_THRESHOLD = 0.02; // do not display the flying plane until it starts scrolling
let lastScrollPos = 0;
const handleScroll = function () {
const boundingRect = path.getBoundingClientRect();
const scrollPercent =
(window.pageYOffset || document.documentElement.scrollTop) /
(path.getBoundingClientRect().height);
const point = path.getPointAtLength(scrollPercent * pathLength);
const tangent = path.getPointAtLength((scrollPercent + 0.01) * pathLength);
const angle = Math.atan2(tangent.y - point.y, tangent.x - point.x) * 180 / Math.PI;
const direction = (window.pageYOffset > lastScrollPos) ? '' : 'rotateY(180deg)';
lastScrollPos = window.pageYOffset;
coverImageDefault.style.display = scrollPercent > START_THRESHOLD ? 'none' : 'block';
coverImageActive.style.display = scrollPercent > START_THRESHOLD ? 'block' : 'none';
plane.style.opacity = scrollPercent < START_THRESHOLD ? 0 : 1;
plane.style.left = `calc(${point.x}px + 50% - 810px)`;
plane.style.top = (point.y + 350) + "px";
plane.style.transform = `rotate(${angle}deg) ${direction}`;
};
const throttle = (func, limit) => {
let inThrottle;
return function() {
const args = arguments;
const context = this;
if (!inThrottle) {
func.apply(context, args);
inThrottle = true;
setTimeout(() => inThrottle = false, limit);
}
}
}
let planeActivated = false;
const throttledHandleScroll = throttle(handleScroll, 50);
const attachPlaneEvent = () => {
window.addEventListener('scroll', throttledHandleScroll)
planeActivated = true;
}
const detachPlaneEvent = () => {
window.removeEventListener('scroll', throttledHandleScroll)
planeActivated = false;
}
if (document.documentElement.clientWidth >= 1366) {
attachPlaneEvent();
}
window.onresize = (newSize) => {
if (document.documentElement.clientWidth >= 1366) {
!planeActivated && attachPlaneEvent();
} else {
planeActivated && detachPlaneEvent();
}
}
</script>
</body>
</html>