-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
316 lines (277 loc) · 11.6 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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<title>mrdream的简历</title>
<meta name="viewport" content="width=device-width">
<link href="./css/font/SourceSansPro.css" rel="stylesheet" type="text/css">
<link href="./css/cv.css" rel="stylesheet">
<link href="./css/font/style.css" rel="stylesheet">
<style type="text/css" media="print">
* {margin:0;padding:0;}
body {background: none; margin: 0;}
.main {padding: 0;}
.wrap {
background: #fff;
box-shadow: none;
padding: 0in;
}
.experience .icon,
.other-items .icon,
.main-items .icon {
background: #fff;
}
header {
padding-left: 30px;
}
.icon-profile {
display: none;
}
.vcard {
margin-left: 0;
}
.vcard,
.vcard a {
color: #888;
}
.vcard .tel,
.vcard .emailh {
margin: 0 30px;
}
.experience, .education, .skills, .interest {
xborder-color: #B4D9E7;
}
#blur_1 {display: none;}
</style>
<!--[if lt IE 9]>
<script src="/a/js/lib/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="main">
<div class="wrap">
<div class="main-site">
<a>mrdream</a>
</div>
<header>
<h1 class="name">孟祥辉</h1>
<span class="tagline">Web / Mobile Front-end Engineer</span>
<span class="icon icon-profile"></span>
<address class="vcard">
<a class="url fn hidden">MrDream 孟祥辉</a>
<span class="icon icon-location"></span><span class="text">
<span class="locality">上海</span>
</span>
</span>
<span class="country-name hidden">China</span>
</span>
<span class="tel" id="tel"><span class="icon icon-phone"></span> <span class="text">+18630341863</span></span>
<span class="emailh"><a class="email" href="#mail"><span class="icon icon-envelope"></span><span class="text" id="email">[email protected]</span></a></span>
<a class="url" href="https://juejin.im/user/56a319852e958a0059576864"><span class="icon icon-earth"></span><span class="text">我的掘金</span></a>
</address>
<ul class="social">
<li><a href="http://weibo.com/117879051"><span class="icon icon-sina-weibo"></span><span class="text">@mrdream24</span></a></li>
<li><a href="https://www.instagram.com/mrdream24/"><span class="icon icon-instagram"></span><span class="text">@mrdream24</span></a></li>
<li><a href="https://github.com/mrdream24"><span class="icon icon-github"></span><span class="text">/mrdream24</span></a></li>
</ul>
</header>
<div class="clearfix">
<div class="clearfix other-items">
<!-- <section class="personal-projects skills">
<h2>
<span class="icon icon-atom"></span><span class="text">个人项目 <small></small></span>
</h2>
<ul>
<li>
<a href="http://mrdream.xyz">mrdream.xyz <br> <div style="padding-left: 25px;background: url(/hn/a/icon/icon-64.png) no-repeat;background-size: 20px 20px;"></div></a>
</li>
<li>
<a href="https://github.com/mrdream24/react-babel-gulp-boilerplate">react-babel-gulp-boilerplate <br> <div style="padding-left: 25px;background: url(/hn/a/icon/icon-64.png) no-repeat;background-size: 20px 20px;"></div></a>
</li>
<li>
<a href="http://mrdream.xyz/buwang">网络书签 <br> <div style="padding-left: 25px;background: url(/hn/a/icon/icon-64.png) no-repeat;background-size: 20px 20px;"></div></a>
</li>
<li>
<a href="http://mrdream.xyz/blog/">我的博客 <br> <div style="padding-left: 25px;background: url(/hn/a/icon/icon-64.png) no-repeat;background-size: 20px 20px;"></div></a>
</li>
</ul>
</section> -->
<section class="skills">
<h2>
<span class="icon icon-tools"></span><span class="text">Skills</span>
</h2>
<ul>
<li>
React
</li>
<li>
Vue.js
</li>
<li>
HTML5
</li>
<li>
CSS3
</li>
<li>
Javascript
</li>
<li>
Photoshop
</li>
<li>
Webpack
</li>
</ul>
</section>
<section class="education">
<h2>
<span class="icon icon-graduate"></span><span class="text">学历</span>
</h2>
<ul>
<li>
<div>大学本科</div>
<time>2010 ~ 2014</time>
<span class="school">燕山大学</span>
</li>
</ul>
</section>
</div>
<div class="main-content">
<section class="interest">
<h2>
<span class="icon icon-book"></span><span class="text">文章</span>
</h2>
<ul>
<li>
<a href="https://juejin.im/post/58dba0b3a22b9d00647db6c3" target="_blank">改造你的网站,变身 PWA</a>
</li>
<li>
<a href="https://segmentfault.com/a/1190000004419412" target="_blank">[译] 用 ES6 构建新一代可复用 JS 模块</a>
</li>
<li>
<a href="https://segmentfault.com/a/1190000004411869" target="_blank">(译)响应式图片— srcset 和 sizes 属性</a>
</li>
<li>
<a href="https://segmentfault.com/a/1190000004422797" target="_blank">马上开始写 react & ES6 --- 基于gulp 和 Babel 的脚手架</a>
</li>
<br/>
<li>
更多请看我的<a href="https://segmentfault.com/u/mrdream">专栏</a>或者我的<a href="http://mrdream.xyz/blog">博客</a>
</li>
</ul>
</section>
<section class="experience">
<h2>
<span class="icon icon-lab"></span><span class="text">经历</span>
</h2>
<h3>
资深前端工程师
</h3>
<p>
<a href="https://www.helloglobal.com/">哈啰出行</a>
<span class="location">(上海)</span>
<time>2019.11 ~ 至今</time>
</p>
<h3>
高级前端工程师
</h3>
<p>
<a href="https://www.ele.me/">饿了么</a>
<span class="location">(上海)</span>
<time>2017.5 ~ 2019.10</time>
</p>
<h3>
前端工程师
</h3>
<p>
<a href="http://gold.xitu.io/">稀土掘金</a>
<span class="location">(北京)</span>
<time>2016.4 ~ 2017.3</time>
</p>
<h3>
前端工程师
</h3>
<p>
<a href="http://bong.cn/">攻壳科技</a>
<span class="location">(杭州)</span>
<time>2014.7 ~ 2016.4</time>
</p>
<ul>
<li>
</li>
</ul>
</section>
</div>
</div>
</div>
</div>
<canvas id="blur_1" width="680" height="348"></canvas>
<script type="text/javascript">
/**
* Light layer on top of a canvas element to represent an image displayed
* within. Pass in a canvas element and an Image object and you'll see the
* image within the canvas element. Use the provided methods (e.g. blur) to
* manipulate it.
*
* @constructor
* @param {HTMLElement} element HTML canvas element.
* @param {Image} image Image object.
*/
var CanvasImage = function(element, image) {
this.image = image;
this.element = element;
this.element.width = this.image.width;
this.element.height = this.image.height;
this.context = this.element.getContext("2d");
this.context.drawImage(this.image, 0, 0);
};
CanvasImage.prototype = {
/**
* Runs a blur filter over the image.
*
* @param {int} strength Strength of the blur.
*/
blur: function (strength) {
this.context.globalAlpha = 0.5; // Higher alpha made it more smooth
// Add blur layers by strength to x and y
// 2 made it a bit faster without noticeable quality loss
for (var y = -strength; y <= strength; y += 2) {
for (var x = -strength; x <= strength; x += 2) {
// Apply layers
this.context.drawImage(this.element, x, y);
// Add an extra layer, prevents it from rendering lines
// on top of the images (does makes it slower though)
if (x>=0 && y>=0) {
this.context.drawImage(this.element, -(x-1), -(y-1));
}
}
}
this.context.globalAlpha = 1.0;
}
};
/**
* Initialise an image on the page and blur it.
*/
window.onload = function() {
var url = './img/cv/bg{number}.jpg?2'.replace('{number}', parseInt(Math.random() * 6, 10)),
image,
canvasImage;
image = new Image();
image.onload = function () {
canvasImage = new CanvasImage(document.getElementById('blur_1'), this);
// try{console.time('blur_1');}catch(err){}
canvasImage.blur(3);
// try{console.timeEnd('blur_1');}catch(err){}
canvasImage.element.setAttribute('data-image', url);
};
image.src = url;
};
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-75336684-1', 'auto');
ga('send', 'pageview');
</script>
</body></html>