Skip to content

Commit

Permalink
Use header snapshot to repeat on each page
Browse files Browse the repository at this point in the history
  • Loading branch information
jrivals committed Jan 2, 2025
1 parent d1e45e6 commit 90d4569
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 38 deletions.
31 changes: 27 additions & 4 deletions server/services/documentService/documentService.ts

Large diffs are not rendered by default.

69 changes: 35 additions & 34 deletions server/templates/supportDocument/supportDocument.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,43 @@
<link rel='stylesheet' href='{{dsfrLink}}' />
</head>
<body>
<header role='banner' class='fr-header'>
<div class='fr-header__body'>
<div class='fr-container'>
<div class='fr-header__body-row'>
<div class='fr-header__brand'>
<div class='fr-header__brand-top'>
<div class='fr-header__logo'>
<p class='fr-logo'>
Ministère
<br />
de l'Agriculture
<br />
et de la Souveraineté
<br />alimentaire
</p>
</div>
<div class='fr-header__operator'>
<img
src='{{assetsPath}}/logo.svg'
style='max-height: 100px; max-width: 100px; margin-bottom: 1rem;'
/>
</div>
</div>
</div>
<div class='fr-header__tools'>
<div class='fr-header__tools-links'>
<h6 class='fr-text--xs'>Document d'accompagnement du prélèvement</h6>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- Uncomment the following code to add the header to the document in order to make a screenshot and use in header template-->
<!-- <header role='banner' class='fr-header'>-->
<!-- <div class='fr-header__body'>-->
<!-- <div class='fr-container'>-->
<!-- <div class='fr-header__body-row'>-->
<!-- <div class='fr-header__brand'>-->
<!-- <div class='fr-header__brand-top'>-->
<!-- <div class='fr-header__logo'>-->
<!-- <p class='fr-logo'>-->
<!-- Ministère-->
<!-- <br />-->
<!-- de l'Agriculture-->
<!-- <br />-->
<!-- et de la Souveraineté-->
<!-- <br />alimentaire-->
<!-- </p>-->
<!-- </div>-->
<!-- <div class='fr-header__operator'>-->
<!-- <img-->
<!-- src='{{assetsPath}}/logo.svg'-->
<!-- style='max-height: 100px; max-width: 100px; margin-bottom: 1rem;'-->
<!-- />-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class='fr-header__tools'>-->
<!-- <div class='fr-header__tools-links'>-->
<!-- <h6 class='fr-text--xs'>Document d'accompagnement du prélèvement</h6>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </header>-->

<main>
<div class='fr-container fr-pt-2w'>
<div class='fr-container'>
<div class='sample-reference'>
<h2 class='fr-text--lg fr-text--regular fr-mb-0'>
Prélèvement
Expand Down

0 comments on commit 90d4569

Please sign in to comment.