-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (59 loc) · 1.83 KB
/
index.html
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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>plos-clan html-template</title>
<script src="js/tailwindcss.js"></script>
<script defer src="js/alpinejs.js"></script>
<style>
a {
position: relative;
overflow: visible;
}
a::after {
position: absolute;
bottom: -1px;
left: 0;
width: 0;
height: 2px;
content: '';
transition: width 0.3s ease;
opacity: 0.75;
background-color: currentColor;
}
a:hover::after {
width: 100%;
}
</style>
</head>
<body class="bg-gray-100 min-h-screen flex flex-col items-center justify-center">
<div class="m-4 p-4 bg-white rounded-lg shadow-lg">
<h1 class="text-3xl font-bold text-center">一些轻量的网页</h1>
<span class="text-sm text-gray-500 text-right block w-full">by
<a href="https://github.com/plos-clan">plos-clan</a></span>
</div>
<div x-data="main()" class="flex flex-wrap justify-center m-auto ">
<template x-for="(data, path) in projects">
<div class="w-1/4 m-4 p-4 bg-white rounded-lg shadow-lg cursor-pointer" @click="window.location.href=`${path}/`">
<h2 class="text-xl text-center mb-4" x-text="data[0]"></h2>
<img alt="screenshot" :src="`${path}/screenshot.png`">
<template x-if="data[1]">
<p class="mt-2" x-text="data[1]"></p>
</template>
</div>
</template>
</div>
<script>
function main() {
return {
projects: {
'background/ripple': ['水纹效果', '一个简单的水纹效果'],
'2048': ['2048 游戏', '一个简单的 2048 游戏'],
'osb-player': ['OSU! 故事板播放器', '一个简单的 OSU! 故事板播放器'],
},
};
}
</script>
</body>
</html>