Browse Source

feat: in french, hidden button to generate the pdf

main
nicolas.marsal 3 years ago
parent
commit
120d20d490
No known key found for this signature in database
GPG Key ID: 268AB819B6453541
  1. BIN
      public/CV-NicolasMarsal.pdf
  2. 17
      src/App.vue
  3. 2
      src/main.ts

BIN
public/CV-NicolasMarsal.pdf

Binary file not shown.

17
src/App.vue

@ -1,10 +1,21 @@
<template>
<MyCv />
<div class="menu">
<button @click="downloadPdf()">
<a role="button" href="./CV-NicolasMarsal.pdf" download>
<DownloadIcon width="32" height="32" />
</button>
</a>
</div>
<div
style="
position: absolute;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0);
"
width="20px"
height="20px"
@click.shift.alt="generatePdf()"
/>
</template>
<script lang="ts">
@ -27,7 +38,7 @@ export default defineComponent({
};
},
methods: {
downloadPdf() {
generatePdf() {
this.unselect();
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore

2
src/main.ts

@ -8,7 +8,7 @@ import "./assets/sheets-of-paper.css";
import "./assets/sheets-of-paper-a4.css";
const i18n = createI18n({
// locale: "fr",
locale: "fr",
messages: {
fr: {
section: {

Loading…
Cancel
Save