Browse Source

Our revolutionary new UI

mistress
Daniel Muckerman 4 years ago
parent
commit
b2b23abc40
9 changed files with 25 additions and 13 deletions
  1. +1
    -1
      app.py
  2. +15
    -10
      config.yaml
  3. BIN
      static/images/freshrss.png
  4. BIN
      static/images/gitea.png
  5. BIN
      static/images/jellyfin.png
  6. BIN
      static/images/nextcloud.png
  7. BIN
      static/images/rocketchat.png
  8. +4
    -2
      templates/card.j2
  9. +5
    -0
      templates/index.j2

+ 1
- 1
app.py View File

@ -8,7 +8,7 @@ app.secret_key = 'asdf'
app.debug = True app.debug = True
with open('config.yaml') as f: with open('config.yaml') as f:
yaml_data = yaml.load(f)
yaml_data = yaml.load(f, Loader=yaml.SafeLoader)
search = yaml_data['search'] search = yaml_data['search']
account_url = yaml_data['accounts']['account_url'] account_url = yaml_data['accounts']['account_url']

+ 15
- 10
config.yaml View File

@ -8,21 +8,26 @@ accounts:
apps: apps:
chat: chat:
name: "Rocket Chat" name: "Rocket Chat"
description: "It's rocket chat"
link: "https://rocketchat.tia.moe"
description: "<br>Stay in touch with your friends, family, and people you've never even met with Technical Incompetence's amazing chat service. Experience the joy's of late-1990s AIM all over again."
link: "https://rocketchat.technicalincompetence.club"
image: "rocketchat.png"
cloud: cloud:
name: "Nextcloud" name: "Nextcloud"
description: "It's a cloud"
link: "https://cloud.tia.moe"
description: "<br>What would Technical Incompetence be without the ability to give up ownership of all your data and store it on our servers. Don't worry though, our servers will <sub>probably</sub> never crash or lose data so all you care about is safe with us."
link: "https://cloud.technicalincompetence.club"
image: "nextcloud.png"
gitea: gitea:
name: "Gitea" name: "Gitea"
description: "It's git"
link: "https://git.tia.moe"
description: "<br>It's git"
link: "https://git.technicalincompetence.club"
image: "gitea.png"
jellyfin: jellyfin:
name: "Jellyfin" name: "Jellyfin"
description: "It's a jellyfin"
link: "https://jellyfin.tia.moe"
description: "<br>It's a jellyfin"
link: "https://jellyfin.technicalincompetence.club"
image: "jellyfin.png"
rss: rss:
name: "FreshRSS" name: "FreshRSS"
description: "It's rss"
link: "https://rss.tia.moe"
description: "<br>It's rss"
link: "https://rss.technicalincompetence.club"
image: "freshrss.png"

BIN
static/images/freshrss.png View File

Before After
Width: 256  |  Height: 256  |  Size: 14 KiB

BIN
static/images/gitea.png View File

Before After
Width: 512  |  Height: 512  |  Size: 27 KiB

BIN
static/images/jellyfin.png View File

Before After
Width: 512  |  Height: 512  |  Size: 93 KiB

BIN
static/images/nextcloud.png View File

Before After
Width: 512  |  Height: 512  |  Size: 77 KiB

BIN
static/images/rocketchat.png View File

Before After
Width: 512  |  Height: 512  |  Size: 35 KiB

+ 4
- 2
templates/card.j2 View File

@ -1,9 +1,11 @@
<div class="col-xs-12 col-sm-6 col-md-4 mb-4"> <div class="col-xs-12 col-sm-6 col-md-4 mb-4">
<div class="card">
<div class="card" onclick="goToLink('{{ app['link'] }}');">
<div class="card-body"> <div class="card-body">
{% if app['image'] is defined %}
<img src="{{url_for('.static', filename='images/' )}}{{ app['image'] }}" class="card-img" style="float:left; width: 25% !important; padding-right: 1.25rem;">
{% endif %}
<h5 class="card-title">{{ app['name'] }}</h5> <h5 class="card-title">{{ app['name'] }}</h5>
<p class="card-text">{{ app['description'] }}</p> <p class="card-text">{{ app['description'] }}</p>
<a href="#" class="btn btn-primary">{{ app['link'] }}</a>
</div> </div>
</div> </div>
</div> </div>

+ 5
- 0
templates/index.j2 View File

@ -25,6 +25,7 @@
</div> </div>
<br><br> <br><br>
{% endif %} {% endif %}
<p>It turns out dCloud's amazingness is just too great for this lame internet - we need a new one to maximize our full potential. Welcome to the Technical Incompetence internet. Population - US.</p>
<div class="row"> <div class="row">
{% for app in apps %} {% for app in apps %}
{% include "card.j2" %} {% include "card.j2" %}
@ -50,5 +51,9 @@ $( ".card" ).hover(
$(this).removeClass('shadow-lg'); $(this).removeClass('shadow-lg');
$(this).removeClass('card-hover'); $(this).removeClass('card-hover');
}); });
function goToLink(link) {
window.location = link;
}
</script> </script>
{% endblock %} {% endblock %}

Loading…
Cancel
Save