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
f670ca08
Commit
f670ca08
authored
Dec 04, 2020
by
quentin.vrel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
we have winds !
parent
b7e55709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
2 deletions
+76
-2
Betaparty.vue
frontend/src/views/Betaparty.vue
+76
-2
No files found.
frontend/src/views/Betaparty.vue
View file @
f670ca08
<
template
>
<
template
>
<div
class=
"about"
>
<div
class=
"about"
>
<h1>
This is minimal page
</h1>
<hand
class=
"player-hand"
/>
<hand/>
<div
class=
"winds"
>
<img
:src=
"this.topWindGlyph"
class=
"player-wind top-wind"
>
<img
:src=
"this.rightWindGlyph"
class=
"player-wind right-wind"
>
<img
:src=
"this.bottomWindGlyph"
class=
"player-wind bottom-wind"
>
<img
:src=
"this.leftWindGlyph"
class=
"player-wind left-wind"
>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -15,11 +20,80 @@ export default {
...
@@ -15,11 +20,80 @@ export default {
data
(){
//data must be a function
data
(){
//data must be a function
return
{
return
{
id
:
10
,
id
:
10
,
topWindGlyph
:
null
,
rightWindGlyph
:
null
,
bottomWindGlyph
:
null
,
leftWindGlyph
:
null
,
}
}
},
mounted
()
{
this
.
topWindGlyph
=
require
(
'@/assets/img/mahjong-tiles/Black/Pei.svg'
)
this
.
rightWindGlyph
=
require
(
'@/assets/img/mahjong-tiles/Black/Shaa.svg'
)
this
.
bottomWindGlyph
=
require
(
'@/assets/img/mahjong-tiles/Black/Nan.svg'
)
this
.
leftWindGlyph
=
require
(
'@/assets/img/mahjong-tiles/Black/Ton.svg'
)
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.player-hand
{
position
:
absolute
;
bottom
:
9%
;
left
:
200px
;
}
.winds
{
width
:
276px
;
height
:
276px
;
position
:
absolute
;
top
:
50%
;
margin-top
:
-138px
;
left
:
560px
;
}
.winds
::after
{
content
:
""
;
background
:
url('../assets/img/mahjong-tiles/Black/Ton.svg')
;
height
:
276px
;
opacity
:
0.5
;
top
:
0
;
left
:
0
;
bottom
:
0
;
right
:
0
;
position
:
absolute
;
z-index
:
-1
;
background-position
:
center
;
background-size
:
contain
;
background-repeat
:
no-repeat
;
}
.player-wind
{
width
:
74px
;
height
:
100px
;
position
:
absolute
;
left
:
101px
;
right
:
101px
;
top
:
88px
;
bottom
:
88px
;
}
.top-wind
{
top
:
0
;
bottom
:
176px
;
}
.right-wind
{
right
:
0
;
left
:
202px
;
}
.bottom-wind
{
bottom
:
0
;
top
:
176px
;
}
.left-wind
{
left
:
0
;
right
:
202px
;
}
</
style
>
</
style
>
\ No newline at end of file
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