-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.html
More file actions
executable file
·153 lines (111 loc) · 5.14 KB
/
global.html
File metadata and controls
executable file
·153 lines (111 loc) · 5.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Stream Page</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Custom styles for this template -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="../static/payfun/new.css" rel="stylesheet">
<!-- Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
.mainBlock {
margin-left: 140px; /* Same width as the sidebar + left position in px */
font-size: 28px; /* Increased text to enable scrolling */
padding: 0px 10px;
}
.sidenav {
width: 160px; /* Set the width of the sidebar */
position: fixed; /* Fixed Sidebar (stay in place on scroll) */
z-index: 1; /* Stay on top */
left: 0;
overflow-x: hidden; /* Disable horizontal scroll */
padding: 6px 8px 6px 16px;
}
.list-group-item {
border-style: none;
}
#About {
background: url("./images/icons/write.svg") no-repeat scroll center center / 100% auto rgba(0, 0, 0, 0);
}
#signIn {
margin-right: 10px;
}
li {
margin-top: 0px;
margin-bottom: 0px;
}
hr {
margin-top: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="#">PayFun</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<form class="form-inline mt-2 mt-md-0">
{% csrf_token %}
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search" name="searchInput" style="margin-top: 5px;">
<button class="btn btn-primary" type="submit" name="searchButton" style="margin-top: 5px;"><span class="glyphicon glyphicon-search"></span></button>
</form>
</div>
<button class="btn" id="signIn">Sign in</button>
<button class="btn" id="signUp">Sign up</button>
</nav>
<div class="container" id="main_block">
<div class="sidenav">
<div class="btn-group-vertical">
<button class="btn"><i class="fa fa-pencil-square-o"></i></i>Create</button>
<button class="btn"><i class="fa fa-money"></i>Donations</button>
<button class="btn"><i class="fa fa-archive"></i>Projects</button>
<button class="btn"><i class="fa fa-star"></i>Followings</button>
<button class="btn"><i class="fa fa-user"></i></i>Profiles</button>
<button class="btn"><i class="fa fa-envelope-square"></i>Notifications</button>
</div>
</div>
<div class="container">
{% for activity_group in activities %}
<div class="row">
{% for activity in activity_group %}
<div class="col-sm">
<div class="card text-white bg-dark mb-3" style="max-width: 40rem">
<img class="card-img-top" src="./images/cat.jpg" alt="Card image cap">
<div class="card-header">{{activity.title}}</div>
<div class="card-body">
<h5 class="card-title">By: <a href="">{{activity.launcher.username}}</a> on {{activity.post_time}}</h5>
<p class="card-text">Location: {{activity.location}}</p>
<p class="card-text">{{activity.content}}</p>
<a href="#" class="btn btn-primary">Know more</a>
</div>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
<!-- /#wrapper -->
<!-- Bootstrap core JavaScript -->
<!-- end of stream page -->
<script>
function setAttribute() {
document.getElementsByName("searchInput").setAttribute("class", "democlass");
document.getElementsByName("searchButton").setAttribute();
}
</script>
</body>
</html>