Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Quentin Vrel
projet-cdaw
Commits
6221fdfe
Commit
6221fdfe
authored
Dec 02, 2020
by
Zohten
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gvipers.imt-lille-douai.fr/QVrel/projet-cdaw
parents
48b124e4
9a7a9a7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
2 deletions
+95
-2
Lobby.vue
frontend/src/views/Lobby.vue
+95
-2
No files found.
frontend/src/views/Lobby.vue
View file @
6221fdfe
<
template
>
<
template
>
<div
class=
"lobby"
>
<div
class=
"lobby"
>
<user-ribbon
username=
"Josie Péritel"
pathToImage=
"avatar/criquette.jpg"
/>
<user-ribbon
class=
"lobby-ribbon"
username=
"Josie Péritel"
pathToImage=
"avatar/criquette.jpg"
/>
<div
class=
"lobby-content"
>
<div
class=
"lobby-column"
>
<page-title
pagetitle=
"Parties"
/>
<form
class=
"lobby-menu-form"
action=
"#"
@
submit
.
prevent=
"onSubmitMenu"
>
<button-text
id=
"profile"
width=
"100%"
height=
"130px"
text=
"Profil"
/>
<button-text
id=
"new"
width=
"100%"
height=
"130px"
text=
"Créer une partie"
/>
</form>
<form
class=
"lobby-menu-form"
action=
"#"
@
submit
.
prevent=
"onSubmitJoinPrivate"
>
<text-input
class=
"lobby-text-input"
id=
"code"
label=
"Code de la partie"
/>
<button-text
id=
"new"
width=
"100%"
height=
"130px"
text=
"Rejoindre partie privée"
/>
</form>
</div>
<div
class=
"lobby-column games-list"
>
<form
class=
"lobby-menu-form"
action=
"#"
@
submit
.
prevent=
"onSubmitJoinPublic"
>
<button-text
v-for=
"game of games"
:key=
"game.id"
:id=
"game.id"
width=
"100%"
height=
"80px"
:text=
"game.name"
/>
</form>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
// @ is an alias to /src
// @ is an alias to /src
import
UserRibbon
from
'@/components/UserRibbon.vue'
import
UserRibbon
from
'@/components/UserRibbon.vue'
import
PageTitle
from
'../components/PageTitle.vue'
import
ButtonText
from
'../components/ButtonText.vue'
import
TextInput
from
'../components/form/TextInput.vue'
export
default
{
export
default
{
name
:
'lobby'
,
name
:
'lobby'
,
components
:
{
components
:
{
UserRibbon
UserRibbon
,
PageTitle
,
ButtonText
,
TextInput
},
methods
:
{
onSubmitMenu
:
function
(){
if
(
event
.
submitter
.
id
==
'profile'
)
{
this
.
$router
.
push
(
'profile'
);
}
if
(
event
.
submitter
.
id
==
'new'
)
{
this
.
$router
.
push
(
'new'
);
}
},
onSubmitJoinPrivate
:
function
(){
this
.
$router
.
push
(
'joinprivate/'
+
document
.
getElementById
(
'code'
).
value
);
},
onSubmitJoinPublic
:
function
(
event
){
this
.
$router
.
push
(
'joinpublic/'
+
event
.
submitter
.
id
);
}
},
data
()
{
return
{
games
:
[
{
id
:
1
,
name
:
"Partie 1"
},
{
id
:
2
,
name
:
"Partie 2"
},
{
id
:
3
,
name
:
"Partie 3"
},
{
id
:
4
,
name
:
"Partie 4"
}
]
}
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.lobby-ribbon
{
margin-left
:
auto
;
margin-right
:
0
;
}
.lobby-content
{
display
:
flex
;
flex-direction
:
row
;
}
.lobby-column
{
width
:
50%
;
display
:
flex
;
flex-direction
:
column
;
padding
:
0
60px
;
}
.lobby-menu-form
{
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
margin-bottom
:
40px
;
}
.lobby
{
.lobby
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
.lobby-text-input
{
margin
:
0
;
padding
:
20px
;
background
:
rgba
(
196
,
196
,
196
,
0.6
);
margin-bottom
:
36px
;
}
.games-list
{
height
:
100%
;
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment