appstore: serve assets from local

This commit is contained in:
Alexandre Aubin
2023-08-21 18:22:45 +02:00
parent 2721f8ae63
commit eeb4b9ef3a
5 changed files with 22 additions and 6 deletions

View File

@ -4,9 +4,9 @@
<head>
<title>YunoHost app store</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com?plugins=forms"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css" integrity="sha256-XoaMnoYC5TH6/+ihMEnospgm0J1PM/nioxbOUdnM8HY=" crossorigin="anonymous">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<script src="{{ url_for('static', filename='tailwindcss.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('static', filename='fork-awesome.min.css') }}" rel="preload">
</head>
<body>
@ -16,7 +16,7 @@
>
<a class="block text-teal-600" href="/">
<span class="sr-only">Home</span>
<img src="https://raw.githubusercontent.com/YunoHost/doc/master/images/logo_roundcorner.png" style="height: 3em;" />
<img src="{{ url_for('static', filename='ynh_logo_roundcorner.png') }}" style="height: 3em;" />
</a>
<div class="flex flex-1 items-center justify-end md:justify-between">

View File

@ -75,6 +75,7 @@
<div class="sm:shrink-0">
<img
src="https://app.yunohost.org/default/v3/logos/{{ infos['logo_hash'] }}.png"
loading="lazy"
class="h-16 w-16 rounded-lg object-cover shadow-sm mt-1"
/>
</div>

View File

@ -3,7 +3,7 @@
{% set locale = 'en' %}
<div class="mx-auto w-full text-center p-8">
<img src="https://raw.githubusercontent.com/YunoHost/doc/master/images/ynh_logo_black.svg" class="w-32 mx-auto" />
<img src="{{ url_for('static', filename='ynh_logo_black.svg') }}" class="w-32 mx-auto" />
<h2 class="text-2xl font-bold text-gray-900">
Application Store
</h2>