Skip to content

Commit b6b300c

Browse files
Add project logos
1 parent 7d93df1 commit b6b300c

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

_data/projects.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
- name: Language
22
projects:
33
- name: Scala.js
4+
logo: /resources/img/scala-js-dark.png
45
web: https://github.com/scala-js/scala-js
56
github: https://github.com/scala-js/scala-js
67
origin: null
@@ -14,6 +15,8 @@
1415
start_year: 2018
1516
end_year: null
1617
- name: Scala Native
18+
logo: /resources/img/scala-native.webp
19+
force_name_display: true
1720
web: https://github.com/scala-native/scala-native
1821
github: https://github.com/scala-native/scala-native
1922
origin: null
@@ -97,6 +100,7 @@
97100
- name: Tooling
98101
projects:
99102
- name: Scaladex
103+
logo: /resources/img/scaladex-dark.png
100104
web: https://github.com/scalacenter/scaladex
101105
github: https://github.com/scalacenter/scaladex
102106
origin: null
@@ -122,6 +126,8 @@
122126
start_year: 2017
123127
end_year: 2017
124128
- name: Metals
129+
logo: /resources/img/metals@2x.png
130+
invert_logo_colors: true
125131
web: https://github.com/scalameta/metals
126132
github: https://github.com/scalameta/metals
127133
origin: null
@@ -151,6 +157,8 @@
151157
start_year: 2017
152158
end_year: 2018
153159
- name: Scalafix
160+
logo: /resources/img/scalafix@2x.png
161+
invert_logo_colors: true
154162
web: https://github.com/scalacenter/scalafix
155163
github: https://github.com/scalacenter/scalafix
156164
origin: null
@@ -165,6 +173,8 @@
165173
start_year: 2016
166174
end_year: 2018
167175
- name: Scastie
176+
logo: /resources/img/scastie.png
177+
invert_logo_colors: true
168178
web: https://github.com/ScalaCenter/scastie
169179
github: https://github.com/ScalaCenter/scastie
170180
origin: null
@@ -202,6 +212,8 @@
202212
start_year: 2017
203213
end_year: 2017
204214
- name: bloop
215+
logo: /records/first-five-years/img/logos/logo-bloop.png
216+
force_name_display: true
205217
web: https://github.com/scalacenter/bloop
206218
github: https://github.com/scalacenter/bloop
207219
origin: null

_includes/project-block.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
<div class="project">
44
<div class="header" data-title="{{ project.name }}">
55
{% if project.logo %}
6-
<img class="project-logo" src="{{ project.logo }}" alt="{{ project.name }}"/>
7-
{% else %}
6+
<img class="project-logo {% if project.invert_logo_colors %}project-logo-inverted{% endif %}" src="{{ project.logo }}" alt="{{ project.name }}"/>
7+
{% endif %}
8+
{% if project.logo == null or project.force_name_display %}
89
<h3>{{ project.name }}</h3>
910
{% endif %}
1011
<div class="references">

resources/css/main.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,3 +1585,7 @@ ul.nav {
15851585
// Align right
15861586
text-align: right;
15871587
}
1588+
1589+
.project-logo-inverted {
1590+
filter: invert(100%);
1591+
}

resources/img/scala-native.webp

81.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)