Skip to content

Commit 54767dc

Browse files
committed
Overhaul homepage to use Fomantic-UI.
1 parent 039988f commit 54767dc

File tree

4 files changed

+220
-341
lines changed

4 files changed

+220
-341
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<div class="card">
2+
<div class="content">
3+
<div class="header"><h3>{% if language %}{{ language | split: ',' | join: ' / ' }}{% else %}{{ applicationCategory }}{% endif %}</h3></div>
4+
<div class="description">
5+
<div class="ui selection list">
6+
{% if language %}
7+
{% assign languages = language | split: ',' %}
8+
{% assign langExp = nil %}
9+
{% for lang in languages %}
10+
{% assign prefixed = lang | prepend: "imp.language contains '" | append: "'" %}
11+
{% assign langExp = langExp | concat: prefixed %}
12+
{% endfor %}
13+
{% assign expression = langExp | join: ' or ' %}
14+
{% assign imps = implementations | where_exp: 'imp', expression | where_exp: 'imp', 'imp.applicationCategory != "CLI"' %}
15+
{% else %}
16+
{% assign imps = implementations | where: 'applicationCategory', applicationCategory %}
17+
{% endif %}
18+
{% for implementation in imps %}
19+
{% include 'implementation-item' %}
20+
{% endfor %}
21+
</div>
22+
</div>
23+
</div>
24+
</div>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<li typeof="schema:SoftwareSourceCode">
1+
<div class="item" typeof="schema:SoftwareSourceCode">
22
<a property="schema:codeRepository" href="{{ implementation.repo }}">
33
<span property="schema:name">{{ implementation.name }}</span>
4-
<span class="badge{% unless implementation.state == 'InProgress' %}{% if implementation.jsonldVersion == 1.1 %} badge-success{% else %} badge-info{% endif %}{% endunless %}">
4+
<span class="ui label{% unless implementation.state == 'InProgress' %}{% if implementation.jsonldVersion == 1.1 %} green{% else %} blue{% endif %}{% endunless %}">
55
{%- if implementation.jsonldVersion == 1.0 -%}
66
1.0
77
{%- else -%}
88
{{ implementation.jsonldVersion }}{% if implementation.state == 'InProgress' %} (<abbr title="Work In Progress">WIP</abbr>){% endif %}
99
{%- endif -%}
1010
</span>
1111
</a>
12-
</li>
12+
</div>

_layouts/fomantic.liquid

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@
2121
<style>
2222
/* fomantic overrides */
2323
html { scroll-padding-top: 5em; }
24+
body { background-color: #f7f7f7; }
2425
.ui.main.container { margin-top: 7em; }
2526
.ui.top.menu .header.item { border: none !important; padding-left: 0; }
2627
.ui.top.menu .header.item > span { font-size: 150%; }
2728
.ui.top.menu .header.item > img { margin-right: 1rem; }
29+
.ui.basic.masthead.segment { padding: 5em 0 3em; background: white; box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2), -1px -1px 0 rgba(0, 0, 0, 0.1) }
30+
.ui.basic.masthead.segment + .ui.main.container { margin-top: 3em; }
31+
pre.ui.segment { overflow-x: auto; }
2832
.ui.fitted.tab.segment > .ui.table { border-left: 0; border-top: 0; border-right: 0; margin-top: 0; }
2933
.ui.table th:empty { display: none; }
3034
.ui.basic.footer.segment { border-top: 1px solid rgba(34,36,38,.15); margin-top: 4em; padding-top: 2em; }
@@ -48,7 +52,7 @@
4852

4953
<body>
5054
<div class="ui top fixed menu">
51-
<div class="ui container">
55+
<div class="ui wide container">
5256
<!-- Brand -->
5357
<a class="header item" href="/">
5458
<img src="/images/json-ld-data-24.png" alt="JSON-LD logo">
@@ -101,7 +105,14 @@
101105
</div>
102106
</div>
103107

104-
<div class="ui main container">
108+
{% if masthead %}
109+
<div class="ui basic center aligned massive masthead segment">
110+
<h1 class="ui massive header">{{ masthead.title }}</h1>
111+
<p>{{ masthead.subtitle }}</p>
112+
</div>
113+
{% endif %}
114+
115+
<div class="ui main wide container">
105116
{{ content }}
106117
</div>
107118

0 commit comments

Comments
 (0)