-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.html
72 lines (65 loc) · 2.6 KB
/
main.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
<!-- Banner stuff: should be the same for each page. -->
<html>
<head>
<link rel="stylesheet" type="text/css" href="static/main.css" >
<link href='http://fonts.googleapis.com/css?family=Josefin+Sans' rel='stylesheet' type='text/css'>
</head>
<body>
<div id = "wrapper">
<div id = "top">
<div id = "title">
USELLIT
</div>
<div id = "slogan">
Don't want it? Sell it!
</div>
<div id = "list">
<ul>
<li class = "left"><a class="nav" href = "/">home</a></li>
<li class = "left"><a class="nav" "items" href = "/seller_profile">my stuff</a></li>
<li class = "left"><a class="nav" href = "/post">post</a></li>
<form class = "right" action="" method="post">
<input type="submit" value = "" id = "button"></input>
<select class = "right" id = "category" name = "category">
<option value="Books">Books</option>
<option value="Furniture">Furniture</option>
<option value="Other">Other</option>
</select>
<input type="text" id = "search" name = "query"></input>
</form>
</ul>
</div>
</div>
<!-- This will vary from page to page (maybe) -->
<div id = "itemList">
{% for item in items %}
<fieldset name = "Recently posted items">
<div class = "item">
<div class="left_result">
<img src = "/view_photo/{{ item.blobKey }}" class = "itemPhoto"/>
</div>
<div class="middle_result">
<b class="bigText">{{item.itemName}}</b>
<br>
<i> {{item.category}}</i>
<br>
{{item.description}}
</div>
<div class="right_result">
<div class="bigText">Price: ${{item.price}}</div>
<span style = "background:white" class = "seller">
Seller: <br>
<a style="background:white" href = {{item.sellerURL}} target="_blank">
{{item.sellerName}}</a>
</span>
</div>
</div>
</fieldset>
<hr>
{% endfor %}
</div>
</div>
<div id="fb-root"></div>
<script type"text/JavaScript" src = "/static/facebook.js"></script>
</body>
</html>