-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
148 lines (134 loc) · 6.34 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
---
layout: default
permalink: /
---
{% assign libs = site.data.open-sources-libs %}
{% assign allThemes = '' %}
{% assign allProjects = '' %}
{% for item in libs %}
{% assign item_themes = item.Theme | split: ", "%}
{% assign item_projects = item.Project | split: ", "%}
{% for theme in item_themes %}
{% capture currentTheme%}{{ theme | strip | replace: ' ', '-' }}, {% endcapture %}
{% assign allThemes = allThemes | append: currentTheme %}
{% endfor %}
{% for project in item_projects %}
{% capture currentProject%}{{ project | strip | replace: ' ', '-' }}, {% endcapture %}
{% assign allProjects = allProjects | append: currentProject %}
{% endfor %}
{% endfor %}
<link rel="stylesheet" href="{{'/css/main.css' | absolute_url }}">
<section class="pb-5 pb-xxl-8 lib-wrap">
<div class="container" style="max-width: 1010px">
<div class="row justify-content-center mb-3 filter-bar pt-md-7 pt-5">
<div class="col-lg-4 col-md-6 mb-3 mb-md-4 lib-item">
<div class="input-group bg-light">
<div class="input-group-prepend">
<div class="input-group-text bg-light pr-3">
<img src="{{'/img/search.svg' | absolute_url }}" width="14" height="14" alt="">
</div>
</div>
<input
id="searchInput"
class="form-control pl-0"
type="search"
placeholder="Search by name..."
aria-label="Search"
oninput="filterByThemeProj()"
>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-3 mb-md-4 lib-item">
<!-- <label for="disabledSelect" class="form-label">Disabled select menu</label> -->
<select id="allThemes" data-current="all"
onchange="filterByThemeProj()"
class="custom-select bg-light">
<option value="all">All Themes</option>
{% assign uniqueThemes = allThemes | split: ', ' | uniq %}
{% for item in uniqueThemes %}
<option value="theme-{{item}}">{{item | replace: '-', ' ' | capitalize}}</option>
{% endfor %}
</select>
<button id="clearTheme" type="button" class="d-none mt-2 badge-pill btn btn-light btn-sm rounded-full" onclick="resetTheme()">
Time series <span class="text-danger">×</span>
</button>
</div>
<div class="col-lg-4 col-md-6 mb-3 mb-md-4 lib-item">
<!-- <label for="disabledSelect" class="form-label">Disabled select menu</label> -->
<select id="allProjects" data-current="all"
class="custom-select bg-light capitalize"
onchange="filterByThemeProj()"
>
<option value="all">All Projects</option>
{% assign uniqueProjects = allProjects | split: ', ' | uniq %}
{% for item in uniqueProjects %}
<option value="project-{{item}}">{{item | replace: '-', ' ' | capitalize}}</option>
{% endfor %}
</select>
<button id="clearProject" type="button" class="d-none mt-2 badge-pill btn btn-light btn-sm rounded-full" onclick="resetProject()">
Sdv <span class="text-danger">×</span>
</button>
</div>
</div>
<div class="row justify-content-center justify-content-lg-start" id="libWarp">
{% assign libs = site.data.open-sources-libs | sort_natural: "Library_name" %}
{% for item in libs %}
{% assign item_themes = item.Theme | split: ","%}
{% assign item_projects = item.Project | split: ","%}
{% assign currentThemes = '' %}
{% assign currentProjects = '' %}
{% for theme in item_themes %}
{% capture currentTheme%}theme-{{ theme | strip | replace: ' ', '-' }} {% endcapture %}
{% assign currentThemes = currentThemes | append: currentTheme %}
{% endfor %}
{% for project in item_projects %}
{% capture currentProject%}project-{{ project | strip | replace: ' ', '-' }} {% endcapture %}
{% assign currentProjects = currentProjects | append: currentProject %}
{% endfor %}
<div class="col-lg-4 col-md-6 mb-3 mb-md-4 lib-item {{currentThemes}} {{currentProjects}}">
<div class="card h-100 rounded-0 card-shadow">
<div class="card-body pb-0 px-4 pt-4">
<a href="{{ item.Github_Link }}" class="hoverable-i text-secondary">
<img src="img/{{ item.image_name }}.svg" alt="{{ item.Library_name }}" style="width: 40px; height: 40px;">
<p class="text-20 mt-3 mb-4 font-weight-normal lib-name">{{ item.Library_name }}</p>
</a>
<p class="font-weight-light text-14 mb-2 github-desc">{{ item.Text_in_it }}</p>
</div>
<div class="card-footer border-0 bg-transparent pt-0 px-4">
<p class="github-topics text-10 mb-2" style="min-height: 50px;" data-owner="{{ item.github_owner }}" data-repo="{{ item.github_repo }}">
</p>
<p class="mb-4" style="min-height: 50px;">
{% for badge in item.badges %}
<a href="{{ badge.url }}">
<img src="{{ badge.image }}"
alt="{{badge.name}}">
</a>
{% endfor %}
</p>
<p class="mb-2">
<a href="{{ item.Github_Link }}" class="mr-3 hoverable-i">
<img width="17" height="17" src="{{'/img/Github.svg' | relative_url }}" alt="{{ item.Library_name }} Github repository">
</a>
{% if item.docs_link != '' %}
<a href="{{ item.docs_link }}" class="mr-3 hoverable-i">
<img width="17" height="17" src="{{'/img/Docs.svg' | relative_url }}" alt="{{ item.Library_name }} Documentation">
</a>
{% endif %}
{% if item.slack_link != '' %}
<a href="{{ item.slack_link }}" class="mr-3 hoverable-i">
<img width="17" height="17" src="{{'/img/Slack.svg' | relative_url }}" alt="{{ item.Library_name }} Documentation">
</a>
{% endif %}
</p>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="row justify-content-center d-none" id="notFound">
<p class="text-center bold">
No results found
</p>
</div>
</div>
</section>