Skip to content

Commit

Permalink
fix design radius to main
Browse files Browse the repository at this point in the history
  • Loading branch information
pollseed committed Sep 12, 2015
1 parent 4e00700 commit 828bc30
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 28 deletions.
13 changes: 10 additions & 3 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
*= require_self
*/

.main_div {
background-color: #fff;
border-radius: 30px 30px 30px 30px;
}

.main_application {
position: absolute;
top: 8px;
Expand All @@ -22,9 +27,7 @@
right: 8px;

overflow: scroll;

background-color: #fff;
border-radius: 8px 8px 8px 8px;
background-color: #888;
}

.header_layout {
Expand All @@ -37,3 +40,7 @@
margin-right: 10px;
float: right;
}

.main_footer {
padding-top: 30px;
}
3 changes: 2 additions & 1 deletion app/assets/stylesheets/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
width: 90vw;
margin-top: 20px;
position: relative;
margin-left: -20px;
}

.br:before {
Expand All @@ -29,5 +30,5 @@
}

.landing_img {
padding-right: 70px;
border-radius: 30px 30px 30px 30px;
}
51 changes: 27 additions & 24 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,36 @@
<%= csrf_meta_tags %>
</head>
<body class="main_application">
<div class="main_div">

<header>
<span class="header_layout">
<%= link_to image_tag("main_logo.png"), root_path %>
</span>
<!-- user_signed_in? はユーザがログインしているか調べるdeviseのHelperメソッド -->
<% if user_signed_in? %>
<!-- current_user は現在ログインしているUserオブジェクトを返すdeviseのHelperメソッド -->
<!-- *_path はUserモデルを作成したときに、
deviseにより自動で作成されてますので、rake routesで確認できます -->
Logged in as <strong><%=link_to current_user.username, bots_path(current_user.username)%></strong>
<%= link_to 'プロフィール変更', edit_user_registration_path(current_user.username) %> |
<%= link_to "ログアウト", destroy_user_session_path, method: :delete %>
<% else %>
<%= link_to image_tag("signin_with_twitter_logo.png", :size => "188x30", :class => "twitter_layout"), user_omniauth_authorize_path(:twitter) %>
<% end %>
</header>
<div class="container">
<header>
<span class="header_layout">
<%= link_to image_tag("main_logo.png"), root_path %>
</span>
<!-- user_signed_in? はユーザがログインしているか調べるdeviseのHelperメソッド -->
<% if user_signed_in? %>
<!-- current_user は現在ログインしているUserオブジェクトを返すdeviseのHelperメソッド -->
<!-- *_path はUserモデルを作成したときに、
deviseにより自動で作成されてますので、rake routesで確認できます -->
Logged in as <strong><%=link_to current_user.username, bots_path(current_user.username)%></strong>
<%= link_to 'プロフィール変更', edit_user_registration_path(current_user.username) %> |
<%= link_to "ログアウト", destroy_user_session_path, method: :delete %>
<% else %>
<%= link_to image_tag("signin_with_twitter_logo.png", :size => "188x30", :class => "twitter_layout"), user_omniauth_authorize_path(:twitter) %>
<% end %>
</header>
<div class="container">

<%= yield %>
<%= yield %>

</div>
</div>

<footer align="center" class="main_footer">
<nav>
<p>&copy; <%= Time.now.year %> All Rights Reserved.</p>
</nav>
</footer>

<footer align="center">
<nav>
<p>&copy; <%= Time.now.year %> All Rights Reserved.</p>
</nav>
</footer>
</div>
</body>
</html>

0 comments on commit 828bc30

Please sign in to comment.