Skip to content

Commit b1ff3e6

Browse files
committed
added twitter account
1 parent 7ca21f1 commit b1ff3e6

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

data/supporters.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"city": "Berlin",
66
"country": "Germany",
77
"link": "http://www.rug-b.de",
8+
"twitter": "rug_b",
89
"contacts": [
910
{
1011
"name": "Tobias Pfeiffer",

source/index.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<div class="user group">
1414
<span class="supporters--item-location"><%= supporter.city %>/<%= supporter.country %></span>
1515
<%= link_to supporter.link.sub(%r(https?://), ''), supporter.link, class: 'supporters--item-link' %>
16+
<%= link_to('@' + supporter.twitter, 'https://twitter.com/' + supporter.twitter, class: 'supporters--item-link') unless supporter.twitter.empty? %>
1617
</div>
1718
<ul class="supporters--contacts">
1819
<% supporter.contacts.each do |contact| %>

source/stylesheets/style.css.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@
114114
.supporters--item-link {
115115
color: #333;
116116
margin-left: 0.5rem;
117+
text-decoration: none;
118+
119+
&:hover {
120+
color: #777;
121+
}
117122
}
118123

119124
.supporters--contacts {

0 commit comments

Comments
 (0)