@@ -2,6 +2,8 @@ import React from "react";
22import { Header } from "../dist/Header" ;
33import { sectionName } from "./sectionName" ;
44import { getStoryFactory } from "./getStory" ;
5+ import placeholder_9x16ImgUrl from "./assets/placeholder.9x16.png" ;
6+ import placeholder_16x9ImgUrl from "./assets/placeholder.16x9.png" ;
57
68const { meta, getStory } = getStoryFactory ( {
79 sectionName,
@@ -174,3 +176,73 @@ export const HeaderWithQuickAccessItemsAndSearchEngine = getStory({
174176 < input className = { className } id = { id } name = { name } placeholder = { placeholder } type = { type } />
175177 )
176178} ) ;
179+
180+ export const HeaderWithVerticalOperatorLogo = getStory ( {
181+ "brandTop" : (
182+ < >
183+ INTITULE
184+ < br />
185+ OFFICIEL
186+ </ >
187+ ) ,
188+ "homeLinkProps" : {
189+ "href" : "/" ,
190+ "title" :
191+ "Accueil - [À MODIFIER - texte alternatif de l’image : nom de l'opérateur ou du site serviciel] - République Française"
192+ } ,
193+ "renderSearchInput" : ( { className, id, name, placeholder, type } ) => (
194+ < input className = { className } id = { id } name = { name } placeholder = { placeholder } type = { type } />
195+ ) ,
196+ "operatorLogo" : {
197+ "orientation" : "vertical" ,
198+ "imgUrl" : placeholder_9x16ImgUrl ,
199+ "alt" : "[À MODIFIER - texte alternatif de l’image]"
200+ }
201+ } ) ;
202+
203+ export const WithHorizontalOperatorLogo = getStory ( {
204+ "brandTop" : (
205+ < >
206+ INTITULE
207+ < br />
208+ OFFICIEL
209+ </ >
210+ ) ,
211+ "homeLinkProps" : {
212+ "href" : "/" ,
213+ "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)"
214+ } ,
215+ "serviceTitle" : "Nom du site / service" ,
216+ "serviceTagline" : "baseline - précisions sur l'organisation" ,
217+ "quickAccessItems" : [
218+ {
219+ "iconId" : "fr-icon-add-circle-line" ,
220+ "text" : "Créer un espace" ,
221+ "linkProps" : {
222+ "href" : "#"
223+ }
224+ } ,
225+ {
226+ "iconId" : "fr-icon-lock-line" ,
227+ "text" : "Se connecter" ,
228+ "linkProps" : {
229+ "href" : "#"
230+ }
231+ } ,
232+ {
233+ "iconId" : "fr-icon-account-line" ,
234+ "text" : "S’enregistrer" ,
235+ "linkProps" : {
236+ "href" : "#"
237+ }
238+ }
239+ ] ,
240+ "renderSearchInput" : ( { className, id, name, placeholder, type } ) => (
241+ < input className = { className } id = { id } name = { name } placeholder = { placeholder } type = { type } />
242+ ) ,
243+ "operatorLogo" : {
244+ "orientation" : "horizontal" ,
245+ "imgUrl" : placeholder_16x9ImgUrl ,
246+ "alt" : "[À MODIFIER - texte alternatif de l’image]"
247+ }
248+ } ) ;
0 commit comments