Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bodysch-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
org
BodySCH
bodysch-frontend
Commits
32f2b8f5
Commit
32f2b8f5
authored
4 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
rules page
parent
8b5f2cb6
Branches
Branches containing commit
No related tags found
2 merge requests
!19
fix type imports
,
!11
rules page
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Routes.tsx
+4
-0
4 additions, 0 deletions
src/Routes.tsx
src/pages/RulesPage.tsx
+78
-0
78 additions, 0 deletions
src/pages/RulesPage.tsx
src/theme.ts
+1
-0
1 addition, 0 deletions
src/theme.ts
with
83 additions
and
0 deletions
src/Routes.tsx
+
4
−
0
View file @
32f2b8f5
...
...
@@ -2,6 +2,7 @@ import React from 'react';
import
{
Route
,
Switch
}
from
'
react-router
'
;
import
ProfileButton
from
'
./components/ProfileButton
'
;
import
NewsPage
from
'
./pages/NewsPage
'
;
import
RulesPage
from
'
./pages/RulesPage
'
;
const
Routes
:
React
.
FC
=
()
=>
(
<
Switch
>
...
...
@@ -11,6 +12,9 @@ const Routes: React.FC = () => (
<
Route
path
=
"/news"
>
<
NewsPage
/>
</
Route
>
<
Route
path
=
"/rules"
>
<
RulesPage
/>
</
Route
>
</
Switch
>
);
...
...
This diff is collapsed.
Click to expand it.
src/pages/RulesPage.tsx
0 → 100644
+
78
−
0
View file @
32f2b8f5
import
{
Box
,
Container
,
Divider
,
ListItem
,
makeStyles
,
Typography
}
from
'
@material-ui/core
'
;
import
React
from
'
react
'
;
import
Page
from
'
./Page
'
;
const
useStyles
=
makeStyles
((
theme
)
=>
({
title
:
{
marginTop
:
30
,
marginBottom
:
30
,
fontSize
:
'
36px
'
,
color
:
theme
.
palette
.
primary
.
contrastText
,
},
container
:
{
color
:
theme
.
palette
.
primary
.
contrastText
,
backgroundColor
:
theme
.
palette
.
background
.
paper
,
margin
:
theme
.
spacing
(
2
),
padding
:
theme
.
spacing
(
1
),
},
text
:
{
fontSize
:
'
18px
'
,
},
}));
const
RulesPage
:
React
.
FC
=
()
=>
{
const
classes
=
useStyles
();
return
(
<
Page
>
<
Container
>
<
Typography
className
=
{
classes
.
title
}
align
=
"center"
>
Házirend
</
Typography
>
<
Box
className
=
{
classes
.
container
}
>
<
ListItem
divider
>
<
Typography
className
=
{
classes
.
text
}
>
Mindenki a saját testi épségéért felelős! Alkohol vagy drog hatása alatt a teremben
tartózkodni, edzeni tilos!
</
Typography
>
</
ListItem
>
<
Divider
/>
<
ListItem
>
<
Typography
component
=
"div"
className
=
{
classes
.
text
}
>
A konditerem csak érvényes
<
Box
fontWeight
=
"fontWeightBold"
display
=
"inline"
px
=
{
1
}
>
BELÉPŐVEL
</
Box
>
és megfelelő
<
Box
fontWeight
=
"fontWeightBold"
display
=
"inline"
pl
=
{
1
}
>
TISZTA CIPŐBEN, ALSÓ- ÉS FELSŐRUHÁZATBAN HASZNÁLHATÓ
</
Box
>
! A félmeztelen edzés tilos! A kondi belépőnek az edzés ideje alatt végig nálad kell
lennie a teremben!
</
Typography
>
</
ListItem
>
<
Divider
/>
<
ListItem
>
<
Typography
component
=
"div"
className
=
{
classes
.
text
}
>
A teremben higiéniai okok miatt mindenkinek saját, megfelelő méretű
<
Box
fontWeight
=
"fontWeightBold"
display
=
"inline"
pl
=
{
1
}
>
TÖRÖLKÖZŐ HASZNÁLATA KÖTELEZŐ
</
Box
>
! Csak a kardió részleg használata esetén is kell törölköző!
</
Typography
>
</
ListItem
>
<
Divider
/>
<
ListItem
>
<
Typography
component
=
"div"
className
=
{
classes
.
text
}
>
A terem csak tiszta, zárt, gumitalpú cipőben használható! Mezítlábas, zoknis és
papucsos edzés tilos! A terembe utcai cipőben belépni tilos! Aki megfelelő ruházat
nélkül edz, az edzés azonnali megszakítására, és a terem elhagyására kötelezhető.
</
Typography
>
</
ListItem
>
</
Box
>
</
Container
>
</
Page
>
);
};
export
default
RulesPage
;
This diff is collapsed.
Click to expand it.
src/theme.ts
+
1
−
0
View file @
32f2b8f5
...
...
@@ -36,6 +36,7 @@ export const darkTheme = createMuiTheme({
default
:
'
#2A2A28
'
,
paper
:
'
#202020
'
,
},
divider
:
'
#444444
'
,
/* success: {},
info: {},
warning: {}, */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment