diff --git a/wiki/pages/main.html b/wiki/pages/main.html new file mode 100644 index 0000000000000000000000000000000000000000..2d3972a08b290c342c121533d4090011d6cf5460 --- /dev/null +++ b/wiki/pages/main.html @@ -0,0 +1,13 @@ +<!-- main.html --> +{% extends "layout.html" %} + +{% block title %}Main Page{% endblock %} + +{% block lead %} +欢迎æ¥åˆ°æˆ‘的网站 +{% endblock %} + +{% block page_content %} +<h2>这是主è¦å†…容。</h2> +<p>更多内容在这里。</p> +{% endblock %} diff --git a/wiki/pages/tryhomepage.html b/wiki/pages/tryhomepage.html index 9a5e03de0bd37c8980fd1153463148bb3f7c70eb..ddbcea5af919093576c8fdd0d7b742dbe49cf9da 100644 --- a/wiki/pages/tryhomepage.html +++ b/wiki/pages/tryhomepage.html @@ -71,10 +71,7 @@ opacity: 0; transition: ease-in-out 0.5s; } - /* Main content */ - #main-content { - display: none; - } + </style> </head> @@ -90,16 +87,10 @@ <h4>Logo.</h4> </header> - <div id="main-content"> - {% extends "layout.html"} - {% block title%} Main Page {% endblock%} - </div> - <script> let intro = document.querySelector('.intro'); let logo = document.querySelector('.logo-header'); let logoSpan = document.querySelectorAll('.logo'); - let mainContent = document.getElementById('main-content'); window.addEventListener('DOMContentLoaded', ()=>{ setTimeout(()=>{ @@ -122,9 +113,8 @@ setTimeout(()=>{ intro.style.top = '-100vh'; setTimeout(()=>{ - intro.style.display = 'none'; - mainContent.style.display = 'block'; - },1000); + window.location.href = '/main'; + }, 1000); }, 2300) }) })