-
Notifications
You must be signed in to change notification settings - Fork 73
/
index.html.php
134 lines (116 loc) · 3.2 KB
/
index.html.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?php
require __DIR__ . '/vendor/autoload.php';
use cebe\markdown\GithubMarkdown;
$source = file_get_contents(__DIR__ . '/README.md');
$parser = new GithubMarkdown();
$readme = $parser->parse($source);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Composer国内镜像 | ZComposer 全量镜像开源</title>
<meta name="author" content="扣丁禅师<[email protected]>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.bootcss.com/twitter-bootstrap/3.3.5/css/bootstrap.min.css" />
<style>
html,
body {
height: 100%;
background: #FAFAFA;
}
.wrapper .container {
padding: 26px 20px;
color: #2d2d32;
}
.content p {
font-size: 14px;
margin-top: 10px;
line-height: 22px;
}
pre,
code {
background: #fff;
font-family: "Source Code Pro", Menlo, Consolas, "Courier New", Courier, monospace;
border-radius: 0;
border: none;
color: #2d2d32;
line-height: 12px;
font-size: 12px;
}
pre {
border-left: 2px solid #f28d1a;
}
.info-header {
padding-top: 20px;
text-align: center;
}
hr {
border-color: #F28D1A;
}
.wrap {
min-height: 100%;
height: auto;
margin: 0 auto -55px;
padding: 0 0 55px;
position: relative;
}
.wrapper-footer {
background: #2d2d32;
font-size: 14px;
line-height: 16px;
padding: 35px 0 20px;
}
footer p {
float: left;
color: #c3c3c3;
}
.wrapper-footer ul {
list-style: none;
}
.wrapper-footer li {
padding-bottom: 8px;
}
.wrapper-footer a {
color: #fff;
}
.wrapper-footer .social {
font-size: 26px;
}
.wrapper-footer .social li {
float: right;
margin-left: 15px;
}
.info-header .title {
font-size: 16px;
font-weight: 600;
color: #2d2d32;
}
</style>
</head>
<body>
<section class="wrap">
<section class="container content" role="main">
<div class="info-header">
<span class="title">镜像最后更新时间:</span>
<span class="release-date"><?php echo $update_at; ?></span>
</div>
<hr>
<?php echo $readme; ?>
</section>
</section>
<footer class="wrapper-footer">
<nav class="container">
</nav>
</footer>
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?642df4b4cce6054913720f58f84318ce";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>