This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
community.html
142 lines (141 loc) · 6.08 KB
/
community.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
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
<!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>Anime Talk</title>
<!-- Favicon-->
<link rel="icon" type="image/x-icon" href="assets/fish.png" />
<!-- Bootstrap icons-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/styles.css" rel="stylesheet" />
</head>
<body>
<!-- Navigation-->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container px-4 px-lg-5">
<a class="navbar-brand" href="#!">Anime Talk</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0 ms-lg-4">
<li class="nav-item"><a class="nav-link active" aria-current="page" href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link" href="about.html">About</a></li>
<li class="nav-item"><a class="nav-link" href="community.html">Community</a></li>
</ul>
<form class="d-flex">
<button class="btn btn-outline-dark" type="submit">
<i class="bi-person-fill me-1"></i>
Sign in
</button>
</form>
</div>
</div>
</nav>
<!-- Header-->
<header class="bg-image" style="
background-image: url('https://c4.wallpaperflare.com/wallpaper/648/356/892/one-piece-dragon-ball-dragon-ball-super-naruto-shippuuden-wallpaper-preview.jpg');
height: 21.5vh;
">
<div class="bg-opacity" style="height: 21.5vh">
<div class="container px-4 py-lg-5 px-lg-5 my-5">
<div class="text-center text-white">
<h1 class="font-marvel fs-1 display-4 fw-bolder text-light ">ANIME TALK</h1>
<p class="font-markel fs-4 fw-normal text-white-70 mb-0">Talk with your favorite anime character!</p>
</div>
</div>
</div>
</header>
<!-- Section-->
<section class="py-5">
<div class="container px-4 px-lg-5 mt-5">
<div class="top-bar">
<h1>
My Forum
</h1>
</div>
<div class="main">
<ol>
</ol>
</div>
<script src="js/data.js"></script>
<script>
console.log(threads);
var container = document.querySelector('ol');
for (let thread of threads) {
var html = `
<li class="row">
<a href="thread.html?${thread.id}">
<h4 class="title">
${thread.title}
</h4>
<div class="bottom">
<p class="timestamp">
${new Date(thread.date).toLocaleString()}
</p>
<p class="comment-count">
${thread.comments.length} comments
</p>
</div>
</a>
</li>
`
container.insertAdjacentHTML('beforeend', html)
}
</script>
<style>
body {
margin: 10px 60px;
}
a {
text-decoration: none;
color: black;
}
h4 {
margin:0;
}
p {
margin: 5px 0;
}
.top-bar {
background-color: rgb(182, 158, 202);
padding: 10px 40px;
}
.main {
background-color: aliceblue;
padding: 10px 15px;
}
.row {
padding: 5px 0;
}
.bottom {
display: flex;
color:grey;
font-size: 12px;
}
.timestamp {
padding-right: 10px;
}
</style>
</div>
<div class="container px-4 py-3 px-lg-5 mt-5">
<div class="row gx-4 gx-lg-5 justify-content-center">
</div>
</div>
<div class="container px-4 py-3 px-lg-5 mt-5">
<div class="row gx-4 gx-lg-5 justify-content-center">
</div>
</div>
</section>
<!-- Footer-->
<footer class="py-5 bg-dark">
<div class="container"><p class="m-0 text-center text-white"> © Anime Talk 2021</p></div>
</footer>
<!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- Core theme JS-->
<script src="js/scripts.js"></script>
</body>
</html>