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

初始畫面房間清單 #32

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
144 changes: 144 additions & 0 deletions frontend/components/GameRoom.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<template>
<ul class="game-room font-cubic">
<button class="left-arrow"></button>
<li class="game-room_name">
<div>
<h2>房間名稱</h2>
<p>人數:4/8</p>
<p>房主:player name</p>
</div>
<button>加入</button>
</li>
<li class="game-room_name">
<div>
<h2>房間名稱</h2>
<p>人數:4/8</p>
<p>房主:player name</p>
</div>
<button>加入</button>
</li>
<li class="game-room_name">
<div>
<h2>房間名稱</h2>
<p>人數:4/8</p>
<p>房主:player name</p>
</div>
<button>加入</button>
</li>
<li class="game-room_name">
<div>
<h2>房間名稱</h2>
<p>人數:4/8</p>
<p>房主:player name</p>
</div>
<button>加入</button>
</li>
<li class="game-room_name">
<div>
<h2>房間名稱</h2>
<p>人數:4/8</p>
<p>房主:player name</p>
</div>
<button>加入</button>
</li>
<li class="game-room_name">
<div>
<h2>房間名稱</h2>
<p>人數:4/8</p>
<p>房主:player name</p>
</div>
<button>加入</button>
</li>
<li class="game-room_name">
<div>
<h2>房間名稱</h2>
<p>人數:4/8</p>
<p>房主:player name</p>
</div>
<button>加入</button>
</li>
<li class="game-room_name">
<div>
<h2>房間名稱</h2>
<p>人數:4/8</p>
<p>房主:player name</p>
</div>
<button>加入</button>
</li>
</ul>
</template>

<style>
.game-room_name, .game-room_name button{
font-family: 'Cubic_11';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

設定了錯誤的字型

Screenshot 2023-09-08 at 12 30 28 AM

Screenshot 2023-09-08 at 12 30 47 AM

font-weight: 400;
}
.game-room{
box-sizing: border-box;
width: 1239px;
height: 717px;
padding: 56px 48px;
border: 4px solid #939393;
border-radius: 20px;
background-color: rgba(132, 132, 132, 0.20);
display: flex;
flex-wrap: wrap;
position: relative;
}
.left-arrow{
width: 32px;
height: 32px;
background-image: url("../assets/left arrow.png");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

連結位置錯誤
Screenshot 2023-09-08 at 12 29 30 AM

position: absolute;
left: 19.5px;
top: 20px;
border: none;
cursor: pointer;
}
.game-room_name{
box-sizing: border-box;
width: 554px;
height: 141px;
background-color: rgba(132, 132, 132, 0.20);
border-radius: 20px;
display: flex;
justify-content: space-between;
}
.game-room_name:not(:last-of-type){
margin-right: 11px;
margin-bottom: 11px;
}
.game-room_name div{
margin-left: 24px;
margin-top: 24px;
margin-bottom: 21px;
line-height: 1;
text-align: left;
}
.game-room_name h2{
color: #FFC700;
font-size: 32px;
margin: 0;
}
.game-room_name p{
color: #FFF;
font-size: 20px;
margin: 0;
}
.game-room_name h2, p:not(:last-of-type){
margin-bottom: 12px;
}
.game-room_name button{
color: #000;
font-size: 20px;
background-color: #FFD15C;
border: none;
width: 91px;
height: 91px;
border-radius: 50px;
margin-top: 25px;
margin-right: 23px;
margin-bottom: 25px;
cursor: pointer;
}
</style>
Binary file added frontend/public/leftarrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.