Compare commits

...

13 Commits

Author SHA1 Message Date
f654d4f55b fix: listen all ip
All checks were successful
Deploy Static Website / Deploy to Web Server (push) Successful in 1m35s
2023-12-25 00:33:21 +08:00
bb2a674bd1 feat: update ci
All checks were successful
Deploy Static Website / Deploy to Web Server (push) Successful in 1m49s
2023-12-25 00:27:21 +08:00
914cefe780 Merge branch 'main' of https://git.mamahaha.work/sangge/hhl_project 2023-12-25 00:25:15 +08:00
e9a93d8686 feat: create ci 2023-12-25 00:25:13 +08:00
8a427f9a06 更改松饼位置 2023-12-25 00:15:02 +08:00
348a826919 更改图片位置 2023-12-25 00:01:14 +08:00
94a41fafc6 Merge branch 'main' of https://git.mamahaha.work/sangge/hhl_project 2023-12-24 23:54:45 +08:00
8bda6455c1 更改伊丽莎白餐厅图片位置大小 2023-12-24 23:54:43 +08:00
5c5ef6d063 Merge branch 'main' of https://git.mamahaha.work/sangge/hhl_project 2023-12-24 23:49:33 +08:00
0777856416 fix: name error 2023-12-24 23:49:31 +08:00
05c06e938b Merge branch 'main' of https://git.mamahaha.work/sangge/hhl_project 2023-12-24 23:48:33 +08:00
0b482f6381 更改图片位置 2023-12-24 23:48:31 +08:00
fd91742e9c feat: add hint page 2023-12-24 23:39:02 +08:00
10 changed files with 125 additions and 39 deletions

View File

@@ -0,0 +1,31 @@
name: Deploy Static Website
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to Web Server
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
driver: docker
- name: Build Docker image
run: |
docker buildx build . -t git.mamahaha.work/sangge/hhl -f Dockerfile
- name: Start Docker
run: |
docker run -d -p 0.0.0.0:4010:80 git.mamahaha.work/sangge/hhl:latest

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# 使用官方的 Nginx 镜像作为基础镜像
FROM nginx:latest
# 定义工作目录
WORKDIR /usr/share/nginx/html
# 移除默认的 Nginx 静态资源
RUN rm -rf ./*
# 将静态网页内容复制到容器中
COPY . /usr/share/nginx/html
# 暴露端口 80
EXPOSE 80
# 启动 Nginx 服务
CMD ["nginx", "-g", "daemon off;"]

View File

@@ -41,7 +41,7 @@
<img src="asset/pic/qinshihuang/hint_bottom.png" alt="提示按钮" onclick="handleHint('bottom');"> <img src="asset/pic/qinshihuang/hint_bottom.png" alt="提示按钮" onclick="handleHint('bottom');">
</div> </div>
<div id="hintpage" class="hintpage"> <div id="hintpage" class="hintpage">
<img src="asset/pic/qinshihuang/hint_page.png" alt="提示" onclick="handleHint('page');"> <img src="asset/pic/alexander/hint_page.png" alt="提示" onclick="handleHint('page');">
</div> </div>
<div id="customer1" class="customer"> <div id="customer1" class="customer">
<img src="asset/pic/qinshihuang/Customer1_YoungMan.png" alt="中年男"> <img src="asset/pic/qinshihuang/Customer1_YoungMan.png" alt="中年男">

View File

@@ -136,27 +136,39 @@
display: none; display: none;
} }
#lamb img{ #lamb img{
left: -10px; left: -1px;
top: 643px!important;
width: 268px!important;
height: 268px!important;
display: none; display: none;
} }
#yoghurt img{ /* 芝士 */ #yoghurt img{ /* 芝士 */
left: 170px; left: 248px;
top: 679px!important;
width: 228px!important;
height: 228px!important;
display: none; display: none;
} }
#moussaka img{ #moussaka img{
left: 380px; left: 461px;
top: 673px!important;
width: 258px!important;
height: 258px!important;
display: none; display: none;
} }
#salad img{ #salad img{
left: 590px; left: 749px;
top: 675px!important;
width: 258px!important;
height: 258px!important;
display: none; display: none;
} }
#cheese img{ #cheese img{
left: 750px; left: 1021px;
top: 719px!important; top: 678px!important;
width: 181px!important; width: 232px!important;
height: 183px!important; height: 232px!important;
display: none; display: none;
} }

View File

@@ -132,27 +132,38 @@
display: none; display: none;
} }
#fish_chips img{ #fish_chips img{
left: -10px; left: 18px;
top: 628px!important;
width: 300px!important;
height: 300px!important;
display: none; display: none;
} }
#english_breakfast img{ #english_breakfast img{
left: 170px; left: 254px;
top: 640px!important;
width: 259px!important;
height: 259px!important;
display: none; display: none;
} }
#pudding img{ #pudding img{
left: 380px; left: 510px;
top: 680px!important;
width: 190px!important;
height: 190px!important;
display: none; display: none;
} }
#spaghetti_bolognes img{ #spaghetti_bolognes img{
left: 590px; left: 725px;
top: 673px!important;
width: 224px!important;
height: 224px!important;
display: none; display: none;
} }
#cream_tea img{ #cream_tea img{
left: 750px; left: 954px;
top: 719px!important; top: 623px!important;
width: 181px!important; width: 259px!important;
height: 183px!important; height: 259px!important;
display: none; display: none;
} }

View File

@@ -37,6 +37,8 @@
position: absolute; position: absolute;
width: 833px; width: 833px;
height: 835px; height: 835px;
top: 279px;
left: 1006px;
z-index: 4; z-index: 4;
} }

View File

@@ -16,9 +16,9 @@
#restaurant .customer img { #restaurant .customer img {
position: absolute; position: absolute;
z-index: 0; z-index: 0;
width: 1024px; width: 999px;
height: 1024px; height: 999px;
top:50px; top: 88px;
left: -100px; left: -100px;
} }
#restaurant .dish img { #restaurant .dish img {
@@ -31,14 +31,16 @@
#restaurant .empire img { #restaurant .empire img {
position: absolute; position: absolute;
width: 800px; width: 804px;
height: 800px; height: 807px;
top: 305px;
left: 1052px;
z-index: 4; z-index: 4;
} }
#nixon img{ /* nixon 16 */ #nixon img{ /* nixon 16 */
top: 235px; top: 305px;
left: 1050px; left: 1052px;
display: none; display: none;
} }
#nixon1 img{ /* 断头台 */ #nixon1 img{ /* 断头台 */
@@ -132,27 +134,38 @@
display: none; display: none;
} }
#burger img{ #burger img{
left: -10px; left: -13px;
top: 682px!important;
width: 229px!important;
height: 248px!important;
display: none; display: none;
} }
#hot_dog img{ #hot_dog img{
left: 170px; left: 201px;
top: 709px!important;
width: 229px!important;
height: 248px!important;
display: none; display: none;
} }
#apple_pie img{ #apple_pie img{
left: 380px; left: 444px;
top: 709px!important;
width: 229px!important;
height: 248px!important;
display: none; display: none;
} }
#fried_chicken img{ #fried_chicken img{
left: 590px; left: 692px;
top: 713px!important;
width: 229px!important;
height: 248px!important;
display: none; display: none;
} }
#pancakes img{ #pancakes img{
left: 750px; left: 926px;
top: 719px!important; top: 709px!important;
width: 181px!important; width: 213px!important;
height: 183px!important; height: 233px!important;
display: none; display: none;
} }

View File

@@ -41,7 +41,7 @@
<img src="asset/pic/qinshihuang/hint_bottom.png" alt="提示按钮" onclick="handleHint('bottom');"> <img src="asset/pic/qinshihuang/hint_bottom.png" alt="提示按钮" onclick="handleHint('bottom');">
</div> </div>
<div id="hintpage" class="hintpage"> <div id="hintpage" class="hintpage">
<img src="asset/pic/qinshihuang/hint_page.png" alt="提示" onclick="handleHint('page');"> <img src="asset/pic/elizabeth/hint_page.png" alt="提示" onclick="handleHint('page');">
</div> </div>
<div id="customer1" class="customer"> <div id="customer1" class="customer">
<img src="asset/pic/qinshihuang/Customer1_YoungMan.png" alt="中年男"> <img src="asset/pic/qinshihuang/Customer1_YoungMan.png" alt="中年男">
@@ -86,7 +86,7 @@
</div> </div>
<div id="spaghetti_bolognes" class="dish"> <div id="spaghetti_bolognes" class="dish">
<img src="asset/pic/elizabeth/Spaghetti_Bolognese.png" alt="Spaghetti_Bolognese" <img src="asset/pic/elizabeth/Spaghetti_Bolognese.png" alt="Spaghetti_Bolognese"
onclick="handleClick('spaghtti');"> onclick="handleClick('spaghetti');">
</div> </div>
<div id="cream_tea" class="dish"> <div id="cream_tea" class="dish">
<img src="asset/pic/elizabeth/cream_tea.png" alt="cream_tea" <img src="asset/pic/elizabeth/cream_tea.png" alt="cream_tea"

View File

@@ -41,7 +41,7 @@
<img src="asset/pic/qinshihuang/hint_bottom.png" alt="提示按钮" onclick="handleHint('bottom');"> <img src="asset/pic/qinshihuang/hint_bottom.png" alt="提示按钮" onclick="handleHint('bottom');">
</div> </div>
<div id="hintpage" class="hintpage"> <div id="hintpage" class="hintpage">
<img src="asset/pic/qinshihuang/hint_page.png" alt="提示" onclick="handleHint('page');"> <img src="asset/pic/louis16/hint_page.png" alt="提示" onclick="handleHint('page');">
</div> </div>
<div id="customer1" class="customer"> <div id="customer1" class="customer">
<img src="asset/pic/qinshihuang/Customer1_YoungMan.png" alt="中年男"> <img src="asset/pic/qinshihuang/Customer1_YoungMan.png" alt="中年男">

View File

@@ -41,7 +41,7 @@
<img src="asset/pic/qinshihuang/hint_bottom.png" alt="提示按钮" onclick="handleHint('bottom');"> <img src="asset/pic/qinshihuang/hint_bottom.png" alt="提示按钮" onclick="handleHint('bottom');">
</div> </div>
<div id="hintpage" class="hintpage"> <div id="hintpage" class="hintpage">
<img src="asset/pic/qinshihuang/hint_page.png" alt="提示" onclick="handleHint('page');"> <img src="asset/pic/nixon/hint_page.png" alt="提示" onclick="handleHint('page');">
</div> </div>
<div id="customer1" class="customer"> <div id="customer1" class="customer">
<img src="asset/pic/qinshihuang/Customer1_YoungMan.png" alt="中年男"> <img src="asset/pic/qinshihuang/Customer1_YoungMan.png" alt="中年男">