server config

This commit is contained in:
polo
2019-05-30 17:09:24 +00:00
12 changed files with 76 additions and 15 deletions

View File

@@ -11,3 +11,11 @@
// about supported directives. // about supported directives.
// //
//= require_tree . //= require_tree .
$(document).ready(function(){
var msnry = new Masonry( '#infos', {
columnWidth: 180,
itemSelector: '.card'
});
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -8,7 +8,35 @@ a {
color:black; color:black;
} }
a:hover{ p:hover{
background-color: black; background-color: green;
color: white; }
.card:hover{
background-color: green;
}
.card{
color: black;
width: 200px;
float: left;
border: 2px solid green;
margin: 10px;
padding: 25px;
font-size: 22px;
text-align: center;
box-shadow: 8px 8px 3px #1a54027a;
}
.date{
font-size: 14px;
color: gray;
padding-top: 15px
}
#nav{
display: inline-block;
width: 100%;
text-align: center;
padding: 10px;
font-size: 19px
} }

View File

@@ -1,4 +1,4 @@
class Informativo < ApplicationRecord class Informativo < ApplicationRecord
self.table_name = "informativo" self.table_name = "informativo"
paginates_per 10 # paginates_per 10
end end

View File

@@ -7,6 +7,8 @@
= csp_meta_tag = csp_meta_tag
= stylesheet_link_tag "https://fonts.googleapis.com/css?family=Inconsolata&display=swap" = stylesheet_link_tag "https://fonts.googleapis.com/css?family=Inconsolata&display=swap"
= stylesheet_link_tag 'application', media: 'all' = stylesheet_link_tag 'application', media: 'all'
= javascript_include_tag 'application'
%body %body
%h1= "Ambiente Já!" %h1= "Ambiente Já!"

View File

@@ -1,5 +1,10 @@
%h3= "#{@informativos.count} informativos" %h3= "#{@informativos.count} informativos"
- @informativos.each do |i|
%p= link_to "#{i.data_inc} > #{i.titulo}", "/informativo/#{i.id}"
#infos
- @informativos.each do |i|
.card
%span.link= link_to i.titulo, CGI.unescapeHTML("/informativo/#{i.id}")
.date= "#{i.data_inc}"
#nav
= will_paginate @informativos = will_paginate @informativos

View File

@@ -2,8 +2,6 @@ Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests. # Code is not reloaded between requests.
config.cache_classes = true
config.serve_static_assets = true
config.public_file_server.enabled = true config.public_file_server.enabled = true
# Eager load code on boot. This eager loads most of Rails and # Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers # your application in memory, allowing both threaded web servers

9
masonry.pkgd.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File