forked from elementary/appcenter-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (80 loc) · 3.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
layout: default
color:
primary: "#4c158a"
primary-text: "#fff"
---
{% assign flatpak_apps = site.apps | where:"dist","flatpak" | sort_natural: 'title' %}
<div class="home main constrain">
<h1>AppCenter</h1>
<h2>Made for elementary OS</h2>
<p>Get these {{ flatpak_apps | size }} curated apps and more on elementary AppCenter, the open, pay-what-you-can app store for indie developers. Each is open source and has been reviewed and curated by elementary to ensure a native, privacy-respecting, and secure experience.</p>
</div>
<div class="home apps">
{% for app in flatpak_apps %}
{% assign id = app.id | remove: '/' %}
<a class="app button {{app.dist}}" href="{{site.baseurl}}/{{app.slug}}" title="{{app.summary}}" id="{{id}}" tabindex="0">
<img width="64" height="64"
{% for icon in app.icons %}
{% if icon[0] == "64@2" %}
srcset="{{icon[1]}} 2x"
{% elsif icon[0] == "128" %}
srcset="{{icon[1]}}"
{% elsif icon[0] == "64" %}
srcset="{{icon[1]}}"
{% endif %}
{% endfor %}
src="https://cdn.rawgit.com/elementary/icons/c048cf1bdf9d7735638c1cfe1eea64831e46c83f/apps/64/application-default-icon.svg"
alt="{{app.title}} icon" />
<span class="title">{{ app.title }}</span>
<span class="summary">{{ app.summary }}</span>
</a>
<style>
.app[id="{{id}}"]:hover,.app[id="{{id}}"]:focus {
background-color: {% if app.color.primary != "((color_primary))" %}{{app.color.primary}}{% else %}{{site.color.primary}}{% endif %};
color: {% if app.color.primary-text != "((color_text))" %}{{app.color.primary-text}}{% else %}{{site.color.primary-text}}{% endif %};
}
</style>
{% endfor %}
</div>
{% assign loki_apps = site.apps | where:"dist","loki" | sort_natural: 'title' %}
{% assign hera_apps = site.apps | where:"dist","hera" | sort_natural: 'title' %}
{% assign legacy_apps = hera_apps | concat: loki_apps %}
<div class="home main constrain">
<h3>Legacy Apps</h3>
<p>These {{ legacy_apps | size }} apps were released for a previous version of elementary OS and are not yet available in AppCenter on elementary OS 6. Contact their developers to ask them to port their apps to OS 6.</p>
</div>
<div class="home apps">
{% for app in legacy_apps %}
{% assign id = app.id | remove: '/' %}
<a class="app button {{app.dist}}" href="{{site.baseurl}}/{{app.slug}}" title="{{app.summary}}" id="{{id}}">
{% if app.screenshots %}
<img
{% for icon in app.icons %}
{% if icon[0] == "64@2" %}
srcset="{{icon[1]}} 2x"
{% elsif icon[0] == "64" %}
src="{{icon[1]}}"
{% endif %}
{% endfor %}
alt="{{app.title}} icon" />
{% else %}
<img src="https://cdn.rawgit.com/elementary/icons/c048cf1bdf9d7735638c1cfe1eea64831e46c83f/apps/64/application-default-icon.svg" alt="No icon" />
{% endif %}
<span class="title">{{app.title}}</span>
<span class="summary">{{app.summary}}</span>
</a>
<style>
.app[id="{{id}}"]:hover {
background-color: {% if app.color.primary != "((color_primary))" %}{{app.color.primary}}{% else %}{{site.color.primary}}{% endif %};
color: {% if app.color.primary-text != "((color_text))" %}{{app.color.primary-text}}{% else %}{{site.color.primary-text}}{% endif %};
}
</style>
{% endfor %}
</div>
<footer>
<div class="constrain">
<a class="button" href="https://developer.elementary.io" target="_blank">Publish on AppCenter</a>
<a class="button" href="https://elementary.io/" target="_blank">Get elementary OS</a>
</div>
</footer>