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> <template>
<MyCv /> <MyCv />
<div class="menu"> <div class="menu">
<button @click="downloadPdf()"> <a role="button" href="./CV-NicolasMarsal.pdf" download>
<DownloadIcon width="32" height="32" /> <DownloadIcon width="32" height="32" />
</button> </a>
</div> </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> </template>
<script lang="ts"> <script lang="ts">
@ -27,7 +38,7 @@ export default defineComponent({
}; };
}, },
methods: { methods: {
downloadPdf() { generatePdf() {
this.unselect(); this.unselect();
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // @ts-ignore

2
src/main.ts

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

Loading…
Cancel
Save