Skip to content

Commit 3e8ff2b

Browse files
committed
Show contributors on main page.
- static list of contributor avatars from data/contributors.json - update script in bin/contributors One could imagine calling this script on each deploy. Closes #238
1 parent 22b9561 commit 3e8ff2b

File tree

6 files changed

+644
-1
lines changed

6 files changed

+644
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
URL=https://api.github.com/repos/RailsEventStore/rails_event_store/contributors
4+
curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET $URL > data/contributors.json

railseventstore.org/data/contributors.json

Lines changed: 602 additions & 0 deletions
Large diffs are not rendered by default.

railseventstore.org/source/index.html.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Benefits
2+
13
Rails Event Store (RES) is a library for publishing, consuming, storing and retrieving events. It's your best companion for going with an event-driven architecture for your Rails application.
24

35
You can use it:
@@ -12,4 +14,4 @@ You can use it:
1214
<li>to build an audit-log</li>
1315
<li>to create read-models</li>
1416
<li>to implement event-sourcing</li>
15-
</ul>
17+
</ul>

railseventstore.org/source/layouts/landing.erb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88
<main class="frame__body" role="main">
99
<div class="container u-text-padding">
1010
<%= yield %>
11+
12+
<div class="contributors">
13+
<h1 class="contributors__title">Contributors</h2>
14+
<ul class="contributors__list">
15+
<% data.contributors.each do |contributor| %>
16+
<li class="contributors__contributor">
17+
<a href="<%= contributor.html_url %>">
18+
<img class="contributor__avatar" src="<%= contributor.avatar_url %>" />
19+
</a>
20+
</li>
21+
<% end %>
22+
</ul>
23+
</div>
1124
</div>
1225
</main>
1326
<% end %>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.contributors {
2+
}
3+
4+
.contributors__list {
5+
display: flex;
6+
flex-direction: row;
7+
flex-wrap: wrap;
8+
list-style-type: none;
9+
padding: 0;
10+
margin: 0 -10px;
11+
}
12+
13+
.contributors__contributor {
14+
width: 80px;
15+
height: 80px;
16+
margin: 8px;
17+
}
18+
19+
.contributor__avatar {
20+
border-radius: 5px;
21+
}

railseventstore.org/source/stylesheets/site.css.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
@import "components/navigation";
1919
@import "components/section";
2020
@import "components/hero";
21+
@import "components/contributors";
2122

2223
@import "utilities/flex";
2324
@import "utilities/spacing";

0 commit comments

Comments
 (0)