server config
This commit is contained in:
@@ -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'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|||||||
2
app/assets/javascripts/jquery-3.4.0.min.js
vendored
Normal file
2
app/assets/javascripts/jquery-3.4.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
9
app/assets/javascripts/masonry.pkgd.min.js
vendored
Normal file
9
app/assets/javascripts/masonry.pkgd.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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á!"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
9
masonry.pkgd.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user