From 3da8f89d3cb35be4dd7bdbdbf086428d116fcbdc Mon Sep 17 00:00:00 2001
From: Mathieu Jaumotte
Date: Sat, 20 Mar 2021 23:30:29 +0100
Subject: [PATCH] bootstrap footer and homepage
---
.../public/modules/bootstrap/_custom.scss | 67 ++++++++++++++++---
.../modules/bootstrap/custom/_variables.scss | 18 ++---
.../Resources/views/Layout/_footer.html.twig | 2 +-
.../Resources/views/layout.html.twig | 14 ++--
.../Widget/homepage_add_a_person.html.twig | 4 +-
5 files changed, 76 insertions(+), 29 deletions(-)
diff --git a/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/_custom.scss b/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/_custom.scss
index 47a769752..3bedae2be 100644
--- a/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/_custom.scss
+++ b/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/_custom.scss
@@ -2,19 +2,15 @@
* These custom styles will override bootstrap enabled stylesheets
*/
-
-// hack hérité de scratch: contraindre le footer en bas de page
-.container-fluid::after {
- content: "";
- display: table;
- clear: both;
- border-spacing: 0;
-}
-
h1, h2, .h1, .h2 {
font-weight: $headings-font-weight + 200;
}
+html, body {
+ min-height: 100%;
+ height: 100%;
+}
+
nav.navbar {
.navbar-brand {
img {
@@ -23,7 +19,9 @@ nav.navbar {
}
}
.navbar-toggler,
- .navbar-collapse { float: right; }
+ .navbar-collapse {
+ float: right;
+ }
.navbar-nav {
display: flex;
align-items: center;
@@ -35,4 +33,53 @@ nav.navbar {
}
}
}
+}
+
+#content_conainter {
+ position: relative;
+ min-height: calc(100% - 195px);
+
+ &::before {
+ bottom: 0;
+ content: "";
+ left: 0;
+ opacity: .1;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: -1;
+ background-image: url(/build/images/desert.2a25b6fc.jpg);
+ background-attachment: fixed;
+ background-repeat: no-repeat;
+ background-size: cover;
+ background-position: 50%;
+ }
+}
+
+.container-fluid::after {
+ content: "";
+ display: table;
+ clear: both;
+ border-spacing: 0;
+}
+
+.footer {
+ background: $dark;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ width: 100%;
+ p {
+ font-family: Open Sans;
+ font-weight: 300;
+ clear: both;
+ color: #fff;
+ font-size: .9em;
+ line-height: 1.5em;
+ margin: auto;
+ max-width: 35em;
+ text-align: center;
+ a, a:hover {
+ text-decoration: underline;
+ }
+ }
}
\ No newline at end of file
diff --git a/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/custom/_variables.scss b/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/custom/_variables.scss
index 3e353c790..15bfedd3a 100644
--- a/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/custom/_variables.scss
+++ b/src/Bundle/ChillMainBundle/Resources/public/modules/bootstrap/custom/_variables.scss
@@ -11,27 +11,27 @@
$white: #fff !default;
$gray-100: #f8f9fa !default;
-$gray-200: #e9ecef !default;
+$gray-200: #e6e6e6 !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
-$gray-500: #adb5bd !default;
+$gray-500: #b2b2b2 !default;
$gray-600: #6c757d !default;
$gray-700: #495057 !default;
-$gray-800: #343a40 !default;
+$gray-800: #333333 !default;
$gray-900: #212529 !default;
-$black: #000 !default;
+$black: #111 !default;
$grays: () !default;
$grays: map-merge(
(
"100": $gray-100,
- "200": $gray-200, /* ~= $chill-llight-gray, $chill-gray */
+ "200": $gray-200, /* = $chill-llight-gray, $chill-gray */
"300": $gray-300,
"400": $gray-400,
- "500": $gray-500, /* ~= $chill-light-gray */
+ "500": $gray-500, /* = $chill-light-gray */
"600": $gray-600,
"700": $gray-700,
- "800": $gray-800, /* ~= $chill-dark-gray */
+ "800": $gray-800, /* = $chill-dark-gray */
"900": $gray-900
),
$grays
@@ -72,8 +72,8 @@ $colors: map-merge(
$primary: $blue;
$secondary: $gray-600;
$success: $green;
-$info: $gray-300;
-$warning: $yellow;
+$info: $yellow;
+$warning: $orange;
$danger: $red;
$light: $gray-100;
$dark: $gray-800;
diff --git a/src/Bundle/ChillMainBundle/Resources/views/Layout/_footer.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Layout/_footer.html.twig
index 0d23d499d..2a1ed91d1 100644
--- a/src/Bundle/ChillMainBundle/Resources/views/Layout/_footer.html.twig
+++ b/src/Bundle/ChillMainBundle/Resources/views/Layout/_footer.html.twig
@@ -1,4 +1,4 @@
diff --git a/src/Bundle/ChillMainBundle/Resources/views/layout.html.twig b/src/Bundle/ChillMainBundle/Resources/views/layout.html.twig
index 49571e358..5fa02d260 100644
--- a/src/Bundle/ChillMainBundle/Resources/views/layout.html.twig
+++ b/src/Bundle/ChillMainBundle/Resources/views/layout.html.twig
@@ -67,7 +67,7 @@
{% endblock %}
@@ -83,8 +83,8 @@
}) }}
{% if available_languages|length == 1 %}
-
- {{ available_languages[0] | capitalize }}
+
+ {{ available_languages[0] | capitalize }}
{% else %}
@@ -137,14 +137,14 @@
{% endfor %}
{% block content %}
-
-
+
+
{{ 'Search'|trans }}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_add_a_person.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_add_a_person.html.twig
index 3849974c4..d9244dad2 100644
--- a/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_add_a_person.html.twig
+++ b/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_add_a_person.html.twig
@@ -1,7 +1,7 @@
{% if is_granted('CHILL_PERSON_CREATE') %}
-