Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
API Toucan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Damien Armillon
API Toucan
Commits
4ff928c4
Commit
4ff928c4
authored
3 years ago
by
Inès Yeterian
Browse files
Options
Downloads
Patches
Plain Diff
Revert "added Fb and instagram buttons for computer and mobile"
This reverts commit
6c0795ac
.
parent
5aabd6d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
front/src/view/PageHeader.js
+7
-12
7 additions, 12 deletions
front/src/view/PageHeader.js
with
7 additions
and
12 deletions
front/src/view/PageHeader.js
+
7
−
12
View file @
4ff928c4
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
Image
,
Button
}
from
'
semantic-ui-react
'
import
{
Image
,
Button
}
from
'
semantic-ui-react
'
import
LogoutButton
from
'
../utils/LogoutButton
'
import
LogoutButton
from
'
../utils/LogoutButton
'
import
{
Link
}
from
'
react-router-dom
'
import
logo
from
'
../image/logo.png
'
import
logo
from
'
../image/logo.png
'
import
env
from
'
./../.env
'
import
env
from
'
./../.env
'
const
PageHeader
=
(
props
)
=>
{
const
PageHeader
=
(
props
)
=>
{
console
.
table
(
env
)
return
(
return
(
[
[
// Si le format est celui d'un Pc
// Si le format est celui d'un Pc
<
div
class
Name
=
"
desktopItem
"
style
=
{{
textAlign
:
"
center
"
}}
>
{
console
.
log
(
props
.
isLogged
)}
<
div
class
=
"
desktopItem
"
style
=
{{
textAlign
:
"
center
"
}}
>
{
console
.
log
(
props
.
isLogged
)}
<
Image
src
=
{
logo
}
alt
=
"
Logo
"
href
=
"
/
"
style
=
{{
width
:
'
40%
'
}}
/
>
<
Image
src
=
{
logo
}
alt
=
"
Logo
"
href
=
"
/
"
style
=
{{
width
:
'
40%
'
}}
/
>
{
props
.
isLogged
?
<
LogoutButton
style
=
{{
position
:
"
absolute
"
,
top
:
'
2em
'
,
right
:
"
2em
"
}}
/>
:
{
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
=
"
male
"
content
=
"
Espace admin
"
style
=
{{
position
:
"
absolute
"
,
top
:
'
2em
'
,
right
:
"
2em
"
}}
onClick
=
{()
=>
window
.
location
=
`
${
env
.
backURL
}
/oauth/login`
}
/
>
}
}
<
a
href
=
{
"
https://www.facebook.com/LeToucanDechaine/
"
}
>
<
Button
icon
=
"
facebook
"
content
=
"
Facebook
"
style
=
{{
position
:
"
absolute
"
,
top
:
'
2em
'
,
left
:
"
2em
"
,
color
:
"
white
"
,
backgroundColor
:
"
#3b5998
"
}}
/></
a
>
<
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
"
)}
/
>
<
a
href
=
{
"
https://instagram.com/le.toucan.dechaine
"
}
><
Button
icon
=
"
instagram
"
content
=
"
Insta
"
style
=
{{
position
:
"
absolute
"
,
top
:
'
5em
'
,
left
:
"
2em
"
,
color
:
"
white
"
,
backgroundColor
:
"
#c13584
"
}}
/></
a
>
<
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>
,
<
/div>
,
// Si le format est celui d'un téléphone
// Si le format est celui d'un téléphone
<
div
class
Name
=
"
phoneItem
"
style
=
{{
textAlign
:
"
center
"
}}
>
<
div
class
=
"
phoneItem
"
style
=
{{
textAlign
:
"
center
"
}}
>
<
Image
src
=
{
logo
}
alt
=
"
Logo
"
href
=
"
/
"
style
=
{{
margin
:
"
2em
"
}}
/
>
<
Image
src
=
{
logo
}
alt
=
"
Logo
"
href
=
"
/
"
style
=
{{
margin
:
"
2em
"
}}
/
>
<
br
/>
<
br
/>
<
div
style
=
{{
padding
:
"
0.7em
"
}}
>
{
props
.
isLogged
?
<
LogoutButton
style
=
{{
margin
:
"
1em
"
}}
/>
:
<
a
href
=
{
"
https://www.facebook.com/LeToucanDechaine/
"
}
>
<
Button
icon
=
"
facebook
"
style
=
{{
position
:
"
absolute
"
,
left
:
"
3em
"
,
color
:
"
white
"
,
backgroundColor
:
"
#3b5998
"
}}
/></
a
>
<
Button
icon
=
"
male
"
content
=
"
Espace admin
"
style
=
{{
margin
:
"
1em
"
}}
onClick
=
{()
=>
window
.
location
=
`
${
env
.
backURL
}
/oauth/login`
}
/
>
<
a
href
=
{
"
https://instagram.com/le.toucan.dechaine
"
}
><
Button
icon
=
"
instagram
"
style
=
{{
position
:
"
absolute
"
,
left
:
"
6em
"
,
backgroundColor
:
"
#c13584
"
}}
/></
a
>
{
props
.
isLogged
?
<
LogoutButton
/>
:
<
Button
icon
=
"
male
"
content
=
"
Espace admin
"
style
=
{{
position
:
"
absolute
"
,
right
:
"
3em
"
}}
onClick
=
{()
=>
window
.
location
=
`
${
env
.
backURL
}
/oauth/login`
}
/
>
}
}
<
/div
>
<
/div
>
<
/div
>
]
]
)
)
}
}
...
...
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