modif export + automatisation + fonction qui centralise tout les exports

This commit is contained in:
p2405951
2025-06-20 16:08:32 +02:00
parent 0ca9c535c5
commit 105f1a6918
13 changed files with 624 additions and 122 deletions
+13 -10
View File
@@ -21,15 +21,15 @@ void Web::siteHtml()
<title>Liste des parcours</title>
<style>
body {
font-family: Arial, sans-serif;
font-family: Arial;
margin: 40px;
background-color: #f0f0f0;
color: #333;
background-color: whitesmoke;
}
h1 {
text-align: center;
color: purple;
font-style: italic;
color: black;
font-style: bold;
}
ul {
max-width: 600px;
@@ -45,9 +45,9 @@ void Web::siteHtml()
box-shadow: 0 0 6px rgba(0,0,0,0.1);
transition: background-color 0.3s ease;
}
/*li:hover {
background-color: red;
}*/
li:hover {
background-color:black;
}
a {
text-decoration: none;
color: purple;
@@ -68,8 +68,11 @@ void Web::siteHtml()
for (const Path* p : list) {
QString fileName = QString("parcours%1.html").arg(index);
QString name = p->getName();
file << " <li><a href=\"" << fileName.toStdString() << "\">"
<< name.toStdString() << "</a></li>\n";
file << " <li><a href=\"./pages/"
<< fileName.toStdString()
<< "\">"
<< name.toStdString()
<< "</a></li>\n";
++index;
}