-
Notifications
You must be signed in to change notification settings - Fork 0
/
timeline.html
105 lines (94 loc) · 2.73 KB
/
timeline.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
<!DOCTYPE html>
<html lang="ja">
<head>
<style>
.btn {
position:fixed;
right:50px;
bottom:50px;
transition:1s;
opacity:0.7;
}
.btn:hover{
opacity:1;
}
</style>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
crossorigin="anonymous"
/>
<title>Portfolio</title>
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
crossorigin="anonymous"
></script>
</head>
<body>
<!-- ナビゲーションメニュー -->
<nav
class="navbar navbar-expand-lg navbar-light text-dark bg-dark"
id="home"
>
<a class="navbar-brand text-white" href="/">ドケチ掲示板</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link text-white" href="/post/index">投稿</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#contact">アカウント</a>
</li>
</ul>
</div>
</nav>
<!-- カード -->
<div class="container my-5" id="skill">
<h2 class="py-4 text-dark">タイムライン</h2>
<div class="row row-cols-1 row-cols-md-3">
{% for post, user in posts_users %}
<div class="col mb-4">
<div class="card">
<!-- ここにユーザー情報を表示 -->
<!-- TODO 投稿者のページに飛べるようにaタグを -->
<div class="card-header"> <p> <a href="../user/{{user.0}}">投稿者: {{ user.1 }}</a></p></div>
<div class="card-body">
<h5 class="card-title">{{ post.1 }}</h5>
<p class="card-text">{{ post.3 }}</p>
</div>
<div class="card-footer">価格: {{ post.2 }}円</div>
</div>
</div>
{% endfor %}
</div>
<div class="btn">
<button type="submit" class="btn btn-success ">Post</button>
</div>
</div>
</div>
</body>
</html>