ajout lettre prive pour jevalideca
This commit is contained in:
parent
d14898e6a2
commit
10e5c87d5d
7 changed files with 94 additions and 0 deletions
5
main.py
5
main.py
|
@ -101,6 +101,11 @@ async def get_images():
|
|||
return {"images": files}
|
||||
|
||||
|
||||
@app.get("/images/{nom_image}")
|
||||
async def get_image(nom_image: str):
|
||||
return FileResponse(f"./resources/images/{nom_image}")
|
||||
|
||||
|
||||
@app.post("/images/")
|
||||
async def ajouter_image(file: UploadFile):
|
||||
"""
|
||||
|
|
|
@ -27,6 +27,20 @@
|
|||
"stilltime": 2,
|
||||
"extension": "pdf"
|
||||
},
|
||||
"lettre_prive": {
|
||||
"linkcolor": "blue",
|
||||
"tocdepth": 3,
|
||||
"pdfengine": "lualatex",
|
||||
"fontsize": 12,
|
||||
"paperwidth": 2550,
|
||||
"paperheight": 3300,
|
||||
"ratio": 100,
|
||||
"margin": 255,
|
||||
"vmargin": 495,
|
||||
"fps": 15,
|
||||
"stilltime": 2,
|
||||
"extension": "pdf"
|
||||
},
|
||||
"linkedin": {
|
||||
"linkcolor": "blue",
|
||||
"tocdepth": 2,
|
||||
|
|
23
styles/jevalideca/lettre_prive/cover.tex
Normal file
23
styles/jevalideca/lettre_prive/cover.tex
Normal file
|
@ -0,0 +1,23 @@
|
|||
\newpage
|
||||
|
||||
\thispagestyle{empty}
|
||||
|
||||
\noindent Tu apprécies ? Laisse-moi un commentaire sur mes réseaux sociaux !\newline
|
||||
|
||||
\leavevmode \newline
|
||||
|
||||
\noindent Tous droits réservés\ \newline \the\year{}\ -\ François Pelletier
|
||||
|
||||
\leavevmode \newline
|
||||
|
||||
\noindent Visite mon site web au \url{https://jevalide.ca} et mes réseaux sociaux au \url{https://linktr.ee/jevalideca}
|
||||
|
||||
\leavevmode \newline
|
||||
|
||||
\noindent Publié le \today
|
||||
|
||||
\leavevmode \newline
|
||||
|
||||
\noindent Mise en page effectuée avec \LaTeX et mon logiciel Fabrique à documents
|
||||
|
||||
\pagebreak
|
BIN
styles/jevalideca/lettre_prive/fonds_lettre.pdf
Normal file
BIN
styles/jevalideca/lettre_prive/fonds_lettre.pdf
Normal file
Binary file not shown.
BIN
styles/jevalideca/lettre_prive/fonds_lettre.png
Normal file
BIN
styles/jevalideca/lettre_prive/fonds_lettre.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
1
styles/jevalideca/lettre_prive/fonds_lettre.svg
Normal file
1
styles/jevalideca/lettre_prive/fonds_lettre.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 87 KiB |
51
styles/jevalideca/lettre_prive/header.tex
Normal file
51
styles/jevalideca/lettre_prive/header.tex
Normal file
|
@ -0,0 +1,51 @@
|
|||
\usepackage[french]{babel} % Césure en français
|
||||
\usepackage[autolanguage]{numprint}
|
||||
|
||||
\usepackage[
|
||||
type={CC},
|
||||
modifier={by-sa},
|
||||
version={4.0},
|
||||
]{doclicense}
|
||||
|
||||
\usepackage{xcolor}
|
||||
|
||||
\usepackage{listings}
|
||||
|
||||
\lstset{
|
||||
basicstyle=\ttfamily,
|
||||
numbers=left,
|
||||
numberstyle=\footnotesize,
|
||||
stepnumber=2,
|
||||
numbersep=5pt,
|
||||
backgroundcolor=\color{black!10},
|
||||
showspaces=false,
|
||||
showstringspaces=false,
|
||||
showtabs=false,
|
||||
tabsize=2,
|
||||
captionpos=b,
|
||||
breaklines=true,
|
||||
breakatwhitespace=true,
|
||||
breakautoindent=true,
|
||||
linewidth=\textwidth
|
||||
}
|
||||
|
||||
\usepackage{wallpaper}
|
||||
\makeatletter
|
||||
\ULCornerWallPaper{1}{./styles/jevalideca/lettre/fonds_lettre.pdf}
|
||||
\makeatother
|
||||
|
||||
% Override default figure placement To be within the flow of the text rather
|
||||
% than on it's own page.
|
||||
\usepackage{float}
|
||||
\makeatletter
|
||||
\def\fps@figure{H}
|
||||
\makeatother
|
||||
|
||||
\usepackage{fontspec}
|
||||
\setmainfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf}
|
||||
\setsansfont[Path=font/GlacialIndifference/]{GlacialIndifference-Regular.otf}
|
||||
\setmonofont[Path=font/SourceCodePro/]{SourceCodePro-Regular.ttf}
|
||||
|
||||
\newcommand{\emoji}[1]{
|
||||
{\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}}
|
||||
}
|
Loading…
Reference in a new issue