Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Damien Armillon
API Toucan
Commits
42d760e0
Commit
42d760e0
authored
Jan 07, 2022
by
Inès Yeterian
Browse files
add facebook and instagram links for computer
parent
24fca134
Changes
1
Hide whitespace changes
Inline
Side-by-side
front/src/view/PageHeader.js
View file @
42d760e0
...
...
@@ -9,13 +9,16 @@ import env from './../.env'
const
PageHeader
=
(
props
)
=>
{
return
(
[
[
// Si le format est celui d'un Pc
<
div
class
=
"
desktopItem
"
style
=
{{
textAlign
:
"
center
"
}}
>
{
console
.
log
(
props
.
isLogged
)}
<
Image
src
=
{
logo
}
alt
=
"
Logo
"
href
=
"
/
"
style
=
{{
width
:
'
40%
'
}}
/
>
{
props
.
isLogged
?
<
LogoutButton
style
=
{{
position
:
"
absolute
"
,
top
:
'
2em
'
,
right
:
"
2em
"
}}
/>
:
<
Button
icon
=
"
male
"
content
=
"
Espace admin
"
style
=
{{
position
:
"
absolute
"
,
top
:
'
2em
'
,
right
:
"
2em
"
}}
onClick
=
{()
=>
window
.
location
=
`
${
env
.
backURL
}
/oauth/login`
}
/
>
}
}
<
Button
icon
=
"
facebook
"
content
=
"
Facebook
"
style
=
{{
position
:
"
absolute
"
,
top
:
'
2em
'
,
left
:
"
2em
"
,
color
:
"
white
"
,
backgroundColor
:
"
#3b5998
"
}}
onClick
=
{()
=>
window
.
location
.
assign
(
"
https://www.facebook.com/LeToucanDechaine
"
)}
/
>
<
Button
icon
=
"
instagram
"
content
=
"
Insta
"
style
=
{{
position
:
"
absolute
"
,
top
:
'
5em
'
,
left
:
"
2em
"
,
color
:
"
white
"
,
backgroundColor
:
"
#c13584
"
}}
onClick
=
{()
=>
window
.
location
.
assign
(
"
https://www.instagram.com/le.toucan.dechaine/
"
)}
/
>
<
/div>
,
// Si le format est celui d'un téléphone
<
div
class
=
"
phoneItem
"
style
=
{{
textAlign
:
"
center
"
}}
>
...
...
Write
Preview
Supports
Markdown
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