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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
org
BodySCH
bodysch-frontend
Commits
f57a4d7c
Commit
f57a4d7c
authored
4 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
desktop footer
parent
06ae276d
No related branches found
No related tags found
2 merge requests
!19
fix type imports
,
!14
Footer, Page layout fix and theme restructure
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Footer.tsx
+116
-15
116 additions, 15 deletions
src/components/Footer.tsx
with
116 additions
and
15 deletions
src/components/Footer.tsx
+
116
−
15
View file @
f57a4d7c
import
{
Box
,
IconButton
,
makeStyles
,
Typography
,
useTheme
}
from
'
@material-ui/core
'
;
import
{
Box
,
IconButton
,
makeStyles
,
Typography
,
useMediaQuery
,
useTheme
,
}
from
'
@material-ui/core
'
;
import
FacebookIcon
from
'
@material-ui/icons/Facebook
'
;
import
MailIcon
from
'
@material-ui/icons/Mail
'
;
import
React
from
'
react
'
;
import
DevTeamIcon
from
'
./svg/DevTeamIcon
'
;
import
SchdesignIcon
from
'
./svg/SchdesignIcon
'
;
const
useStyles
=
makeStyles
((
theme
)
=>
({
const
use
Mobile
Styles
=
makeStyles
((
theme
)
=>
({
footer
:
{
background
:
theme
.
footer
.
background
,
padding
:
'
0.3rem
'
,
paddingTop
:
'
0.6rem
'
,
},
contact
:
{
contact
Text
:
{
color
:
theme
.
palette
.
primary
.
contrastText
,
fontSize
:
'
1.7rem
'
,
fontWeight
:
500
,
...
...
@@ -49,47 +56,76 @@ const useStyles = makeStyles((theme) => ({
},
}));
const
useDesktopStyles
=
makeStyles
((
theme
)
=>
({
footer
:
{
padding
:
'
0.4rem
'
,
},
devteam
:
{
fontSize
:
'
1.8rem
'
,
paddingLeft
:
'
0.6rem
'
,
},
schdesignButton
:
{
paddingTop
:
'
0.5rem
'
,
},
contact
:
{
paddingRight
:
'
2rem
'
,
},
social
:
{
fontSize
:
'
1.5rem
'
,
margin
:
'
0
'
,
marginRight
:
'
0.3rem
'
,
marginTop
:
'
0.2rem
'
,
marginBottom
:
'
0.2rem
'
,
},
socialText
:
{
color
:
theme
.
palette
.
secondary
.
main
,
},
}));
const
Footer
:
React
.
FC
=
()
=>
{
const
classes
=
useStyles
();
const
mClasses
=
useMobileStyles
();
const
dClasses
=
useDesktopStyles
();
const
theme
=
useTheme
();
const
isSmallScreen
=
useMediaQuery
(
theme
.
breakpoints
.
down
(
'
xs
'
));
const
SmallScreen
:
React
.
FC
=
()
=>
(
<
Box
display
=
"flex"
justifyContent
=
"center"
flexDirection
=
"column"
>
<
Typography
align
=
"center"
className
=
{
c
lasses
.
contact
}
>
<
Typography
align
=
"center"
className
=
{
mC
lasses
.
contact
Text
}
>
Kapcsolat
</
Typography
>
<
Box
display
=
"flex"
justifyContent
=
"center"
>
<
IconButton
className
=
{
c
lasses
.
socialButton
}
className
=
{
mC
lasses
.
socialButton
}
onClick
=
{
():
void
=>
{
window
.
open
(
'
https://www.facebook.com/groups/schbody/
'
);
}
}
>
<
FacebookIcon
className
=
{
c
lasses
.
social
}
/>
<
FacebookIcon
className
=
{
mC
lasses
.
social
}
/>
</
IconButton
>
<
IconButton
className
=
{
c
lasses
.
socialButton
}
className
=
{
mC
lasses
.
socialButton
}
onClick
=
{
():
void
=>
{
window
.
location
.
href
=
'
mailto:body@sch.bme.hu
'
;
}
}
>
<
MailIcon
className
=
{
c
lasses
.
social
}
/>
<
MailIcon
className
=
{
mC
lasses
.
social
}
/>
</
IconButton
>
</
Box
>
<
Box
display
=
"flex"
justifyContent
=
"space-around"
className
=
{
c
lasses
.
groups
}
>
<
Box
display
=
"flex"
justifyContent
=
"space-around"
className
=
{
mC
lasses
.
groups
}
>
<
IconButton
className
=
{
c
lasses
.
groupButton
}
className
=
{
mC
lasses
.
groupButton
}
onClick
=
{
():
void
=>
{
window
.
open
(
'
https://kszk.bme.hu/
'
);
}
}
>
<
Box
display
=
"flex"
justifyContent
=
"center"
alignItems
=
"center"
>
<
DevTeamIcon
width
=
"28px"
height
=
"28px"
/>
<
Typography
className
=
{
c
lasses
.
devteam
}
>
DevTeam
</
Typography
>
<
Typography
className
=
{
mC
lasses
.
devteam
}
>
DevTeam
</
Typography
>
</
Box
>
</
IconButton
>
<
IconButton
className
=
{
c
lasses
.
groupButton
}
className
=
{
mC
lasses
.
groupButton
}
onClick
=
{
():
void
=>
{
window
.
open
(
'
https://schdesign.hu/
'
);
}
}
...
...
@@ -99,9 +135,74 @@ const Footer: React.FC = () => {
</
Box
>
</
Box
>
);
const
LargeScreen
:
React
.
FC
=
()
=>
(
<
Box
display
=
"flex"
justifyContent
=
"space-between"
>
<
Box
display
=
"flex"
justifyContent
=
"space-around"
alignItems
=
"center"
className
=
{
mClasses
.
groups
}
>
<
IconButton
className
=
{
mClasses
.
groupButton
}
onClick
=
{
():
void
=>
{
window
.
open
(
'
https://kszk.bme.hu/
'
);
}
}
>
<
Box
display
=
"flex"
justifyContent
=
"center"
alignItems
=
"center"
>
<
DevTeamIcon
width
=
"36px"
height
=
"36px"
/>
<
Typography
className
=
{
`
${
mClasses
.
devteam
}
${
dClasses
.
devteam
}
`
}
>
DevTeam
</
Typography
>
</
Box
>
</
IconButton
>
<
IconButton
className
=
{
`
${
mClasses
.
groupButton
}
${
dClasses
.
schdesignButton
}
`
}
onClick
=
{
():
void
=>
{
window
.
open
(
'
https://schdesign.hu/
'
);
}
}
>
<
SchdesignIcon
width
=
"140px"
height
=
"50px"
color1
=
{
theme
.
palette
.
primary
.
contrastText
}
/>
</
IconButton
>
</
Box
>
<
Box
display
=
"flex"
flexDirection
=
"column"
alignItems
=
"flex-start"
className
=
{
dClasses
.
contact
}
>
<
Typography
align
=
"center"
className
=
{
mClasses
.
contactText
}
>
Kapcsolat
</
Typography
>
<
Box
display
=
"flex"
flexDirection
=
"column"
alignItems
=
"flex-start"
>
<
IconButton
className
=
{
mClasses
.
socialButton
}
onClick
=
{
():
void
=>
{
window
.
open
(
'
https://www.facebook.com/groups/schbody/
'
);
}
}
>
<
Box
display
=
"flex"
alignItems
=
"center"
justifyContent
=
"center"
>
<
FacebookIcon
className
=
{
`
${
mClasses
.
social
}
${
dClasses
.
social
}
`
}
/>
<
Typography
className
=
{
dClasses
.
socialText
}
>
Facebook
</
Typography
>
</
Box
>
</
IconButton
>
<
IconButton
className
=
{
mClasses
.
socialButton
}
onClick
=
{
():
void
=>
{
window
.
location
.
href
=
'
mailto:body@sch.bme.hu
'
;
}
}
>
<
MailIcon
className
=
{
`
${
mClasses
.
social
}
${
dClasses
.
social
}
`
}
/>
<
Typography
className
=
{
dClasses
.
socialText
}
>
body@sch.bme.hu
</
Typography
>
</
IconButton
>
</
Box
>
</
Box
>
</
Box
>
);
return
(
<
Box
component
=
"footer"
className
=
{
c
lasses
.
footer
}
>
<
SmallScreen
/>
<
Box
component
=
"footer"
className
=
{
`
${
mClasses
.
footer
}
${
!
isSmallScreen
&&
dC
lasses
.
footer
}
`
}
>
{
isSmallScreen
?
<
SmallScreen
/>
:
<
LargeScreen
/>
}
</
Box
>
);
};
...
...
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