Skip to content

Commit

Permalink
[feature] Added version & a bit of promotion when printing
Browse files Browse the repository at this point in the history
  • Loading branch information
Azecko committed Nov 18, 2024
1 parent f3171ad commit b2eadd3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,9 @@
.signature-buttons {
display: none;
}

/* Version & promotion */
.version-promotion {
display: block;
}
}
15 changes: 14 additions & 1 deletion app/responsable/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from "react";
import EtatDeVaudSignature from "../components/EtatDeVaudSignature";
import { reportStorageInterface } from "@/interfaces/reportStorageInterface";
import SignaturePad from "signature_pad";
import * as packageJson from "../../package.json";

export default function Page() {
const inputFile = React.useRef<HTMLInputElement | null>(null);
Expand Down Expand Up @@ -940,7 +941,19 @@ export default function Page() {
</p>
</div>
</div>
<EtatDeVaudSignature />
<div className="flex justify-between">
<EtatDeVaudSignature />
<div className="version-promotion hidden mt-4 text-sm">
Généré via&nbsp;
<a
href="https://go.epfl.ch/rds"
className="text-blue-600 hover:underline"
>
https://go.epfl.ch/rds
</a>,
v{packageJson.version}
</div>
</div>
</div>
)
)
Expand Down

0 comments on commit b2eadd3

Please sign in to comment.