diff --git a/build.py b/build.py index e3fc8af7f5be6a51191cb598a1e98674cbeed08f..23f23971bb81e528e8ce418d385f4fd69446a25e 100644 --- a/build.py +++ b/build.py @@ -96,6 +96,7 @@ if __name__ == "__main__": # copy specific files in build 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 + "/example_vignette.png", build_lang_dir ) # build the menu langs_menu_dict = lang_menu(lang, langs) @@ -131,6 +132,7 @@ if __name__ == "__main__": content = content.replace("questions.html", lang + "/questions.html") content = content.replace("strings.js", lang + "/strings.js") content = content.replace("./logo_g.png", lang + "/logo_g.png") + shutil.copy(source_lang_dir + "/example_vignette.png", build_lang_dir ) # overwrite file with open(target, "w") as f: f.write(content) diff --git a/source/files/index.html b/source/files/index.html index e9f51cb5aabc69ec1cfd9fdbdfd5254d14e6e57a..441ed1ebdc597c53444148aa3f2dc62b535fd95d 100644 --- a/source/files/index.html +++ b/source/files/index.html @@ -95,6 +95,7 @@ <li style="list-style-type: initial;">__MAIN_PAGE_LIST_TEXT__</li> <li style="list-style-type: initial;">__MAIN_PAGE_LIST_IMAGE__</li> </ul> + <img class="responsive-img" src="./example_vignette.png" alt="Vignette example: Make a donation to vignette !"> </div> <div class="col xl6 l6 m10 s12 offset-m1"> <h5>__MAIN_PAGE_FORM_TITLE__</h5> diff --git a/source/theme/custom.css b/source/theme/custom.css index f2787f4113133306bbabf3e49e3062408e4d38a4..00598f22a026f72ca343d065e83faf96b969b095 100644 --- a/source/theme/custom.css +++ b/source/theme/custom.css @@ -8,4 +8,10 @@ svg { .sidenav li > ul { padding-left: 10px; -} \ No newline at end of file +} + +@media (max-width: 992px) { + .responsive-img { + display: none; + } +}