Compare commits

..

5 commits

4 changed files with 98 additions and 0 deletions

View file

View file

@ -0,0 +1,12 @@
server:
assets-path: /app/assets
theme:
# Note: assets are cached by the browser, changes to the CSS file
# will not be reflected until the browser cache is cleared (Ctrl+F5)
custom-css-file: /assets/user.css
pages:
# It's not necessary to create a new file for each page and include it, you can simply
# put its contents here, though multiple pages are easier to manage when separated
- $include: home.yml

View file

@ -0,0 +1,72 @@
- name: Home
# Optionally, if you only have a single page you can hide the desktop navigation for a cleaner look
# hide-desktop-navigation: true
columns:
- size: small
widgets:
- type: calendar
first-day-of-week: monday
- type: rss
limit: 10
collapse-after: 3
cache: 12h
feeds:
- url: https://selfh.st/rss/
title: selfh.st
- size: full
widgets:
- type: group
widgets:
- type: hacker-news
- type: lobsters
- type: videos
channels:
- UCferfyAeOJAjS9GoI4td6gg # Canal peewee
- UCXdXbm5P-8UIQRNjF94uHTA # Derrotando filmes
- UC42ZBFGMKZkg4YaQ_T6pNEw # Cortes do Cescon
- UC2Gu2D6VkeVYwXA8wnLvSwg # Aryun
- UCDO__Z-tZD4bfG9m4AkK_uA # NotOtzarva
- UCI4aITQ3nx1QR_8RxFlPjRQ # Hens333
- UCwhYSrP7BT480a75aFAvIeg # NotHens333
- UCXuqSBlHAE6Xw-yeJA0Tunw # Linus Tech Tips
- UCR-DXc1voovS8nhAvccRZhg # Jeff Geerling
- type: custom-api
title: Steam Specials
cache: 12h
url: https://store.steampowered.com/api/featuredcategories?cc=br
template: |
<ul class="list list-gap-10 collapsible-container" data-collapse-after="5">
{{ range .JSON.Array "specials.items" }}
<li>
<a class="size-h4 color-highlight block text-truncate" href="https://store.steampowered.com/app/{{ .Int "id" }}/">{{ .String "name" }}</a>
<ul class="list-horizontal-text">
<li>{{ .Int "final_price" | toFloat | mul 0.01 | printf "R$%.2f" }}</li>
{{ $discount := .Int "discount_percent" }}
<li{{ if ge $discount 40 }} class="color-positive"{{ end }}>{{ $discount }}% off</li>
</ul>
</li>
{{ end }}
</ul>
- size: small
widgets:
- type: weather
location: São Paulo, Brazil
units: metric # alternatively "imperial"
hour-format: 12h # alternatively "24h"
# Optionally hide the location from being displayed in the widget
# hide-location: true
- type: twitch-channels
channels:
- luigimarqs
- luigimarqs_dj
- djmozao_
- devMozao
- otzdarva
- mynameispit
- gamesdonequick
- DanielGray10
- Hens333

View file

@ -0,0 +1,14 @@
services:
glance:
container_name: glance
image: glanceapp/glance
restart: unless-stopped
volumes:
- ./config:/app/config
- ./assets:/app/assets
# Optionally, also mount docker socket if you want to use the docker containers widget
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
# port 8081 on host
- 8081:8081