From e8afe30fff4cb7c0a41fdf9a107a02400c02be78 Mon Sep 17 00:00:00 2001 From: tongwenjing <656274287@qq.com> Date: Tue, 2 Aug 2022 19:51:46 +0800 Subject: [PATCH] Upload From local development env --- wiki/layout.html | 4 +--- wiki/pages/index.html | 30 +++++++++++++++++++----------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/wiki/layout.html b/wiki/layout.html index eed8564..194d662 100755 --- a/wiki/layout.html +++ b/wiki/layout.html @@ -7,8 +7,6 @@ <link rel="shortcut icon" href="https://static.igem.wiki/common/icons/favicons/igem-2022.svg"/> <link rel="license" href="https://creativecommons.org/licenses/by/4.0/"/> - <script src="{{ url_for('static', filename = 'particle.js') }}"></script> - <!-- Bootstrap CSS --> <link href="{{ url_for('static', filename = 'bootstrap.min.css') }}" rel="stylesheet"> @@ -39,7 +37,7 @@ <!-- Page Content --> <!-- <div class="container"> --> - {% block page_content %}{% endblock %} + {% block page_content %}{% endblock %} <!-- </div> --> <!-- Footer: MUST mention license AND have a link to team wiki's repository on gitlab.igem.org --> diff --git a/wiki/pages/index.html b/wiki/pages/index.html index ab95d14..789f2a4 100755 --- a/wiki/pages/index.html +++ b/wiki/pages/index.html @@ -3,21 +3,23 @@ {% block title %}Home - ICUnited{% endblock %} {% block customHead %} + +<script src="{{ url_for('static', filename = 'particle.js') }}"></script> + <style type="text/css"> main{ align-self: center; } .firstPage{ height: 100vh; - width: 100%; + width: 120%; position: sticky; scroll-snap-align: start; scroll-snap-type: y mandatory; overflow: hidden; - background-color: #323232; + background-color: darkorange; color: aliceblue; text-align: center; - scroll-padding-top: 80px; } </style> {% endblock %} @@ -25,14 +27,20 @@ {% block lead %}<b>Welcome to we ICUnited ! </b> Just enjoy ~ {% endblock %} {% block page_content %} - -<main class="firstPage"> - <section>Cancer 1 ! </section> - <section>Cancer 2 ! </section> - <section>Cancer 3 ! </section> - <section>Cancer 4 ! </section> -</main> - +<div class="firstPage"> + <main> + <section>Cancer 1 ! </section> + </main> + <main> + <section>Cancer 2 ! </section> + </main> + <main> + <section>Cancer 3 ! </section> + </main> + <main> + <section>Cancer 4 ! </section> + </main> +</div> <p>hel1</p> <p>hel1</p> <p>hel1</p> -- GitLab