Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RLG Maker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Romain DELEAU
RLG Maker
Commits
625acdfd
Commit
625acdfd
authored
Feb 27, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add rules sider-piece
parent
c2ba6f7e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
173 additions
and
1 deletion
+173
-1
app.component.html
src/app/app.component.html
+1
-0
app.module.ts
src/app/app.module.ts
+3
-1
rules.component.html
src/app/sider-pieces/rules/rules.component.html
+40
-0
rules.component.scss
src/app/sider-pieces/rules/rules.component.scss
+91
-0
rules.component.spec.ts
src/app/sider-pieces/rules/rules.component.spec.ts
+23
-0
rules.component.ts
src/app/sider-pieces/rules/rules.component.ts
+15
-0
No files found.
src/app/app.component.html
View file @
625acdfd
...
...
@@ -48,6 +48,7 @@
<app-comments
class=
"container-sider-element"
></app-comments>
<app-repeat
class=
"container-sider-element"
></app-repeat>
<app-characters
class=
"container-sider-element"
></app-characters>
<app-rules
class=
"container-sider-element"
></app-rules>
</div>
...
...
src/app/app.module.ts
View file @
625acdfd
...
...
@@ -20,6 +20,7 @@ import { CommentComponent } from './components/comment/comment.component';
import
{
RandomEventComponent
}
from
'./pieces/random-event/random-event.component'
;
import
{
CharactersComponent
}
from
'./sider-pieces/characters/characters.component'
;
import
{
CharacterComponent
}
from
'./components/character/character.component'
;
import
{
RulesComponent
}
from
'./sider-pieces/rules/rules.component'
;
import
{
DragScrollDirective
}
from
'./directives/drag-scroll.directive'
;
import
{
MouseWheelZoomDirective
}
from
'./directives/mouse-wheel-zoom.directive'
;
...
...
@@ -41,7 +42,8 @@ import { MouseWheelZoomDirective } from './directives/mouse-wheel-zoom.directive
CommentComponent
,
RandomEventComponent
,
CharactersComponent
,
CharacterComponent
CharacterComponent
,
RulesComponent
],
imports
:
[
BrowserModule
,
...
...
src/app/sider-pieces/rules/rules.component.html
0 → 100644
View file @
625acdfd
<div
class=
"piece"
>
<div
class=
"piece-form"
>
<div
class=
"piece-form-rules"
>
<div
class=
"piece-form-title"
>
Règles du jeu
</div>
<textarea></textarea>
</div>
<div
class=
"piece-form-ressources"
>
<div
class=
"piece-form-title"
>
Ressources / objets
</div>
<div
class=
"piece-form-ressources-object"
>
<div
class=
"piece-form-ressources-object-infos"
>
<div
class=
"piece-form-ressources-object-infos-name"
>
<label
for=
"name"
>
Nom
</label>
<input
name=
"name"
type=
"text"
/>
</div>
<div
class=
"piece-form-ressources-object-infos-quantity"
>
<label
for=
"quantity"
>
Quantité
</label>
<input
name=
"quantity"
type=
"text"
/>
</div>
</div>
<div
class=
"piece-form-ressources-object-infos"
>
<div
class=
"piece-form-ressources-object-infos-name"
>
<label
for=
"name"
>
Nom
</label>
<input
name=
"name"
type=
"text"
/>
</div>
<div
class=
"piece-form-ressources-object-infos-quantity"
>
<label
for=
"quantity"
>
Quantité
</label>
<input
name=
"quantity"
type=
"text"
/>
</div>
</div>
<button
mat-button
><mat-icon
fontIcon=
"add"
></mat-icon></button>
</div>
</div>
<div
class=
"piece-form-validate"
>
<button
mat-button
>
Valider
</button>
</div>
</div>
</div>
\ No newline at end of file
src/app/sider-pieces/rules/rules.component.scss
0 → 100644
View file @
625acdfd
.piece
{
--piece-background-color
:
#c6c2bd
;
width
:
300px
;
position
:
relative
;
background-color
:
var
(
--
piece-background-color
);
border
:
solid
black
1px
;
border-radius
:
10px
;
&
-form
{
margin
:
10px
5px
10px
5px
;
display
:
flex
;
flex-direction
:
column
;
button
{
border-radius
:
10px
;
background-color
:
white
;
}
&
-title
{
font-family
:
"Glacial Indifference Bold"
;
margin-bottom
:
10px
;
}
&
-rules
{
display
:
flex
;
flex-direction
:
column
;
margin-bottom
:
10px
;
textarea
{
background-image
:
url("../../../assets/background-images/rules.png")
;
background-position
:
center
;
background-repeat
:
no-repeat
;
background-size
:
30%
;
border-radius
:
10px
;
border
:
none
;
resize
:
vertical
;
min-height
:
100px
;
max-height
:
200px
;
padding
:
5px
5px
5px
5px
;
}
}
&
-ressources
{
input
{
height
:
30px
;
border
:
none
;
border-radius
:
10px
;
background-color
:
white
;
width
:
150px
;
}
&
-object
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
&
-infos
{
margin-bottom
:
10px
;
&
-name
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
}
&
-quantity
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
margin-top
:
5px
;
}
}
}
}
&
-validate
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
flex-end
;
button
{
margin-top
:
10px
;
}
}
}
}
\ No newline at end of file
src/app/sider-pieces/rules/rules.component.spec.ts
0 → 100644
View file @
625acdfd
import
{
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
RulesComponent
}
from
'./rules.component'
;
describe
(
'RulesComponent'
,
()
=>
{
let
component
:
RulesComponent
;
let
fixture
:
ComponentFixture
<
RulesComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
declarations
:
[
RulesComponent
]
})
.
compileComponents
();
fixture
=
TestBed
.
createComponent
(
RulesComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/sider-pieces/rules/rules.component.ts
0 → 100644
View file @
625acdfd
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-rules'
,
templateUrl
:
'./rules.component.html'
,
styleUrls
:
[
'./rules.component.scss'
]
})
export
class
RulesComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
():
void
{
}
}
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