Add the “Numbers” part of the landing page
This commit is contained in:
parent
4b2baa25b7
commit
f604ccb7d6
3 changed files with 57 additions and 1 deletions
|
@ -143,3 +143,32 @@ $quote-count: 2;
|
||||||
.quote-author-name {
|
.quote-author-name {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.numbers-panel {
|
||||||
|
background-color: $light-grey;
|
||||||
|
}
|
||||||
|
|
||||||
|
.numbers {
|
||||||
|
@extend %horizontal-list;
|
||||||
|
}
|
||||||
|
|
||||||
|
$number-width: 320px;
|
||||||
|
$number-count: 3;
|
||||||
|
|
||||||
|
.number {
|
||||||
|
@extend %horizontal-list-item;
|
||||||
|
width: $number-width;
|
||||||
|
margin-right: calc((#{$page-width} - (#{$number-width} * #{$number-count}))/ (#{$number-count} - 1));
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.number-value {
|
||||||
|
color: $blue;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 36px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.number-label {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
|
@ -74,3 +74,30 @@
|
||||||
%br
|
%br
|
||||||
Chef de bureau, DRIEA Ile-de-France
|
Chef de bureau, DRIEA Ile-de-France
|
||||||
.clearfix
|
.clearfix
|
||||||
|
|
||||||
|
- cache "numbers-panel", :expires_in => 3.hours do
|
||||||
|
.landing-panel.numbers-panel
|
||||||
|
.landing-panel-inner-content
|
||||||
|
%h2.landing-panel-title TPS en chiffres
|
||||||
|
%ul.numbers
|
||||||
|
%li.number
|
||||||
|
.number-value
|
||||||
|
= number_with_delimiter(Procedure.where(:published => true).count, :locale => :fr)
|
||||||
|
.number-label<
|
||||||
|
procédures
|
||||||
|
%br<>
|
||||||
|
dématérialisées
|
||||||
|
%li.number
|
||||||
|
.number-value
|
||||||
|
= number_with_delimiter(Dossier.where.not(:state => :draft).count, :locale => :fr)
|
||||||
|
.number-label<
|
||||||
|
dossiers
|
||||||
|
%br<>
|
||||||
|
déposés
|
||||||
|
%li.number
|
||||||
|
.number-value
|
||||||
|
= "#{number_with_delimiter(50, :locale => :fr)} %"
|
||||||
|
.number-label<
|
||||||
|
de réduction
|
||||||
|
%br<>
|
||||||
|
des délais de traitement
|
||||||
|
|
|
@ -55,7 +55,7 @@ Rails.application.configure do
|
||||||
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
||||||
|
|
||||||
# Use a different cache store in production.
|
# Use a different cache store in production.
|
||||||
# config.cache_store = :mem_cache_store
|
config.cache_store = :memory_store
|
||||||
|
|
||||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||||
# config.action_controller.asset_host = 'http://assets.example.com'
|
# config.action_controller.asset_host = 'http://assets.example.com'
|
||||||
|
|
Loading…
Reference in a new issue