parent
45a96e899e
commit
e63aebff7a
After Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 1.3 MiB |
@ -0,0 +1,3 @@ |
||||
# Place all the behaviors and hooks related to the matching controller here. |
||||
# All this logic will automatically be available in application.js. |
||||
# You can use CoffeeScript in this file: http://coffeescript.org/ |
@ -0,0 +1,41 @@ |
||||
@import url(https://fonts.googleapis.com/css?family=Montserrat); |
||||
@import url(https://fonts.googleapis.com/css?family=Judson); |
||||
|
||||
.about-body { |
||||
.wrapper { |
||||
width: 600px; |
||||
margin: 0 auto; |
||||
color: #9baec8; |
||||
padding-top: 200px; |
||||
} |
||||
|
||||
h1 { |
||||
font: 46px/52px 'Roboto', sans-serif; |
||||
font-weight: 600; |
||||
margin-bottom: 20px; |
||||
color: #2b90d9; |
||||
padding: 20px 0; |
||||
|
||||
img { |
||||
margin-bottom: -5px; |
||||
margin-right: 5px; |
||||
width: 46px; |
||||
height: 46px; |
||||
} |
||||
} |
||||
|
||||
p { |
||||
font: 20px/28px 'Judson', sans-serif; |
||||
font-weight: 300; |
||||
margin-bottom: 26px; |
||||
} |
||||
|
||||
em { |
||||
display: inline-block; |
||||
padding: 7px 7px 5px 7px; |
||||
background: #9baec8; |
||||
color: #282c37; |
||||
font: 16px/16px 'Montserrat', sans-serif; |
||||
font-weight: 300; |
||||
} |
||||
} |
@ -0,0 +1,5 @@ |
||||
class AboutController < ApplicationController |
||||
def index |
||||
@body_classes = 'about-body' |
||||
end |
||||
end |
@ -0,0 +1,2 @@ |
||||
module AboutHelper |
||||
end |
@ -0,0 +1,19 @@ |
||||
.wrapper |
||||
%h1 |
||||
= image_tag 'logo.png' |
||||
Mastodon |
||||
|
||||
%p |
||||
Mastodon is a |
||||
%em free, open-source |
||||
social network server. A |
||||
%em decentralized |
||||
alternative to commercial platforms, it avoids the risks of a single company monopolizing your communication. Anyone can run Mastodon and participate in the |
||||
%em social network |
||||
seamlessly. |
||||
%p |
||||
%em= Rails.configuration.x.local_domain |
||||
is a Mastodon instance. |
||||
|
||||
.actions |
||||
= link_to 'Get started', new_user_session_path, class: 'button' |
@ -0,0 +1,12 @@ |
||||
require 'rails_helper' |
||||
|
||||
RSpec.describe AboutController, type: :controller do |
||||
|
||||
describe "GET #index" do |
||||
it "returns http success" do |
||||
get :index |
||||
expect(response).to have_http_status(:success) |
||||
end |
||||
end |
||||
|
||||
end |
@ -0,0 +1,5 @@ |
||||
require 'rails_helper' |
||||
|
||||
RSpec.describe AboutHelper, type: :helper do |
||||
|
||||
end |
Loading…
Reference in new issue