Skip to content

Commit d46db70

Browse files
committed
add yaml
1 parent 24ab37f commit d46db70

File tree

10 files changed

+17852
-646
lines changed

10 files changed

+17852
-646
lines changed

.github/workflows/main.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build Pages
2+
3+
on:
4+
push:
5+
branches: [ source ]
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Install
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install nasm -y
20+
npm install -g hexo-cli
21+
npm install
22+
npm install hexo-all-minifier --save
23+
24+
- name: Build
25+
run: |
26+
hexo clean
27+
git clone https://oauth2:${{ secrets.GITHUB_TOKEN }}@github.com/APC-ScienceUnion/APC-ScienceUnion.github.io.git public -b main --depth=1
28+
cd public
29+
git rm -rf .
30+
cd ..
31+
hexo g
32+
cp -r ./404 ./public
33+
34+
- name: Deploy
35+
run: |
36+
cd public
37+
git config --global user.email "[email protected]"
38+
git config --global user.name "Auto Deploy Bot"
39+
git add .
40+
git commit -m "Automatic Deploy"
41+
git push -f
42+

404/404.html

Lines changed: 28 additions & 0 deletions
Large diffs are not rendered by default.

404/assets/offline-sprite-1x.png

2.46 KB
Loading

404/assets/offline-sprite-2x.png

3.04 KB
Loading

404/assets/screenshot.gif

135 KB
Loading

404/game.css

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
/* Copyright 2013 The Chromium Authors. All rights reserved.
2+
* Use of this source code is governed by a BSD-style license that can be
3+
* found in the LICENSE file. */
4+
5+
html,body{
6+
padding: 0;
7+
margin: 0;
8+
width: 100%;
9+
height: 100%;
10+
}
11+
12+
.icon {
13+
-webkit-user-select: none;
14+
display: inline-block;
15+
}
16+
17+
.icon-offline {
18+
content: -webkit-image-set(
19+
url(default_100_percent/offline/100-error-offline.png) 1x,
20+
url(default_200_percent/offline/200-error-offline.png) 2x);
21+
position: relative;
22+
}
23+
24+
.hidden {
25+
display: none;
26+
}
27+
28+
/* Offline page */
29+
.offline .interstitial-wrapper {
30+
color: #2b2b2b;
31+
font-size: 1em;
32+
line-height: 1.55;
33+
margin: 0 auto;
34+
max-width: 600px;
35+
padding-top: 100px;
36+
width: 100%;
37+
}
38+
39+
.offline .runner-container {
40+
height: 150px;
41+
max-width: 600px;
42+
overflow: hidden;
43+
position: absolute;
44+
top: 35px;
45+
width: 44px;
46+
}
47+
48+
.offline .runner-canvas {
49+
height: 150px;
50+
max-width: 600px;
51+
opacity: 1;
52+
overflow: hidden;
53+
position: absolute;
54+
top: 0;
55+
z-index: 2;
56+
}
57+
58+
.offline .controller {
59+
background: rgba(247,247,247, .1);
60+
height: 100vh;
61+
left: 0;
62+
position: absolute;
63+
top: 0;
64+
width: 100vw;
65+
z-index: 1;
66+
}
67+
68+
#offline-resources {
69+
display: none;
70+
}
71+
72+
@media (max-width: 420px) {
73+
.suggested-left > #control-buttons,
74+
.suggested-right > #control-buttons {
75+
float: none;
76+
}
77+
78+
.snackbar {
79+
left: 0;
80+
bottom: 0;
81+
width: 100%;
82+
border-radius: 0;
83+
}
84+
}
85+
86+
@media (max-height: 350px) {
87+
h1 {
88+
margin: 0 0 15px;
89+
}
90+
91+
.icon-offline {
92+
margin: 0 0 10px;
93+
}
94+
95+
.interstitial-wrapper {
96+
margin-top: 5%;
97+
}
98+
99+
.nav-wrapper {
100+
margin-top: 30px;
101+
}
102+
}
103+
104+
@media (min-width: 600px) and (max-width: 736px) and (orientation: landscape) {
105+
.offline .interstitial-wrapper {
106+
margin-left: 0;
107+
margin-right: 0;
108+
}
109+
}
110+
111+
@media (min-width: 420px) and (max-width: 736px) and
112+
(min-height: 240px) and (max-height: 420px) and
113+
(orientation:landscape) {
114+
.interstitial-wrapper {
115+
margin-bottom: 100px;
116+
}
117+
}
118+
119+
@media (min-height: 240px) and (orientation: landscape) {
120+
.offline .interstitial-wrapper {
121+
margin-bottom: 90px;
122+
}
123+
124+
.icon-offline {
125+
margin-bottom: 20px;
126+
}
127+
}
128+
129+
@media (max-height: 320px) and (orientation: landscape) {
130+
.icon-offline {
131+
margin-bottom: 0;
132+
}
133+
134+
.offline .runner-container {
135+
top: 10px;
136+
}
137+
}
138+
139+
@media (max-width: 240px) {
140+
button {
141+
padding-left: 12px;
142+
padding-right: 12px;
143+
}
144+
145+
.interstitial-wrapper {
146+
overflow: inherit;
147+
padding: 0 8px;
148+
}
149+
}
150+
151+
@media (max-width: 120px) {
152+
button {
153+
width: auto;
154+
}
155+
}

0 commit comments

Comments
 (0)