new_index(demo)
parent
27302cc64c
commit
6a52234dab
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,163 @@
|
||||
body {
|
||||
background-color: #1D1D1D;
|
||||
color: white;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#index {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.nav,.main,.footer {
|
||||
flex-basis: 100%;
|
||||
}
|
||||
|
||||
.logo-sm,.auth-sm {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 1rem 1rem;
|
||||
}
|
||||
|
||||
.auth-sm {
|
||||
text-align: right;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.logo-sm .logo {
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.logo-sm>a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.logo-sm .logo {
|
||||
margin-right: .5rem;
|
||||
}
|
||||
|
||||
.logo-bg .logo {
|
||||
height: 160px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sign {
|
||||
font-size: .5rem;
|
||||
margin-top: 2px;
|
||||
color: #858585;
|
||||
}
|
||||
|
||||
.main {
|
||||
text-align: center;
|
||||
min-height: 80vh;
|
||||
}
|
||||
|
||||
.title,.auth {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.title-left {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title-left a {
|
||||
margin-right: .5rem;
|
||||
margin-bottom: .5rem;
|
||||
}
|
||||
|
||||
.title h1 {
|
||||
font-size: 2.5rem;
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
border-bottom: 2px solid currentColor;
|
||||
}
|
||||
|
||||
.title span {
|
||||
font-size: 1.5rem;
|
||||
display: block;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.button-index {
|
||||
font-size: 1rem;
|
||||
padding: .5rem 1.5rem;
|
||||
display: inline-block;
|
||||
border: 2px solid currentColor;
|
||||
min-width: 120px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.footer {
|
||||
padding: 0 3rem;
|
||||
}
|
||||
|
||||
.staff,.time {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.staff {
|
||||
color: rgba(120, 120, 120, 1);
|
||||
}
|
||||
|
||||
.staff a {
|
||||
color: #D1335B;
|
||||
}
|
||||
|
||||
@media screen and (min-width:35.5em) {
|
||||
.footer {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
.title-left a {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.logo-sm,.auth-sm {
|
||||
padding: 1rem 3rem;
|
||||
margin-top: .8rem;
|
||||
}
|
||||
.title h1 {
|
||||
font-size: 4rem;
|
||||
}
|
||||
.staff {
|
||||
text-align: left;
|
||||
}
|
||||
.time {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width:48em) {
|
||||
.title h1 {
|
||||
font-size: 5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width:64em) {
|
||||
|
||||
}
|
||||
|
||||
@media screen and (min-width:80em) {
|
||||
.title h1 {
|
||||
padding-right: 4rem;
|
||||
}
|
||||
.title-left {
|
||||
text-align: left;
|
||||
}
|
||||
.logo-bg .logo {
|
||||
display: unset;
|
||||
margin-left: 10rem;
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,201 @@
|
||||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Dimension by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
-->
|
||||
{if $config['appName'] == '跑路'}
|
||||
<script>window.location.href='{$config["baseUrl"]}/paolu.html';</script>
|
||||
{/if}
|
||||
<html>
|
||||
<head>
|
||||
<title>{$config["appName"]}</title>
|
||||
<meta name="keywords" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="shortcut icon" href="/favicon.ico"/>
|
||||
<link rel="bookmark" href="/favicon.ico"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="stylesheet" href="/assets/css/main.css"/>
|
||||
<noscript><link rel="stylesheet" href="/assets/css/noscript.css" /></noscript>
|
||||
<link href="//unpkg.com/nprogress@0.2.0/nprogress.css" rel="stylesheet" />
|
||||
<script src="//unpkg.com/nprogress@0.2.0/nprogress.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<!--首页开始-->
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
<span class="icon fa-rocket"></span>
|
||||
</div>
|
||||
{if $user->isLogin}
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<p>用户:<code>{$user->user_name}</code>
|
||||
等级:{if $user->class!=0}
|
||||
<code>VIP{$user->class}</code>
|
||||
{else}
|
||||
<code>免费</code>
|
||||
{/if}
|
||||
过期时间:{if $user->class_expire!="1989-06-04 00:05:00"}
|
||||
<code>{$user->class_expire}</code>
|
||||
{else}
|
||||
<code>不过期</code>
|
||||
{/if}</p>
|
||||
<p>总流量:<code>{$user->enableTraffic()}</code>
|
||||
已用流量:<code>{$user->usedTraffic()}</code>
|
||||
剩余流量:<code>{$user->unusedTraffic()}</code></p>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#1">简介</a></li>
|
||||
<li><a href="/user">用户中心</a></li>
|
||||
<li><a href="/user/logout">退出登录</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{else}
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>{$config["appName"]}</h1>
|
||||
<!--
|
||||
如果想自定义文本请删除下面这段script代码,格式为
|
||||
<p>自定义文本</p>
|
||||
-->
|
||||
<div id="lwlhitokoto"></div>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#1">简介</a></li>
|
||||
<li><a href="/auth/login">登录</a></li>
|
||||
<li><a href="/auth/register">注册</a></li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
{/if}
|
||||
|
||||
</header>
|
||||
<!--首页结束-->
|
||||
<div id="main">
|
||||
<!--标签1开始-->
|
||||
<article id="1">
|
||||
<h2 class="major">简介</h2>
|
||||
<p>「ホワイトアルバムの季節」が、また、やってきた。</p></article>
|
||||
<!--
|
||||
简介修改示例:
|
||||
<p> 123</p>
|
||||
一个 <p> 123</p> 为一行,请不要删除 </article>
|
||||
-->
|
||||
<!--标签4开始-->
|
||||
<article id="4">
|
||||
<h2 class="major">联系我们</h2>
|
||||
<ul class="icons">
|
||||
<p>此处填写联系方式</p>
|
||||
<li>
|
||||
<a target="_blank" href="#" class="icon fa-facebook">
|
||||
<!-- 请在fontawesome.com寻找替换图标 href替换链接 -->
|
||||
<span class="label">Facebook</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article id="login">
|
||||
|
||||
<h2 class="major">登录</h2>
|
||||
<form method="post" action="javascript:void(0);">
|
||||
<div class="field half first">
|
||||
<label for="email2">邮箱</label>
|
||||
<input type="text" name="Email" id="email2" />
|
||||
</div>
|
||||
<div class="field half">
|
||||
<label for="passwd">密码</label>
|
||||
<input type="password" name="Password" id="passwd" />
|
||||
</div>
|
||||
|
||||
<ul class="actions">
|
||||
<li><input id="login" type="submit" value="登录" class="special" /></li>
|
||||
<li><input type="reset" value="清空" /></li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
|
||||
<div class="field half">
|
||||
<input value="week" id="remember_me" name="remember_me" type="checkbox" checked>
|
||||
<label for="remember_me">记住我</label>
|
||||
</div>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<div id="result" role="dialog" >
|
||||
<p color class="h5 margin-top-sm text-black-hint" id="msg"></p>
|
||||
</div>
|
||||
</article>
|
||||
<!--全部标签结束-->
|
||||
|
||||
</div>
|
||||
<!-- 版权底部 -->
|
||||
<footer id="footer">
|
||||
<p class="copyright">©{date("Y")} {$config["appName"]}</p>
|
||||
</footer>
|
||||
<!-- 版权结束 -->
|
||||
</div>
|
||||
<!-- BG -->
|
||||
<div id="bg"></div>
|
||||
<!-- Scripts -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
<script language="javascript">
|
||||
try{
|
||||
if(window.console&&window.console.log){
|
||||
|
||||
console.log("%c{$config["appName"]}"," text-shadow: 0 1px 0 #ccc,0 2px 0 #c9c9c9,0 3px 0 #bbb,0 4px 0 #b9b9b9,0 5px 0 #aaa,0 6px 1px rgba(0,0,0,.1),0 0 5px rgba(0,0,0,.1),0 1px 3px rgba(0,0,0,.3),0 3px 5px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.2),0 20px 20px rgba(0,0,0,.15);font-size:5em");
|
||||
console.log("%chttps://github.com/NimaQu/ss-panel-v3-mod_Uim","background: rgba(252,234,187,1);background: -moz-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%,rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -webkit-gradient(left top, right top, color-stop(0%, rgba(252,234,187,1)), color-stop(12%, rgba(175,250,77,1)), color-stop(28%, rgba(0,247,49,1)), color-stop(39%, rgba(0,210,247,1)), color-stop(51%, rgba(0,189,247,1)), color-stop(64%, rgba(133,108,217,1)), color-stop(78%, rgba(177,0,247,1)), color-stop(87%, rgba(247,0,189,1)), color-stop(100%, rgba(245,22,52,1)));background: -webkit-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -o-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -ms-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: linear-gradient(to right, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fceabb', endColorstr='#f51634', GradientType=1 );font-size:3em");
|
||||
}
|
||||
}catch(e){
|
||||
};
|
||||
|
||||
</script>
|
||||
<!-- 進度條 -->
|
||||
<script>
|
||||
$(function() {
|
||||
$(window).load(function(){
|
||||
NProgress.done();
|
||||
});
|
||||
NProgress.set(0.0);
|
||||
NProgress.configure({ showSpinner: false });
|
||||
NProgress.configure({ minimum: 0.4 });
|
||||
NProgress.configure({ easing: 'ease', speed: 1200 });
|
||||
NProgress.configure({ trickleSpeed: 200 });
|
||||
NProgress.configure({ trickleRate: 0.2, trickleSpeed: 1200 });
|
||||
NProgress.inc();
|
||||
$(window).ready(function(){
|
||||
NProgress.start();
|
||||
});
|
||||
})
|
||||
|
||||
window.addEventListener('load',()=>{
|
||||
fetch('https://api.lwl12.com/hitokoto/v1?encode=realjson',{
|
||||
method: 'GET',
|
||||
}).then((response)=>{
|
||||
return response.json();
|
||||
}).then((r)=>{
|
||||
insertHitokoto(r);
|
||||
})
|
||||
});
|
||||
|
||||
function insertHitokoto(data) {
|
||||
let hitokoto = document.getElementById('lwlhitokoto');
|
||||
if (data.author || data.source) {
|
||||
hitokoto.innerHTML = `${ldelim}data.text{rdelim} —— ${ldelim}data.author{rdelim} ${ldelim}data.source{rdelim}`;
|
||||
} else {
|
||||
hitokoto.innerHTML = `${ldelim}data.text{rdelim}`;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue