Skip to content

Commit

Permalink
Merge pull request columbusrb#34 from columbusrb/ruby-companies
Browse files Browse the repository at this point in the history
Ruby companies
  • Loading branch information
belongstorachel committed Oct 6, 2017
2 parents ae1d74c + afbe1eb commit edce03e
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 9 deletions.
24 changes: 17 additions & 7 deletions app/assets/stylesheets/application.css.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ img {
}

a {
text-decoration: none;
text-decoration: underline;
text-decoration-style: dashed;
text-decoration-line: underline;
color: $links;
text-shadow: 0px 0px 20px $white;
}

#content {
Expand Down Expand Up @@ -207,11 +208,7 @@ a {
}
}

#what {
@include span-columns(6 of 12);
}

#crb-labs {
#what, #crb-labs {
@include span-columns(6 of 12);
}

Expand Down Expand Up @@ -332,3 +329,16 @@ a {
}

}

table {
width: 100%;
background: hsla(0, 0%, 100%, 0.5);
color: black;
thead {
text-align: left;
}

tr {
border-bottom: 1px solid white;
}
}
1 change: 0 additions & 1 deletion app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ def now
@next_crb = Meeting.next_crb
@board_members = BoardMember.all.order(director: :desc, title: :asc)
end

end
27 changes: 27 additions & 0 deletions app/views/pages/now.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,33 @@ section
[2]:http://ruby-lang.org
[3]:http://rubyonrails.com

section
#who-uses-ruby
h4 Who's using Ruby?

markdown:
Have you ever wondered who's using Ruby in Columbus?
Want to find Ruby developers who want to work at your company?
Want to get your company on the list? [Put in a Pull Request here!][1]

[1]:http://github.com/columbusrb/columbusrb.com

table
thead
tr
th Name
th Url
th Market
th Location
tbody
- COMPANIES.each do |company|
tr
td = company.name
td = company.url
td = company.market
td = company.location




section
Expand Down
18 changes: 18 additions & 0 deletions config/initializers/companies.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class Company
attr_reader :name, :url, :market, :location, :team_size, :other_tech

def initialize(name:, url:, market:, location:, team_size:, other_tech:)
@name = name
@url = url
@market = market
@location = location
@team_size = team_size
@other_tech = other_tech
end
end

company_file = Rails.root.join("public").join("companies.yml")
COMPANIES = YAML.load_file(company_file).map do |company|
Company.new(**company.symbolize_keys)
end

2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
root to: "pages#now"

get 'feedback' => redirect("https://www.surveymonkey.com/r/JB9JX8X")

get '/companies', to: "pages#companies"
end
8 changes: 7 additions & 1 deletion public/companies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
location: Downtown Columbus
team_size: Large
other_tech: PHP, Python
ruby_role: Web apps (GUI & API), backend systems

- name: Mutually Human
url: https://www.mutuallyhuman.com
market: Consulting
location: Downtown Columbus
team_size: Small
other_tech: Javascript, iOS

0 comments on commit edce03e

Please sign in to comment.