1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-05-07 22:13:07 +00:00
Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2024-12-26 16:24:04 -05:00
parent afc634b0d2
commit d173e6ea73
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
22 changed files with 1433 additions and 472 deletions

5
views/404.pug Normal file
View file

@ -0,0 +1,5 @@
extends site.pug
block content
h1 Not Found
p No such thing is to be found here!! Perhaps, you would be better off, locating something that exists.

View file

@ -9,6 +9,6 @@ mixin feed(feed, hideUser)
| #{update.user}
strong= update.mood
div= update.desc || "[no mood description provided]"
div= update.date
div(title=update.date.toLocaleString())= update.relativeDate
else
span [no updates]

View file

@ -30,6 +30,9 @@ block content
input.ovm-input(type="radio", name="moodDelta", id="moodDelta-mw", value="-2", required)
label.ovm-input(for="moodDelta-mw", title="Much worse")
img(src="/img/downdown.svg", alt="Much worse")
.input
label(for="title") Title
input(type="text", name="title", id="title", placeholder="max 64 chars", maxlength="64", style="width:66ch;")
.input
label(for="description") Journal entry for today
textarea(name="description", id="description", placeholder="max 4096 chars", maxlength="4096", cols="60", rows="12")

View file

@ -1,13 +1,12 @@
extends site.pug
block content
h1= entry.date.toLocaleDateString()
h1= entry.title
span
| by
|
| by
a(href=`/users/${entry.uname}`)= entry.uname
|
| at #{entry.date.toLocaleTimeString()}
|
span(title=entry.date.toLocaleString()) #{entryTimestamp}
br
br
div= entry.content
div!= entry.content

View file

@ -11,7 +11,7 @@ html(lang="en")
main
header
a(href="/")
img#header-logo(src="/img/logo.svg", alt="logo")
img#header-logo(src="/img/logo.svg", alt="logo", title="meow")
nav
if session.loggedIn
if session.status & 0b001

View file

@ -2,20 +2,21 @@ extends site.pug
//- Display mood here but keep yourself dry (i.e. dont request user mood if the profile being viewed is the profile of the currently logged-in user)
block content
h1= user.name
if !isSelf
form(action=`/users/${user.name}/follow`, method="post")
button(type="submit")= isFollowing ? "unfollow" : "follow"
br
span= user.bio || "[no bio]"
div(style="display:flex;align-items:center;gap:8px;")
h1= user.name
if !isSelf
form(action=`/users/${user.name}/follow`, method="post")
button(type="submit")= isFollowing ? "unfollow" : "follow"
br
div(style="margin-bottom:1em;")
| Joined
span(title=user.registered.toLocaleString())= user.relativeRegistered
div= user.bio || "[no bio]"
if user.website
br
a(href=user.website)= user.website
br
br
h2 Current mood
h2(style="margin-top:1em;") Current mood
if userMood
span
div
| Feeling
|
strong
@ -23,11 +24,20 @@ block content
| #{currentMood}
else
| #{userMood.mood}
br
div(style="margin-left:2ch;word-wrap:break-word;")= userMood.desc || "[no mood description]"
else
span User has not yet set a mood!
div User has not yet set a mood!
br
h2 Recent updates
h2 Recent journal entries
if userJournalEntries.length > 0
ul
for entry of userJournalEntries
li
a(href=`/journal/${entry.id}`)= entry.title
span.subtle(title=entry.date.toLocaleString()) (#{entry.relativeDate})
else
div [no entries]
br
h2 Recent mood updates
include _feed.pug
+feed(userMoodFeed, true)