2020-01-12 12:50:21 +00:00
|
|
|
include includes/timeline_page.pug
|
2020-01-12 15:39:50 +00:00
|
|
|
include includes/next_page_button.pug
|
2020-01-12 12:50:21 +00:00
|
|
|
|
|
|
|
- const numberFormat = new Intl.NumberFormat().format
|
|
|
|
|
|
|
|
doctype html
|
|
|
|
html
|
|
|
|
head
|
|
|
|
meta(charset="utf-8")
|
|
|
|
meta(name="viewport" content="width=device-width, initial-scale=1")
|
|
|
|
title
|
|
|
|
= `${user.data.full_name} (@${user.data.username}) | Bibliogram`
|
|
|
|
link(rel="stylesheet" type="text/css" href="/static/css/main.css")
|
2020-01-12 15:39:50 +00:00
|
|
|
script(src="/static/js/pagination.js" type="module")
|
2020-01-12 12:50:21 +00:00
|
|
|
body
|
|
|
|
.main-divider
|
|
|
|
header.profile-overview
|
|
|
|
.profile-sticky
|
|
|
|
+image(user.data.profile_pic_url)(width="150px" height="150px").pfp
|
|
|
|
//-
|
|
|
|
Instagram only uses the above URL, but an HD version is also available:
|
|
|
|
+image(user.data.profile_pic_url_hd)
|
|
|
|
h1.full-name= user.data.full_name
|
|
|
|
h2.username= `@${user.data.username}`
|
|
|
|
p.bio= user.data.biography
|
|
|
|
div.profile-counter
|
|
|
|
span(data-numberformat=user.posts).count #{numberFormat(user.posts)}
|
|
|
|
|
|
|
|
|
| posts
|
|
|
|
div.profile-counter
|
|
|
|
span(data-numberformat=user.following).count #{numberFormat(user.following)}
|
|
|
|
|
|
|
|
|
| following
|
|
|
|
div.profile-counter
|
|
|
|
span(data-numberformat=user.followedBy).count #{numberFormat(user.followedBy)}
|
|
|
|
|
|
|
|
|
| followed by
|
|
|
|
|
2020-01-12 15:39:50 +00:00
|
|
|
main#timeline.timeline
|
2020-01-12 12:50:21 +00:00
|
|
|
each page, pageIndex in user.timeline.pages
|
|
|
|
+timeline_page(page, pageIndex)
|
|
|
|
|
2020-01-12 15:39:50 +00:00
|
|
|
+next_page_button(user, url)
|