test page

This commit is contained in:
Bitcarrot
2021-10-04 20:50:30 -07:00
parent 672e7c64aa
commit 992012fc35
4 changed files with 37 additions and 1 deletions

2
.gitignore vendored
View File

@@ -104,3 +104,5 @@ dist
.tern-port .tern-port
.env .env
credentials.json credentials.json
.vercel

View File

@@ -60,7 +60,7 @@ app.get('/', function(req, res) {
}); });
app.get('/en', function(req, res) { app.get('/en', function(req, res) {
res.render('sats', enjson) res.render('test', enjson)
}); });
app.get('/zh-cn', function(req, res) { app.get('/zh-cn', function(req, res) {

View File

@@ -1,4 +1,13 @@
{ {
"post": {
"author": "Janith Kasun",
"image": "https://picsum.photos/500/500",
"comments": [
"This is the first comment",
"This is the second comment",
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum nec fermentum ligula. Sed vitae erat lectus."
]
},
"layout": "main", "layout": "main",
"Title": "1 HK dollar is currently worth ", "Title": "1 HK dollar is currently worth ",
"subtitle": "HKDSAT Historical Performance", "subtitle": "HKDSAT Historical Performance",

25
views/test.html Normal file
View File

@@ -0,0 +1,25 @@
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#">Book Face</a>
</nav>
<h1>{{ Title }} </h1>
<h4>{{ subtitle }} </h4>
<div class="posts">
<div class="row justify-content-center">
<div class="col-lg-7" style="margin-top: 50px;">
<div class="card">
<img src="{{post.image}}" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Posted by {{post.author}}</h5>
<ul class="list-group">
<li class="list-group-item">{{ post.comments}} </li>
<li class="list-group-item">This is suppose to be a comment</li>
</ul>
</div>
</div>
</div>
</div>
</div>