-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprofile.html
116 lines (107 loc) · 2.99 KB
/
profile.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
<!-- jquery -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<!-- twitter bootstrap -->
<link href="./static/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<script src="./static/bootstrap/js/bootstrap.min.js"></script>
<!-- custom -->
<link href="./static/css/profile.css" rel="stylesheet" media="screen">
<script>
function profile_parallax_scroll(cover_bg) {
$(window).scroll(function() {
var yPos = ($(window).scrollTop() / cover_bg.data('speed')) - 40;
// Put together our final background position
var coords = '50% '+ yPos + 'px';
// Move the background
cover_bg.css({ backgroundPosition: coords });
});
}
$(document).ready(function(){
profile_parallax_scroll( $('.cover') );
});
</script>
<div class="navbar navbar-static-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">Site Name</a>
<ul class="nav">
<li><a href="#">Profile</a></li>
</ul>
<div class="pull-right">
<ul class="nav">
<li><a href="/logout">Log Out</a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="macro_data" data-userId="{{ user_id }}"></div>
<div class="profile">
<div class="cover" data-type="background" data-speed="2" style="background-image: url(./static/images/cover.jpg);">
<div class="user-stats-wrapper">
<div class="user-stats">
<div class="user-stats-number">10</div>
Follower
</div>
<div class="user-stats">
<div class="user-stats-number">14</div>
Following
</div>
<div class="user-stats">
<div class="user-stats-number">7</div>
Post
</div>
</div>
<div class="profile-pic">
<img src="https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn1/c42.184.527.527/s160x160/644205_10151344237867608_1574858343_n.jpg">
</div>
</div>
<div class="user-info">
<div class="btn btn-primary follow-button">Follow</div>
<h4>Keven Wang</h4><p class="muted">sky-walker</p>
</div>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
<p>placeholder</p>
</div>