Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: game-scene #27

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/components/game-avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
});

// round 為 false: 等待中,round 為 true 遊戲中
const round = true;
const round = false;
</script>

<style>
Expand Down
74 changes: 64 additions & 10 deletions frontend/components/game-scene.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,71 @@
<script setup></script>

<template>
<div class="game-scene"></div>
<div class="game-scene font-cubic">
<div class="game-title">
<p class="font-ch" data-stroke="印加寶藏">印加寶藏</p>
<p class="font-en" data-stroke="INCAN GOLD">INCAN GOLD</p>
</div>
<div class="game-btns">
<button type="button" class="btn-ready">準備</button>
</div>
</div>
</template>

<style>
.game-scene {
width: 1024px;
height: 476px;
/* background-size: contain;
background-position: center; */
background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./machu-picchu.png') center/contain;
/* background-image: url('./machu-picchu.png'); */
border-radius: 20px;
}
.game-scene {
width: 1024px;
height: 476px;
/* background-size: contain;
background-position: center; */
background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url("./machu-picchu.png") center/contain;
/* background-image: url('./machu-picchu.png'); */
border-radius: 20px;
}

.game-title {
position: relative;
padding: 47px 56px 58px 75px;
}

.font-ch {
position: relative;
margin: 0;
z-index: 10;
font-size: 128px;
line-height: 150px;
letter-spacing: 0.27em;
}

.font-ch::before,
.font-en::before {
content: attr(data-stroke);
position: absolute;
z-index: -1;
-webkit-text-stroke: 8px rgba(255, 199, 0, 1);
}

.font-en {
position: absolute;
margin: 0;
top: 159px;
left: 425px;
font-size: 90px;
line-height: 105px;
z-index: 9;
color: #fff;
}

.game-btns {
text-align: center;
margin-top: 58px;
}

.btn-ready {
width: 203px;
padding: 16px 0;
font-size: 38px;
background: center / cover no-repeat url("/ready.png");
}
</style>
Binary file added frontend/public/ready.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.