dootask/resources/views/desktop.blade.php
2022-03-30 17:29:12 +08:00

201 lines
4.4 KiB
PHP
Executable File

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="format-detection" content="telephone=no" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'WebPage') }} - v{{ $version }}</title>
<link rel="shortcut icon" href="{{ asset_main('favicon.ico') }}">
<style>
* {
margin: 0;
padding: 0;
}
body {
font-size: 14px;
color: #555;
}
.mirror {
overflow: auto;
width: 1180px;
margin: 0 auto 20px
}
.mirror-nav {
width: 1180px;
margin: 20px auto 10px
}
.table {
width: 100%;
border-collapse: collapse;
border-spacing: 0;
margin-bottom: 20px;
font-size: 12pt
}
td, th {
text-align: left;
}
td {
padding: 4px 8px;
border-top: 0;
word-break: break-all
}
td a {
color: #1890ff;
}
a {
text-decoration: none;
}
a:link {
color: #088acb
}
thead tr {
height: 44px;
border-bottom: 1px solid rgba(61, 61, 61, .1)
}
tbody tr:hover {
background-color: #e0f3fc
}
tbody tr:first-child:hover {
background-color: inherit;
}
tbody tr:first-child td {
height: 6px;
padding: 0;
}
.fileDate, .fileName, .fileSize {
padding-left: 8px
}
.date, .fileDate {
width: 25%;
line-height: 26px
}
.fileName, .link {
width: 55%;
line-height: 26px
}
.fileSize, .size {
width: 20%;
line-height: 26px
}
@media (max-width: 768px) {
.mirror {
width: 100%;
padding: 0 15px 10px
}
.mirror, tbody {
overflow: auto
}
tr {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex
}
td {
padding: 4px 8px;
border-top: 0;
white-space: nowrap;
overflow: auto
}
.fileName, .link {
min-width: 280px;
width: 55%
}
.date, .fileDate {
min-width: 190px;
width: 25%
}
.fileSize, .size {
min-width: 150px;
width: 20%
}
.fileSize {
margin-right: 10px
}
.fileSize a {
display: block;
white-space: nowrap
}
a:hover {
color: #ff791a
}
.mirror-nav {
padding-left: 15px
}
}
</style>
</head>
<body>
@extends('ie')
<h1 class="mirror-nav">Download of v{{ $version }}</h1>
<div class="mirror">
<table class="table">
<thead>
<tr>
<th class="fileName">File Name</th>
<th class="fileSize">File Size</th>
<th class="fileDate">Date</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
@forelse($files as $file)
<tr>
<td class="link"><a href="{{ $file['url'] }}">{{ $file['name'] }}</a></td>
<td class="size">{{ $file['size'] }}</td>
<td class="date">{{ $file['time'] }}</td>
</tr>
@empty
<tr>
<td>List is empty</td>
<td></td>
<td></td>
</tr>
@endforelse
</tbody>
</table>
</div>
</body>
</html>