From: Philippe Barbosa Date: Sun, 3 Apr 2016 22:03:58 +0000 (+0200) Subject: Breaking news block X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=eb9c04cbc939ca8601e20ce64732dde81dbed248;p=mezzo.git Breaking news block --- diff --git a/app/festival/static/css/index.css b/app/festival/static/css/index.css index 0e4069ce..49c26ec1 100755 --- a/app/festival/static/css/index.css +++ b/app/festival/static/css/index.css @@ -3226,6 +3226,36 @@ th { content: ""; } +/* line 5, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/modules/bk-news.scss */ +.bk__news { + display: block; + margin: 3rem auto; +} + +/* line 15, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/modules/bk-news.scss */ +.bk__news__inner { + padding: 2rem 1rem; + background: #fff; + border: 1px solid #d2ba88; + border-left: 1rem solid #d2ba88; +} + +/* line 26, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/modules/bk-news.scss */ +.bk__news__title { + text-transform: uppercase; + font-family: "Triplex", Georgia, Times, "Times New Roman", serif; + text-align: right; + font-size: 1.3rem; + font-weight: 700; + color: #d2ba88; + line-height: 1.1; +} + +/* line 37, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/modules/bk-news.scss */ +.bk__news__content strong { + text-transform: uppercase; +} + /* line 5, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/modules/hero-slider.scss */ .hero__slider__item { display: block; @@ -3588,6 +3618,11 @@ th { width: 100%; display: block; } + /* line 15, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/modules/bk-news.scss */ + .bk__news__inner{ + width: 60%; + margin: 0 auto; + } } @media (min-width: 1200px){ /* line 5, /Users/philippebarbosa/Sites/ircam-manifeste/app/festival/static/scss/base/_layout.scss */ diff --git a/app/festival/static/scss/index.scss b/app/festival/static/scss/index.scss index 8957a262..0acc1989 100755 --- a/app/festival/static/scss/index.scss +++ b/app/festival/static/scss/index.scss @@ -73,16 +73,11 @@ */ @import 'modules/artist-card', 'modules/artist-detail', - 'modules/video-card', - 'modules/event-card', - 'modules/pager', 'modules/icons', - + 'modules/bk-news', 'modules/hero-slider', - 'modules/calendar', - 'modules/user'; \ No newline at end of file diff --git a/app/festival/static/scss/modules/bk-news.scss b/app/festival/static/scss/modules/bk-news.scss new file mode 100755 index 00000000..4e556fd7 --- /dev/null +++ b/app/festival/static/scss/modules/bk-news.scss @@ -0,0 +1,43 @@ +// **************************************************************** +// _Breaking News +// **************************************************************** + +.bk__news { + display: block; + margin: 3rem auto; + // // padding-top: 3rem; + // @media (min-width : $desktop ) { + // float: left; + // width: 65%; + // padding-right: 1rem; + // } + + &__inner { + padding: 2rem 1rem; + background: #fff; + border: 1px solid $main_color; + border-left: 1rem solid $main_color; + @media (min-width : $desktop ) { + width: 60%; + margin: 0 auto; + } + } + + &__title { + text-transform: uppercase; + font-family: $header_font_family; + text-align: right; + font-size: 1.3rem; + font-weight: $bold; + color: $main_color; + line-height: 1.1; + } + +&__content { + strong { + text-transform: uppercase; + } +} + + +} \ No newline at end of file diff --git a/app/templates/base.html b/app/templates/base.html index fd9e71a1..263d0503 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -106,30 +106,47 @@ {% endif %} -
-
- {% nevercache %} - {% if messages %} - {% for message in messages %} -
- - {{ message }} -
- {% endfor %} - {% endif %} - {% endnevercache %} - - {% comment %} - - {% endcomment %} + {% nevercache %} + {% if messages %} + {% for message in messages %} +
+ + {{ message }}
-
+ {% endfor %} + {% endif %} + {% endnevercache %} + + {% comment %} + + {% endcomment %}
+ {% if on_home %} +
+
+
+
+ + Dernière
minute ! +
+
+
+

+ Partagez, twittez, commentez, publiez vos photos…
+ et réservez dès maintenant vos places ou abonnements pour bénéficier de tarifs privilégiés. +

+
+ +
+
+
+ {% endif %} +