Skip to content

Commit

Permalink
add layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
topcook committed Aug 23, 2022
1 parent fc9059b commit b5478b5
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
65 changes: 65 additions & 0 deletions app/assets/stylesheets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
body {
font-family: Helvetica, Geneva, Arial, sans-serif;
font-size: small;
font-color: #000;
background-color: #fff;
}

a:link, a:active, a:visited {
color: #CD0000;
}

input {
margin-bottom: 5px;
}

p {
line-height: 150%;
}

div#container {
width: 760px;
margin: 0 auto;
}

div#header {
text-align: center;
padding-bottom: 15px;
}

div#content {
float: left;
width: 450px;
padding: 10px;
}

div#content h3 {
margin-top: 15px;
}

ul#books {
list-style-type: none;
}

ul#books li {
line-height: 140%;
}

div#sidebar {
width: 200px;
margin-left: 480px;
}

ul#subjects {
width: 700px;
text-align: center;
padding: 5px;
background-color: #ececec;
border: 1px solid #ccc;
margin-bottom: 20px;
}

ul#subjects li {
display: inline;
padding-left: 5px;
}
1 change: 1 addition & 0 deletions app/controllers/book_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class BookController < ApplicationController
layout 'standard'
def list
@books = Book.all
end
Expand Down

0 comments on commit b5478b5

Please sign in to comment.