-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserfeed.html
113 lines (100 loc) · 2.88 KB
/
userfeed.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
<!DOCTYPE html>
<html>
<head>
<title>Feed</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: #f5f5f5;
color: #333;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
.card {
border: 1px solid #ccc;
border-radius: 8px;
padding: 20px;
margin: 10px 0;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.search-input {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.search-button {
background-color: #C1038B;
color: white;
border: none;
border-radius: 4px;
padding: 8px 15px;
cursor: pointer;
}
.share-button {
background-color: #C1038B;
color: white;
border: none;
border-radius: 4px;
padding: 10px 20px;
cursor: pointer;
margin-bottom: 20px;
}
.feed-title {
font-size: 24px;
margin-bottom: 20px;
}
.card-content {
font-size: 16px;
margin-bottom: 10px;
}
.location-name {
color: #141313;
font-size: 14px;
}
.sentiment {
color: green;
margin-top: 10px;
}
.button {
color: white;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<div class="search-bar" style="position: absolute; left: 620px;">
<form action="{{ url_for('search') }}" method="GET">
<input type="text" class="search-input" name="query" placeholder="Search...">
<button class="search-button" type="submit">Search</button>
</form>
</div>
<br><br>
<h2 class="feed-title">Recent Experiences:</h2>
{% if posts %}
{% for post in posts %}
<div class="card">
<p class="card-content">{{ post.content }}</p>
<p class="location-name"><b>Location: {{ post.location.name }}</b></p>
<p class="sentiment">Sentiment: {{ post.sentiment }}</p>
</div>
{% endfor %}
{% else %}
<p>No experiences yet.</p>
{% endif %}
</div>
</body>
</html>