diff --git a/assets/css/src/pages/_event.scss b/assets/css/src/pages/_event.scss index 2924f4b..a3c27ce 100644 --- a/assets/css/src/pages/_event.scss +++ b/assets/css/src/pages/_event.scss @@ -114,6 +114,31 @@ &.presse { background-color: black; color: white; + + .quotes { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 4rem; + + .quote { + text-align: center; + blockquote { + margin-bottom: 2rem; + font-size: 2rem; + + &::before { + content: "«"; + } + &::after { + content: "»"; + } + } + + cite { + font-style: normal; + } + } + } } } } diff --git a/assets/css/style.css b/assets/css/style.css index 5e9f16f..8cf13b6 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -52,6 +52,10 @@ a { text-decoration: none; } +blockquote { + margin: 0; +} + @font-face { font-family: "Bartok"; src: url("../fonts/BartokTrial-Regular.otf") format("opentype"); @@ -600,6 +604,27 @@ summary { background-color: black; color: white; } +[data-template=event] main details.presse .quotes { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 4rem; +} +[data-template=event] main details.presse .quotes .quote { + text-align: center; +} +[data-template=event] main details.presse .quotes .quote blockquote { + margin-bottom: 2rem; + font-size: 2rem; +} +[data-template=event] main details.presse .quotes .quote blockquote::before { + content: "«"; +} +[data-template=event] main details.presse .quotes .quote blockquote::after { + content: "»"; +} +[data-template=event] main details.presse .quotes .quote cite { + font-style: normal; +} [data-template=agenda] main { background-color: transparent; diff --git a/site/blueprints/pages/event.yml b/site/blueprints/pages/event.yml index 7ec0e95..aae7662 100644 --- a/site/blueprints/pages/event.yml +++ b/site/blueprints/pages/event.yml @@ -123,8 +123,9 @@ tabs: fields: text: label: Texte - type: text + type: textarea required: true + buttons: false reference: label: Référence type: text diff --git a/site/templates/event.php b/site/templates/event.php index b6af92d..40d8b2d 100644 --- a/site/templates/event.php +++ b/site/templates/event.php @@ -86,16 +86,20 @@ Dates et tournées Extraits presse - pressQuotes()->toStructure() as $pressQuote): ?> -
- = $pressQuote->text() ?> -- - - = $pressQuote->reference() ?> - - - +
+ = $pressQuote->text() ?> ++ + + = $pressQuote->reference() ?> + + +