Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新的界面设计(虽然其实也没多大不同,只是尝试下类似fluent的方式 #20

Merged
merged 3 commits into from
May 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 82 additions & 65 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<html lang="zh-CN"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="css/icon.png" type="image/x-icon">
<title>@Model.WebSiteName</title>
<link href="css/bootstrap-4.0.0.css" rel="stylesheet">
<link rel="stylesheet" href="./css/bootstrap.min.css">
<script src="js/jquery-3.2.1.min.js"></script>
<style>
body {
background-image: url(@Model.Background);
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover
background-size: cover;
}
.video-text {
line-height: 1.3;
}
.line-limit-length {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nobords{
margin: 0;
padding: 0;
}
.li{
position: sticky;
top: 0;
}
.transform{
background-color: rgba(255,255,255,0.8);
}
</style>
</head>
<body>
Expand Down Expand Up @@ -57,71 +72,73 @@
</div>
</nav>

<div class="container">
<div class="row text-center">
<div class="col-md-12 pb-1 pb-md-0" style="margin: 0.25in 0 0 0;">
<div class="card">
<div class="card-body">
<h3 class="card-title">
作品列表
@If.HasFilter
<a class="btn btn-sm btn-primary" href="/index.html">返回首页</a>
@EndIf
</h3>
<p class="card-body">
@Each.AnimeTitles
<a class="btn btn-sm btn-outline-primary" style="margin-bottom: 4px;" href="/[email protected]">
@Current.AnimeTitle
<span class="badge badge-primary">@Current.VideoCount</span>
</a>
@EndEach
</p>
</div>
</div>
</div>
@If.ShowVideoList
@Each.VideoFiles
<div class="col-sm-6 col-md-4 pb-1 pb-md-0" style="margin: 0.25in 0 0 0;">
<div class="card">
<a href="/web/@Current.Id">
<img class="card-img-top" src="/image/@Current.Id" alt="Card image cap">
</a>
<div class="card-body">
<h5 class="card-title">
<a href="/[email protected]">@Current.AnimeTitle</a>
</h5>
<h5 class="card-title" style="overflow: hidden; white-space: nowrap;text-overflow: ellipsis">
<a href="/web/@Current.Id">@Current.EpisodeTitle</a>
</h5>
<p class="video-text">
@Current.Name
<br />
时长:@Current.DurationText
<br />
文件体积:@Current.SizeText
<br />
上次播放:@Current.LastPlay
</p>
</div>
</div>
</div>

<div class="clearfix row nobords">
<div class="col-md-3 col-xs-12 float-left nobords">
<div class="list-group li">
<a href="" class="list-group-item list-group-item-action active rounded-0 line-limit-length">作品列表</a>
@Each.AnimeTitles
<a href="/[email protected]" class="list-group-item list-group-item-action rounded-0 line-limit-length"><span class="badge badge-primary">@Current.VideoCount</span> @Current.AnimeTitle</a>
@EndEach
@EndIf
</div>
<a href="/index.html" class="list-group-item list-group-item-action active rounded-0 line-limit-length">返回首页</a>
</div>
</div>

<hr>
<div class="container">
<div class="row text-center">
<div class="col-12">
<p>@Model.WebSiteName 由弹弹play"远程访问"工具提供支持. All rights reserved. 保留一切权利</p>
<p>@Model.ServerInfo</p>
<div class=" col-md-9 col-xs-12 float-left transform">
@If.ShowVideoList
@Each.VideoFiles
<div class="col-sm-6 col-md-4 float-left pt-4">
<div class="card">
<a href="/web/@Current.Id">
<img class="card-img-top" src="/image/@Current.Id" alt="Card image cap">
</a>
<div class="card-body">
<h5 class="card-title line-limit-length">
<a href="/[email protected]">@Current.AnimeTitle</a>
</h5>
<h5 class="card-title" style="overflow: hidden; white-space: nowrap;text-overflow: ellipsis">
</h5>
<p class="video-text line-limit-length">
<a href="/web/@Current.Id">@Current.EpisodeTitle</a>
<br>
@Current.Name
<br>
时长:@Current.DurationText
<br>
文件体积:@Current.SizeText
<br>
上次播放:@Current.LastPlay
<br>
<script>
$(document).ready(function(){
$("#@Current.Hash").click(function(){
$.get("/api/v1/load/@Current.Hash",function(data,status){

});
});
});
</script>
<button [email protected] class="btn btn-primary">在设备上播放</button>
</p>
</div>
</div>
</div>
@EndEach
@EndIf

<div class="col-12 float-right text-center pt-5">
<p>弹@Model.WebSiteName 由弹弹play"远程访问"工具提供支持. All rights reserved. 保留一切权利<br/>@Model.ServerInfo</p>
<p></p>
</div>

</div>
<script src="js/jquery-3.2.1.min.js"></script>


</div>



<script src="js/popper.min.js"></script>
<script src="js/bootstrap-4.0.0.js"></script>

</body>
</html>

</body></html>