-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser_profile.html
More file actions
181 lines (167 loc) · 7.05 KB
/
user_profile.html
File metadata and controls
181 lines (167 loc) · 7.05 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Foris|User</title>
<!-- <link rel="stylesheet" href="../css/materialize-src/sass/materialize.css">
<link rel="stylesheet" href="../css/override.css"> -->
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css">
<link rel="stylesheet" href="../css/styles.css">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body class="user-profile-body">
<header>
<ul id="dropdown1" class="dropdown-content">
<li><a class="directToUserProfile" href="#">Profile</a></li>
<li><a href="#!" onclick="localStorage.clear(); location.reload()">Log Out</a></li>
</ul>
<nav>
<div class="nav-wrapper col s12 main-nav">
<!-- <img src="foris-images/foris-logo.svg" class="brand-logo logo-image"/> -->
<a href="#" data-activates="slide-out" class="button-collapse show-on-med-and-down"><i class="material-icons">menu</i></a>
<!-- <a href="#!" class="brand-logo">Foris<span class="hide-on-med-and-down"></span></a> -->
<!-- <a href="#!" class="brand-logo"><span class="show-on-med-and-down"></span>Foris</a> -->
<!-- <a href="index.html"><img src="foris-images/foris-logo-text.svg" class="brand-logo logo-image-text"/></a> -->
<ul id="nav-mobile" class="nav-buttons center hide-on-med-and-down">
<li class="sport-button"><a href="index.html">Home</a></li>
<li class="sport-button"><a href="about.html">About</a></li>
<!-- <li class="sport-button"><a href="event_profile.html">Events</a></li> -->
<li class="sport-button"><a href="event_creation.html">Create Event!</a></li>
<li><a class="loggedin namelogged dropdown-button" href="#!" data-activates="dropdown1">Welcome, <i class="material-icons right">arrow_drop_down</i></a></li>
<li class="notloggedin login-button"><a href="login.html">Login/Signup</a></li>
<!-- <li class="loggedin login-button"><a href="login.html">{{id}}</a></li> -->
<!--
<ul id="dropdown1" class="dropdown-content login-button">
<li><a href="#!">Profile</a></li>
<li><a href="#!">Log Out</a></li>
</ul> -->
<!-- <button data-target="modal1" class="login-button btn" href="#modal1">Login/Singup</button> -->
</ul>
<ul id="slide-out" class="side-nav">
<li><a href="about.html">About</a></li>
<li><a href="#">Search Trips</a></li>
<button data-target="modal1" class="login-button btn" href="#modal1">Login/Singup</button>
</ul>
</div>
</nav>
</header>
<main>
<div class="row">
<div class="col s12 m8 offset-m2">
<div id="profile-page-header" class="card">
<div class="card-image waves-effect waves-block waves-light cover-photo-container">
<!-- Cover photo dynamically added here-->
</div>
<figure class="card-profile-image profile-picture-container"></figure>
<!-- Profile picture dynamically added here-->
<div class="card-content">
<div class="row">
<h5>Name: </h5><p id="full-name"></p>
<br/>
<h5>Birthday: </h5><p id = "birth-year"></p>
<br/>
<h5>Favorite Sport: </h5><p id="fav-sport"></p>
</div>
</div>
</div>
</div>
</div>
<!-- <div class = "container">
<div class="row" id="event_cards_container"></div>
</div> -->
<div class="row">
<div class="col s6">
<section class="upcoming-trips trip-container">
<h4 class="user-trips">Upcoming Trips: </h4>
</section>
</div>
<div class="col s6">
<section class="past-trips trip-container">
<h4 class="user-trips">Past Trips: </h4>
</section>
</div>
</div>
</main>
<footer class="main-footer">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Team Mega-Foris Thanks You!</h5>
<p class="grey-text text-lighten-4">We hope your adventures are full of fun and memories!</p>
</div>
<div class="col l4 offset-l2 s12">
<!-- <h5 class="white-text">Dont look here... </h5> -->
</div>
</div>
<p class= "copyright-text">© 2017 Copyright Mega Foris</p>
</div>
</footer>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.10/handlebars.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/js/materialize.min.js"></script>
<script type="text/javascript" src="./javascript/shared.js" charset="utf-8"></script>
<script type="text/javascript" src="./javascript/user_profile.js" charset="utf-8"></script>
<script type="text/javascript" src="./javascript/guest_redirect.js"></script>
<!-- <script id="user-profile-template" type="text/x-handlebars-template">
{{#each person}}
<p>
{{first_name}}
</p>
{{#each attributes}} {{#if @first}}
<p>
{{name}}{{value}}
</p>
{{/if}}
{{/each}}
{{/each}}
</script> -->
<script id="upcoming-event-user-profile-template" type="text/x-handlebars-template">
{{#each person}}
{{#each futureevents}}
{{#each event_info}}
<div class="col s12 m8 offset-m2 l6 offset-l3">
<div class="card-panel grey lighten-5 z-depth-1" id="event_profile_card"data-id={{this.id}}>
<div class="row valign-wrapper">
<div class="col s4">
<img src={{this.image_url}} alt="" class="square responsive-img"> <!-- notice the "circle" class -->
</div>
<div class="col s10">
<span class="black-text">
{{this.description}}
</span>
</div>
</div>
</div>
</div>
{{/each}}
{{/each}}
{{/each}}
</script>
<script id="past-event-user-profile-template" type="text/x-handlebars-template">
{{#each person}}
{{#each pastevents}}
{{#each event_info}}
<div class="col s12 m8 offset-m2 l6 offset-l3">
<div class="card-panel grey lighten-5 z-depth-1" id="event_profile_card"data-id={{this.id}}>
<div class="row valign-wrapper">
<div class="col s6">
<img src={{this.image_url}} alt="" class="square responsive-img"> <!-- notice the "circle" class -->
</div>
<div class="col s10">
<span class="black-text">
{{this.description}}
</span>
</div>
</div>
</div>
</div>
{{/each}}
{{/each}}
{{/each}}
</script>
</body>
</html>