Skip to content
Snippets Groups Projects
Commit 37858e66 authored by matograine's avatar matograine
Browse files

add example image in main page

parent f0a59805
No related branches found
No related tags found
No related merge requests found
...@@ -96,6 +96,7 @@ if __name__ == "__main__": ...@@ -96,6 +96,7 @@ if __name__ == "__main__":
# copy specific files in build dir # copy specific files in build dir
shutil.copy(source_lang_dir + "/logo_g.png", build_lang_dir ) shutil.copy(source_lang_dir + "/logo_g.png", build_lang_dir )
shutil.copy(source_lang_dir + "/strings.js", build_lang_dir ) shutil.copy(source_lang_dir + "/strings.js", build_lang_dir )
shutil.copy(source_lang_dir + "/example_vignette.png", build_lang_dir )
# build the menu # build the menu
langs_menu_dict = lang_menu(lang, langs) langs_menu_dict = lang_menu(lang, langs)
...@@ -131,6 +132,7 @@ if __name__ == "__main__": ...@@ -131,6 +132,7 @@ if __name__ == "__main__":
content = content.replace("questions.html", lang + "/questions.html") content = content.replace("questions.html", lang + "/questions.html")
content = content.replace("strings.js", lang + "/strings.js") content = content.replace("strings.js", lang + "/strings.js")
content = content.replace("./logo_g.png", lang + "/logo_g.png") content = content.replace("./logo_g.png", lang + "/logo_g.png")
shutil.copy(source_lang_dir + "/example_vignette.png", build_lang_dir )
# overwrite file # overwrite file
with open(target, "w") as f: with open(target, "w") as f:
f.write(content) f.write(content)
...@@ -95,6 +95,7 @@ ...@@ -95,6 +95,7 @@
<li style="list-style-type: initial;">__MAIN_PAGE_LIST_TEXT__</li> <li style="list-style-type: initial;">__MAIN_PAGE_LIST_TEXT__</li>
<li style="list-style-type: initial;">__MAIN_PAGE_LIST_IMAGE__</li> <li style="list-style-type: initial;">__MAIN_PAGE_LIST_IMAGE__</li>
</ul> </ul>
<img class="responsive-img" src="./example_vignette.png" alt="Vignette example: Make a donation to vignette !">
</div> </div>
<div class="col xl6 l6 m10 s12 offset-m1"> <div class="col xl6 l6 m10 s12 offset-m1">
<h5>__MAIN_PAGE_FORM_TITLE__</h5> <h5>__MAIN_PAGE_FORM_TITLE__</h5>
......
...@@ -9,3 +9,9 @@ svg { ...@@ -9,3 +9,9 @@ svg {
.sidenav li > ul { .sidenav li > ul {
padding-left: 10px; padding-left: 10px;
} }
@media (max-width: 992px) {
.responsive-img {
display: none;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment