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
2fae6713
Commit
2fae6713
authored
Dec 02, 2020
by
quentin.vrel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Home page
parent
6f2fedfb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
3 deletions
+102
-3
ButtonText.vue
frontend/src/components/ButtonText.vue
+48
-0
SvgButton.vue
frontend/src/components/SvgButton.vue
+2
-2
index.js
frontend/src/router/index.js
+6
-1
Home.vue
frontend/src/views/Home.vue
+46
-0
No files found.
frontend/src/components/ButtonText.vue
0 → 100644
View file @
2fae6713
<
template
>
<button
class=
"text-button"
:style=
"this.style"
v-on:click=
"this.emit"
>
{{
text
}}
</button>
</
template
>
<
style
>
.text-button
{
background
:
transparent
;
border
:
none
;
margin-bottom
:
36px
;
font-family
:
Shojumaru
;
font-style
:
normal
;
font-weight
:
normal
;
font-size
:
48px
;
line-height
:
64px
;
text-align
:
center
;
color
:
#000000
;
background
:
rgba
(
196
,
196
,
196
,
0.6
);
padding
:
20px
;
}
</
style
>
<
script
>
export
default
{
props
:
{
text
:
{
type
:
String
,
default
:
''
},
width
:
{
type
:
[
String
],
default
:
"750px"
},
height
:
{
type
:
[
String
],
default
:
"130px"
},
click
:
{
type
:
String
,
default
:
''
}
},
computed
:
{
style
()
{
const
style
=
{
height
:
this
.
height
,
maxWidth
:
this
.
width
}
return
style
;
},
emit
()
{
const
emit
=
"$emit('"
+
this
.
click
+
"')"
;
return
emit
}
}
}
</
script
>
\ No newline at end of file
frontend/src/components/SvgButton.vue
View file @
2fae6713
<
template
>
<
template
>
<button
:onclick=
"this.onclick"
>
<button
class=
"svg-button"
:onclick=
"this.onclick"
>
<img
:src=
"this.svg"
:width=
"this.width"
:height=
"this.height"
/>
<img
:src=
"this.svg"
:width=
"this.width"
:height=
"this.height"
/>
</button>
</button>
</
template
>
</
template
>
<
style
>
<
style
>
button
{
.svg-
button
{
background
:
transparent
;
background
:
transparent
;
border
:
none
;
border
:
none
;
margin
:
50px
;
margin
:
50px
;
...
...
frontend/src/router/index.js
View file @
2fae6713
import
Vue
from
'vue'
import
Vue
from
'vue'
import
VueRouter
from
'vue-router'
import
VueRouter
from
'vue-router'
import
Home
from
'../views/Home.vue'
Vue
.
use
(
VueRouter
)
Vue
.
use
(
VueRouter
)
const
routes
=
[
const
routes
=
[
{
path
:
'/'
,
name
:
'Home'
,
component
:
Home
},
{
{
path
:
'/about'
,
path
:
'/about'
,
name
:
'About'
,
name
:
'About'
,
...
...
frontend/src/views/Home.vue
0 → 100644
View file @
2fae6713
<
template
>
<div
class=
"home"
>
<page-title
pagetitle=
"Riichi Mahjong"
/>
<form
action=
"#"
@
submit
.
prevent=
"login"
>
<button-text
width=
"615px"
height=
"130px"
text=
"Se Connecter"
/>
</form>
<form
action=
"#"
@
submit
.
prevent=
"register"
>
<button-text
width=
"615px"
height=
"130px"
text=
"S'Enregistrer"
/>
</form>
</div>
</
template
>
<
script
>
import
PageTitle
from
'@/components/PageTitle.vue'
import
ButtonText
from
'../components/ButtonText.vue'
export
default
{
name
:
'Home'
,
components
:
{
PageTitle
,
ButtonText
},
methods
:
{
login
:
function
(){
this
.
$router
.
push
(
'login'
);
},
register
:
function
(){
this
.
$router
.
push
(
'register'
);
}
}
}
</
script
>
<
style
>
.home
{
position
:
relative
;
top
:
200px
;
display
:
flex
;
flex-direction
:
column
;
}
.home
*
{
margin-left
:
auto
;
margin-right
:
auto
;
}
</
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