This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
<div>
|
||||
<div class="88-31">
|
||||
<a href="https://chest.lair.moe" class="disabled">
|
||||
<img src="/static/img/88x31/gf.png"/>
|
||||
</a>
|
||||
<a href="https://preview.about.akarpov.ru" id="pie">
|
||||
<img src="/static/img/88x31/withpie.gif"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="88-31">
|
||||
<a href="https://g.lair.moe/Sweetbread/nixos-config">
|
||||
<img src="/static/img/88x31/nixos.webp"/>
|
||||
</a>
|
||||
<img src="/static/img/88x31/teto.webp"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
div
|
||||
.88-31
|
||||
a.disabled(href="https://chest.lair.moe")
|
||||
img(src="/static/img/88x31/gf.png")
|
||||
|
||||
a#pie(href="https://preview.about.akarpov.ru")
|
||||
img(src="/static/img/88x31/withpie.gif")
|
||||
|
||||
.88-31
|
||||
a(href="https://g.lair.moe/Sweetbread/nixos-config")
|
||||
img(src="/static/img/88x31/nixos.webp")
|
||||
|
||||
img(src="/static/img/88x31/teto.webp")
|
||||
@@ -1,48 +0,0 @@
|
||||
<div class="block">
|
||||
<h3>Development</h3>
|
||||
<div class="blocks badges">
|
||||
<a class="block" href="//g.lair.moe/Sweetbread">
|
||||
<img class="icon" src="/static/icon/service/gitea.webp" />
|
||||
Gitea
|
||||
</a>
|
||||
<a class="block" href="https://github.com/VerySweetBread">
|
||||
<img class="icon" src="https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png" />
|
||||
GitHub
|
||||
</a>
|
||||
<a class="block" href="https://git.kolibrios.org/Sweetbread">
|
||||
<img class="icon" src="https://git.kolibrios.org/assets/img/logo.svg" />
|
||||
KolibriOS Git
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<h3>Contacts</h3>
|
||||
<div class="blocks badges">
|
||||
<a class="block" href="https://matrix.to/#/@risdeveau:lair.moe">
|
||||
<img class="icon" src="https://matrix.org/assets/favicon.ico" />
|
||||
Matrix
|
||||
</a>
|
||||
<a class="block" href="//b.lair.moe/@risdeveau">
|
||||
<img class="icon" src="/static/icon/service/sharkey.webp" />
|
||||
Fediverse
|
||||
</a>
|
||||
<a class="block" href="https://discord.com/users/459823895256498186">
|
||||
<img class="icon" src="https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/66e3d80db9971f10a9757c99_Symbol.svg" />
|
||||
Discord
|
||||
</a>
|
||||
<a class="block" href="mailto:risdeveau@lair.moe">
|
||||
Mail
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<h3>Game accounts</h3>
|
||||
<div class="blocks badges">
|
||||
<a class="block" href="https://steamcommunity.com/id/risdeveau">
|
||||
<img class="icon" src="https://store.steampowered.com/favicon.ico" />
|
||||
Steam
|
||||
</a>
|
||||
<a class="block" href="https://gamebanana.com/members/3899828">
|
||||
<img class="icon" src="https://images.gamebanana.com/static/img/favicon/favicon.ico" />
|
||||
GameBanana
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,40 @@
|
||||
.block
|
||||
h3 Development
|
||||
.blocks.badges
|
||||
a.block(href="//g.lair.moe/Sweetbread")
|
||||
img.icon(src="/static/icon/service/gitea.webp")
|
||||
| Gitea
|
||||
|
||||
a.block(href="https://github.com/VerySweetBread")
|
||||
img.icon(src="https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png")
|
||||
| GitHub
|
||||
|
||||
a.block(href="https://git.kolibrios.org/Sweetbread")
|
||||
img.icon(src="https://git.kolibrios.org/assets/img/logo.svg")
|
||||
| KolibriOS Git
|
||||
|
||||
h3 Contacts
|
||||
.blocks.badges
|
||||
a.block(href="https://matrix.to/#/@risdeveau:lair.moe")
|
||||
img.icon(src="https://matrix.org/assets/favicon.ico")
|
||||
| Matrix
|
||||
|
||||
a.block(href="//b.lair.moe/@risdeveau")
|
||||
img.icon(src="/static/icon/service/sharkey.webp")
|
||||
| Fediverse
|
||||
|
||||
a.block(href="https://discord.com/users/459823895256498186")
|
||||
img.icon(src="https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/66e3d80db9971f10a9757c99_Symbol.svg")
|
||||
| Discord
|
||||
|
||||
a.block(href="mailto:risdeveau@lair.moe") Mail
|
||||
|
||||
h3 Game accounts
|
||||
.blocks.badges
|
||||
a.block(href="https://steamcommunity.com/id/risdeveau")
|
||||
img.icon(src="https://store.steampowered.com/favicon.ico")
|
||||
| Steam
|
||||
|
||||
a.block(href="https://gamebanana.com/members/3899828")
|
||||
img.icon(src="https://images.gamebanana.com/static/img/favicon/favicon.ico")
|
||||
| GameBanana
|
||||
@@ -1,19 +0,0 @@
|
||||
<div>
|
||||
<h3>Wallets</h3>
|
||||
<div class="blocks qr">
|
||||
<div class="block qr">
|
||||
<p>POL, BNB</p>
|
||||
<img src="/static/img/wallets/evm.webp">
|
||||
</div>
|
||||
|
||||
<div class="block qr">
|
||||
<p>TON</p>
|
||||
<img src="/static/img/wallets/ton.webp">
|
||||
</div>
|
||||
|
||||
<div class="block qr">
|
||||
<p>XMR</p>
|
||||
<img src="/static/img/wallets/xmr.webp">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
div
|
||||
h3 Wallets
|
||||
.blocks.qr
|
||||
.block.qr
|
||||
p POL, BNB
|
||||
img(src="/static/img/wallets/evm.webp")
|
||||
|
||||
.block.qr
|
||||
p TON
|
||||
img(src="/static/img/wallets/ton.webp")
|
||||
|
||||
.block.qr
|
||||
p XMR
|
||||
img(src="/static/img/wallets/xmr.webp")
|
||||
@@ -1,57 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Sweet Bread</title>
|
||||
|
||||
<link rel="stylesheet" href="/static/style/tw.css">
|
||||
<link rel="stylesheet" href="/static/style/main.css">
|
||||
<link rel="stylesheet" href="/static/style/risdeveau.css">
|
||||
<link rel="icon" type="image/webp" href="/static/icon/us/risdeveau.webp" />
|
||||
|
||||
<script src="/static/script/rtime.js"></script>
|
||||
<script
|
||||
src="https://track.lair.moe/api/script.js"
|
||||
data-site-id="1"
|
||||
defer
|
||||
></script>
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.8/dist/htmx.min.js"
|
||||
integrity="sha384-/TgkGk7p307TH7EXJDuUlgG3Ce1UVolAOFopFekQkkXihi5u/6OCvVKyz1W+idaz"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta
|
||||
name="htmx-config"
|
||||
content='{
|
||||
"responseHandling":[
|
||||
{"code":"204", "swap": false},
|
||||
{"code":"304", "swap": false},
|
||||
{"code":"[23]..", "swap": true},
|
||||
{"code":"422", "swap": true},
|
||||
{"code":"[45]..", "swap": false, "error":true},
|
||||
{"code":"...", "swap": true}
|
||||
]
|
||||
}'
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<a href="{{ url_for('root.index') }}">Lair</a>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
{% for m in (
|
||||
'info',
|
||||
'contacts',
|
||||
'listenbrainz',
|
||||
'steam',
|
||||
'donate',
|
||||
'88x31'
|
||||
) %}
|
||||
{% include 'risdeveau/templates/%s.htm' % m %}
|
||||
{% endfor %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,50 @@
|
||||
doctype html
|
||||
|
||||
html(lang="en")
|
||||
head
|
||||
title Sweet Bread
|
||||
|
||||
each f in ('tw', 'main', 'risdeveau')
|
||||
link(rel="stylesheet", href="/static/style/#{f}.css")
|
||||
|
||||
link(rel="icon" type="image/webp" href="/static/icon/us/risdeveau.webp")
|
||||
|
||||
script(src="/static/script/rtime.js")
|
||||
script(
|
||||
src="https://track.lair.moe/api/script.js"
|
||||
data-site-id="1"
|
||||
defer
|
||||
)
|
||||
script(
|
||||
src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.8/dist/htmx.min.js"
|
||||
integrity="sha384-/TgkGk7p307TH7EXJDuUlgG3Ce1UVolAOFopFekQkkXihi5u/6OCvVKyz1W+idaz"
|
||||
crossorigin="anonymous"
|
||||
)
|
||||
script(defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js")
|
||||
|
||||
meta(name="viewport" content="width=device-width, initial-scale=1.0")
|
||||
meta(
|
||||
name="htmx-config"
|
||||
content='{
|
||||
"responseHandling":[
|
||||
{"code":"204", "swap": false},
|
||||
{"code":"304", "swap": false},
|
||||
{"code":"[23]..", "swap": true},
|
||||
{"code":"422", "swap": true},
|
||||
{"code":"[45]..", "swap": false, "error":true},
|
||||
{"code":"...", "swap": true}
|
||||
]
|
||||
}'
|
||||
)
|
||||
|
||||
body
|
||||
header
|
||||
a(href=url_for('root.index')) Lair
|
||||
|
||||
main
|
||||
include risdeveau/templates/info.pug
|
||||
include risdeveau/templates/contacts.pug
|
||||
include risdeveau/templates/listenbrainz.pug
|
||||
include risdeveau/templates/steam.pug
|
||||
include risdeveau/templates/donate.pug
|
||||
include risdeveau/templates/88x31.pug
|
||||
@@ -1,50 +0,0 @@
|
||||
<div class="block">
|
||||
<table>
|
||||
<tr>
|
||||
<th>DoB</th>
|
||||
<td>2005-01-13</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Languages</th>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Russian</td>
|
||||
<td>Native</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>English</td>
|
||||
<td>B2</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>French</td>
|
||||
<td>A1?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>German</td>
|
||||
<td>A2?</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Japanese</td>
|
||||
<td>Beginner</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Student</th>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Programmer</td>
|
||||
<td>2.5/4yr.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Translator</td>
|
||||
<td>2.5/3yr.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,35 @@
|
||||
.block
|
||||
table
|
||||
tr
|
||||
th DoB
|
||||
td 2005-01-13
|
||||
tr
|
||||
th Languages
|
||||
td
|
||||
table
|
||||
tr
|
||||
td Russian
|
||||
td Native
|
||||
tr
|
||||
td English
|
||||
td B2
|
||||
tr
|
||||
td French
|
||||
td A1?
|
||||
tr
|
||||
td German
|
||||
td A2?
|
||||
tr
|
||||
td Japanese
|
||||
td Beginner
|
||||
|
||||
tr
|
||||
th Student
|
||||
td
|
||||
table
|
||||
tr
|
||||
td Programmer
|
||||
td 2.5/4yr.
|
||||
tr
|
||||
td Translator
|
||||
td 2.5/3yr.
|
||||
@@ -1,39 +0,0 @@
|
||||
{% macro track_block(track, is_active=false) %}
|
||||
<div class="block track{% if is_active %} active{% endif %}">
|
||||
{% if track.cover_url %}
|
||||
<img src="{{ track.cover_url }}"/>
|
||||
{% endif %}
|
||||
<div>
|
||||
<p><b>{{ track.artist_name }}</b></p>
|
||||
<p>{{ track.track_name }}</p>
|
||||
{% if not is_active %}
|
||||
<p
|
||||
x-data="rtime({{ track.listened_at }})"
|
||||
x-text="`Listened ${timeString}`"
|
||||
:class="textColorClass"
|
||||
></p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
<div
|
||||
class="block"
|
||||
hx-get="/m/listenbrainz"
|
||||
hx-trigger="every 15s"
|
||||
hx-swap="outerHTML"
|
||||
hx-headers='{
|
||||
"If-Modified-Since": {{ lb.last_updated | int }},
|
||||
"If-None-Match": "{{ lb.etag }}"
|
||||
}'
|
||||
>
|
||||
<h2><a href="https://listenbrainz.org/user/risdeveau/">Listenbrainz</a></h2>
|
||||
{% if lb.caches.now.data and lb.caches.now.data.listens.0 %}
|
||||
{{ track_block(lb.caches.now.data.listens.0, is_active=true) }}
|
||||
{% endif %}
|
||||
{% if lb.caches.listens.data and lb.caches.listens.data.listens %}
|
||||
{% for track in lb.caches.listens.data.listens %}
|
||||
{{ track_block(track) }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -0,0 +1,32 @@
|
||||
mixin track_block(track, is_active=false)
|
||||
- set act_cls = "active" if is_active else ""
|
||||
.block.track(class=act_cls)
|
||||
if track.cover_url
|
||||
img(src=track.cover_url)
|
||||
div
|
||||
p
|
||||
b= track.artist_name
|
||||
p= track.track_name
|
||||
|
||||
if not is_active
|
||||
p(
|
||||
x-data="rtime(#{track.listened_at})",
|
||||
x-text="`Listened ${timeString}`",
|
||||
:class="textColorClass"
|
||||
)
|
||||
|
||||
.block(
|
||||
hx-get="/m/listenbrainz",
|
||||
hx-trigger="every 15s",
|
||||
hx-swap="outerHTML",
|
||||
hx-headers='{"If-None-Match": "#{lb.etag}"}'
|
||||
)
|
||||
h2
|
||||
a(href="https://listenbrainz.org/user/risdeveau/") Listenbrainz
|
||||
|
||||
if lb.caches.now.data and lb.caches.now.data.listens[0]
|
||||
+track_block(lb.caches.now.data.listens[0], true)
|
||||
|
||||
if lb.caches.listens.data and lb.caches.listens.data.listens
|
||||
each track in lb.caches.listens.data.listens
|
||||
+track_block(track)
|
||||
@@ -1,69 +0,0 @@
|
||||
<div
|
||||
class="block steam"
|
||||
hx-get="/m/steam"
|
||||
hx-trigger="every 1m"
|
||||
hx-swap="outerHTML"
|
||||
hx-headers='{
|
||||
"If-Modified-Since": {{ steam.last_updated | int }},
|
||||
"If-None-Match": "{{ steam.etag }}"
|
||||
}'
|
||||
>
|
||||
<h2><a href="https://steamcommunity.com/id/risdeveau">Steam</a></h2>
|
||||
|
||||
{% if steam.caches.recent.data.games %}
|
||||
<h3>Recently played:</h3>
|
||||
{% for g in steam.caches.recent.data.games %}
|
||||
<a href="https://store.steampowered.com/app/{{ g.appid }}" class="block">
|
||||
<picture>
|
||||
<source media="(max-width: 45rem)" srcset="{{ g.v_cover }}">
|
||||
<img src="{{ g.h_cover }}">
|
||||
</picture>
|
||||
|
||||
<div>
|
||||
<strong>{{ g.name }}</strong>
|
||||
<p>Played last 2 weeks: {{ tmsmp(g.playtime_2weeks*60) }}
|
||||
<p>
|
||||
Total played:
|
||||
{{ tmsmp(g.playtime_linux_forever*60) }} (<abbr title="On Linux">L</abbr>) +
|
||||
{{ tmsmp(g.playtime_windows_forever*60) }} (<abbr title="On Windows">W</abbr>) =
|
||||
{{ tmsmp(g.playtime_forever*60) }} (<abbr title="Total">T</abbr>)
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
<p
|
||||
x-data="rtime({{steam.caches.recent.last_updated}})"
|
||||
x-text="`Last updated: ${timeString}`"
|
||||
></p>
|
||||
{% endif %}
|
||||
|
||||
{% if steam.caches.owned.data.games %}
|
||||
<h3>Top played games:</h3>
|
||||
{% set owned_games = steam.caches.owned.data.games | sort(attribute="playtime_forever", reverse=true) %}
|
||||
{% for g in owned_games[:5] %}
|
||||
<a href="https://store.steampowered.com/app/{{ g.appid }}" class="block">
|
||||
<picture>
|
||||
<source media="(max-width: 45rem)" srcset="{{ g.v_cover }}">
|
||||
<img src="{{ g.h_cover }}">
|
||||
</picture>
|
||||
|
||||
<div>
|
||||
<strong>{{ g.name }}</strong>
|
||||
<p>
|
||||
Total played:
|
||||
{{ tmsmp(g.playtime_linux_forever*60) }} (<abbr title="On Linux">L</abbr>) +
|
||||
{{ tmsmp(g.playtime_windows_forever*60) }} (<abbr title="On Windows">W</abbr>) =
|
||||
{{ tmsmp(g.playtime_forever*60) }} (<abbr title="Total">T</abbr>)
|
||||
</p>
|
||||
{% if g.rtime_last_played != 0 %}
|
||||
<p>Last played: {{ utmsmp(g.rtime_last_played) }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
<p
|
||||
x-data="rtime({{steam.caches.owned.last_updated}})"
|
||||
x-text="`Last updated: ${timeString}`"
|
||||
></p>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -0,0 +1,52 @@
|
||||
mixin game_block(g, show_last_played=false)
|
||||
a.block(href="https://store.steampowered.com/app/#{g.appid}", target="_blank")
|
||||
picture
|
||||
source(media="(max-width: 45rem)", srcset=g.v_cover)
|
||||
img(src=g.h_cover)
|
||||
div
|
||||
strong= g.name
|
||||
if g.playtime_2weeks
|
||||
p Played last 2 weeks: #{tmsmp(g.playtime_2weeks * 60)}
|
||||
p
|
||||
- var lin = g.playtime_linux_forever > 0;
|
||||
- var win = g.playtime_windows_forever > 0;
|
||||
| Total played:
|
||||
if lin
|
||||
= tmsmp(g.playtime_linux_forever * 60)
|
||||
| (
|
||||
abbr(title="On Linux") L
|
||||
| )
|
||||
if lin and win
|
||||
= " + "
|
||||
if win
|
||||
= tmsmp(g.playtime_windows_forever * 60)
|
||||
| (
|
||||
abbr(title="On Windows") W
|
||||
| )
|
||||
if lin and win
|
||||
= " = "
|
||||
= tmsmp(g.playtime_forever * 60)
|
||||
if show_last_played and g.rtime_last_played != 0
|
||||
p Last played: #{utmsmp(g.rtime_last_played)}
|
||||
|
||||
.block.steam(
|
||||
hx-get="/m/steam",
|
||||
hx-trigger="every 1m",
|
||||
hx-swap="outerHTML",
|
||||
hx-headers='{ "If-None-Match": "#{steam.etag}" }'
|
||||
)
|
||||
h2
|
||||
a(href="https://steamcommunity.com/id/risdeveau") Steam
|
||||
|
||||
if steam.caches.recent.data.games
|
||||
h3 Recently played:
|
||||
each g in steam.caches.recent.data.games
|
||||
+game_block(g)
|
||||
p(x-data="rtime(#{steam.caches.recent.last_updated})", x-text="`Last updated: ${timeString}`")
|
||||
|
||||
if steam.caches.owned.data.games
|
||||
h3 Top played games:
|
||||
- var owned_games = steam.caches.owned.data.games | sort(attribute="playtime_forever", reverse=true)
|
||||
each g in owned_games[:5]
|
||||
+game_block(g, true)
|
||||
p(x-data="rtime(#{steam.caches.owned.last_updated})", x-text="`Last updated: ${timeString}`")
|
||||
Reference in New Issue
Block a user