Spaces:
Running
Running
Update templates/dissertation_pdf.html
Browse files- templates/dissertation_pdf.html +57 -13
templates/dissertation_pdf.html
CHANGED
|
@@ -1,22 +1,28 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="fr">
|
| 3 |
<head>
|
| 4 |
-
<meta charset="UTF-
|
| 5 |
<title>Dissertation de Philosophie</title>
|
| 6 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 7 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 8 |
<link href="https://fonts.googleapis.com/css2?family=Kalam&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 9 |
<style>
|
| 10 |
-
/*
|
|
|
|
|
|
|
|
|
|
| 11 |
body {
|
| 12 |
font-family: 'Inter', sans-serif;
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
.dissertation-paper {
|
| 15 |
font-family: 'Kalam', cursive;
|
| 16 |
font-size: 20px;
|
| 17 |
color: #1a2a4c;
|
| 18 |
background-color: #fdfaf4;
|
| 19 |
-
|
|
|
|
| 20 |
background-image: linear-gradient(transparent 97%, #d8e2ee 98%);
|
| 21 |
background-size: 100% 40px;
|
| 22 |
border-left: 3px solid #ffaaab;
|
|
@@ -24,21 +30,59 @@
|
|
| 24 |
padding-top: 30px;
|
| 25 |
padding-bottom: 40px;
|
| 26 |
padding-right: 30px;
|
| 27 |
-
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
| 29 |
-
.dissertation-paper h2 { font-size: 1.5em; text-align: center; margin-bottom: 1.5em; color: #1a2a4c; }
|
| 30 |
-
.dissertation-paper h3 { font-size: 1.2em; margin-top: 3em; margin-bottom: 1.5em; text-transform: uppercase; text-decoration: underline; color: #1a2a4c; }
|
| 31 |
-
.dissertation-paper .development-block { margin-top: 3em; }
|
| 32 |
-
.dissertation-paper p { text-align: justify; margin: 0; padding: 0; }
|
| 33 |
-
.dissertation-paper .prof { text-align: center; font-style: italic; margin-bottom: 2em; }
|
| 34 |
-
.dissertation-paper .indented { text-indent: 3em; }
|
| 35 |
-
.dissertation-paper .transition { margin-top: 2em; margin-bottom: 2em; font-style: italic; color: #4a6a9c; }
|
| 36 |
-
.avoid-page-break { page-break-inside: avoid; break-inside: avoid; }
|
| 37 |
</style>
|
| 38 |
</head>
|
| 39 |
<body>
|
| 40 |
<div class="dissertation-paper">
|
| 41 |
-
<!-- Utilisation de la syntaxe Jinja2
|
| 42 |
<h2>Sujet : {{ dissertation.sujet }}</h2>
|
| 43 |
<p class="prof">Prof : {{ dissertation.prof }}</p>
|
| 44 |
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="fr">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
<title>Dissertation de Philosophie</title>
|
| 6 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 7 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 8 |
<link href="https://fonts.googleapis.com/css2?family=Kalam&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 9 |
<style>
|
| 10 |
+
/*
|
| 11 |
+
* Styles pour la génération du PDF de la dissertation.
|
| 12 |
+
* Les marges et interlignes ont été ajustés pour un rendu plus compact.
|
| 13 |
+
*/
|
| 14 |
body {
|
| 15 |
font-family: 'Inter', sans-serif;
|
| 16 |
+
margin: 0;
|
| 17 |
+
padding: 0;
|
| 18 |
}
|
| 19 |
.dissertation-paper {
|
| 20 |
font-family: 'Kalam', cursive;
|
| 21 |
font-size: 20px;
|
| 22 |
color: #1a2a4c;
|
| 23 |
background-color: #fdfaf4;
|
| 24 |
+
/* MODIFIÉ: Interligne réduit pour un texte moins aéré */
|
| 25 |
+
line-height: 1.8;
|
| 26 |
background-image: linear-gradient(transparent 97%, #d8e2ee 98%);
|
| 27 |
background-size: 100% 40px;
|
| 28 |
border-left: 3px solid #ffaaab;
|
|
|
|
| 30 |
padding-top: 30px;
|
| 31 |
padding-bottom: 40px;
|
| 32 |
padding-right: 30px;
|
| 33 |
+
box-sizing: border-box;
|
| 34 |
+
-webkit-print-color-adjust: exact;
|
| 35 |
+
print-color-adjust: exact;
|
| 36 |
+
}
|
| 37 |
+
.dissertation-paper h2 {
|
| 38 |
+
font-size: 1.5em;
|
| 39 |
+
text-align: center;
|
| 40 |
+
margin-top: 0;
|
| 41 |
+
margin-bottom: 1.5em;
|
| 42 |
+
color: #1a2a4c;
|
| 43 |
+
}
|
| 44 |
+
.dissertation-paper h3 {
|
| 45 |
+
font-size: 1.2em;
|
| 46 |
+
/* MODIFIÉ: Marge supérieure des titres de section réduite */
|
| 47 |
+
margin-top: 2em;
|
| 48 |
+
margin-bottom: 1.5em;
|
| 49 |
+
text-transform: uppercase;
|
| 50 |
+
text-decoration: underline;
|
| 51 |
+
color: #1a2a4c;
|
| 52 |
+
}
|
| 53 |
+
.dissertation-paper .development-block {
|
| 54 |
+
/* MODIFIÉ: Marge supérieure des blocs de développement réduite */
|
| 55 |
+
margin-top: 2em;
|
| 56 |
+
}
|
| 57 |
+
.dissertation-paper p {
|
| 58 |
+
text-align: justify;
|
| 59 |
+
margin: 0;
|
| 60 |
+
padding: 0;
|
| 61 |
+
}
|
| 62 |
+
.dissertation-paper .prof {
|
| 63 |
+
text-align: center;
|
| 64 |
+
font-style: italic;
|
| 65 |
+
margin-bottom: 2em;
|
| 66 |
+
}
|
| 67 |
+
.dissertation-paper .indented {
|
| 68 |
+
text-indent: 3em;
|
| 69 |
+
}
|
| 70 |
+
.dissertation-paper .transition {
|
| 71 |
+
/* MODIFIÉ: Espacement de la transition ajusté */
|
| 72 |
+
margin-top: 1.5em;
|
| 73 |
+
margin-bottom: 1.5em;
|
| 74 |
+
font-style: italic;
|
| 75 |
+
color: #4a6a9c;
|
| 76 |
+
}
|
| 77 |
+
.avoid-page-break {
|
| 78 |
+
page-break-inside: avoid;
|
| 79 |
+
break-inside: avoid;
|
| 80 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
</style>
|
| 82 |
</head>
|
| 83 |
<body>
|
| 84 |
<div class="dissertation-paper">
|
| 85 |
+
<!-- Utilisation de la syntaxe Jinja2 pour insérer les données dynamiques -->
|
| 86 |
<h2>Sujet : {{ dissertation.sujet }}</h2>
|
| 87 |
<p class="prof">Prof : {{ dissertation.prof }}</p>
|
| 88 |
|