Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Tabu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dennis Willers
Tabu
Commits
d42b70d9
Commit
d42b70d9
authored
Dec 30, 2020
by
Isabell Heider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Customized Team Buttons
parent
f096b7f9
Pipeline
#304
passed with stages
in 5 minutes and 17 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
overview.component.html
src/app/overview/overview.component.html
+2
-2
overview.component.scss
src/app/overview/overview.component.scss
+5
-8
overview.component.ts
src/app/overview/overview.component.ts
+6
-0
No files found.
src/app/overview/overview.component.html
View file @
d42b70d9
<div
style=
"text-align: center; margin-left: 15em; margin-right: 15em; margin-top: 5em;"
>
<div
style=
"text-align: center; margin-left: 15em; margin-right: 15em; margin-top: 5em;"
>
<mat-card
class=
"transparent"
>
<mat-card
class=
"transparent"
>
<h2>
{{membership}}
</h2>
<h2>
{{membership}}
</h2>
<button
class =
"red
"
(click)=
"joinTeam('red')"
>
<button
mat-raised-button
class =
"{{red}}
"
(click)=
"joinTeam('red')"
>
<mat-icon
color =
"warn"
aria-hidden=
"false"
aria-label=
"home icon red"
>
home
</mat-icon>
<mat-icon
color =
"warn"
aria-hidden=
"false"
aria-label=
"home icon red"
>
home
</mat-icon>
</button>
</button>
<button
class =
"blue
"
(click)=
"joinTeam('blue')"
>
<button
mat-raised-button
class =
"{{blue}}
"
(click)=
"joinTeam('blue')"
>
<mat-icon
style=
"color: darkblue"
aria-hidden=
"false"
aria-label=
"home icon blue"
>
home
</mat-icon>
<mat-icon
style=
"color: darkblue"
aria-hidden=
"false"
aria-label=
"home icon blue"
>
home
</mat-icon>
</button>
</button>
...
...
src/app/overview/overview.component.scss
View file @
d42b70d9
...
@@ -9,19 +9,16 @@ table {
...
@@ -9,19 +9,16 @@ table {
}
}
.blue
{
.blue
{
border-color
:
darkblue
;
margin
:
5px
;
margin
:
5px
;
cursor
:
pointer
;
background-color
:
rgba
(
0
,
0
,
139
,
0
.5
)
;
}
}
.red
{
.red
{
border-color
:
red
;
margin
:
5px
;
margin
:
5px
;
cursor
:
pointer
;
background-color
:
rgba
(
200
,
0
,
0
,
0
.3
)
;
}
}
.
button
:active
.
choose
{
{
margin
:
5px
;
background-color
:darkred
;
cursor
:
pointer
;
}
}
src/app/overview/overview.component.ts
View file @
d42b70d9
...
@@ -9,6 +9,8 @@ import {GameStatus} from '../interface/gameStatus';
...
@@ -9,6 +9,8 @@ import {GameStatus} from '../interface/gameStatus';
styleUrls
:
[
'
./overview.component.scss
'
]
styleUrls
:
[
'
./overview.component.scss
'
]
})
})
export
class
OverviewComponent
implements
OnInit
{
export
class
OverviewComponent
implements
OnInit
{
red
=
'
choose
'
;
blue
=
'
choose
'
;
nextTeam
=
''
;
nextTeam
=
''
;
team
=
''
;
team
=
''
;
buttonPlayDisabled
=
true
;
buttonPlayDisabled
=
true
;
...
@@ -35,10 +37,14 @@ export class OverviewComponent implements OnInit {
...
@@ -35,10 +37,14 @@ export class OverviewComponent implements OnInit {
if
(
this
.
team
===
'
red
'
){
if
(
this
.
team
===
'
red
'
){
this
.
membership
=
'
Du gehörst zu Team rot!
'
;
this
.
membership
=
'
Du gehörst zu Team rot!
'
;
this
.
buttonPlayDisabled
=
false
;
this
.
buttonPlayDisabled
=
false
;
this
.
red
=
'
red
'
;
this
.
blue
=
'
choose
'
;
}
}
else
if
(
this
.
team
===
'
blue
'
){
else
if
(
this
.
team
===
'
blue
'
){
this
.
membership
=
'
Du gehörst zu Team blau!
'
;
this
.
membership
=
'
Du gehörst zu Team blau!
'
;
this
.
buttonPlayDisabled
=
false
;
this
.
buttonPlayDisabled
=
false
;
this
.
blue
=
'
blue
'
;
this
.
red
=
'
choose
'
;
}
}
else
if
(
this
.
team
===
'
null
'
){
else
if
(
this
.
team
===
'
null
'
){
this
.
membership
=
'
Wähle dein Team
'
;
this
.
membership
=
'
Wähle dein Team
'
;
...
...
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