Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gatsby Theme Onegeo
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
OneGeo Suite
Libs
Gatsby Theme Onegeo
Commits
323a2e0f
Commit
323a2e0f
authored
2 years ago
by
Tojo
Browse files
Options
Downloads
Patches
Plain Diff
maj social media
parent
411b6e9e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.d.ts
+3
-2
3 additions, 2 deletions
index.d.ts
src/components/core/SocialMediaList.tsx
+28
-15
28 additions, 15 deletions
src/components/core/SocialMediaList.tsx
with
31 additions
and
17 deletions
index.d.ts
+
3
−
2
View file @
323a2e0f
...
...
@@ -84,13 +84,14 @@ interface ISocialMediaList {
logo
?:
any
,
name
?:
string
,
url
?:
string
,
className
?:
string
className
?:
string
,
layout
?:
string
}
export
function
SocialMediaList
(
props
:
ISocialMediaList
):
JSX
.
Element
;
interface
Ilogo
{
to
?:
string
;
className
?
:
string
;
className
:
string
;
src
?:
string
;
title
:
string
;
image
:
any
...
...
This diff is collapsed.
Click to expand it.
src/components/core/SocialMediaList.tsx
+
28
−
15
View file @
323a2e0f
import
React
from
'
react
'
import
Logo
from
'
./Logo
'
import
facebook
from
'
../../icons/facebook.png
'
;
import
gmail
from
'
../../icons/
gmail
.png
'
;
import
youtube
from
'
../../icons/
youtube
.png
'
;
import
linkedin
from
'
../../icons/linkedin.png
'
;
import
twitter
from
'
../../icons/twitter.png
'
;
import
instagram
from
'
../../icons/instagram.png
'
;
interface
ISocialMediaList
{
logo
?:
any
,
name
?:
string
,
url
?:
string
,
className
?:
string
layout
?:
string
}
const
SocialMediaList
=
(
props
:
ISocialMediaList
)
=>
{
const
{
logo
,
name
,
url
,
className
=
"
flex flex-col gap-y-2
"
}
=
props
;
const
classRow
=
"
flex gap-x-1
"
const
classCol
=
"
flex flex-col gap-y-1
"
const
{
logo
,
name
,
url
,
className
=
""
,
layout
=
"
col
"
}
=
props
;
const
list
=
[
{
logo
:
facebook
,
name
:
"
facebook
"
},
{
logo
:
gmail
,
name
:
"
gmail
"
logo
:
instagram
,
name
:
"
instagram
"
},
{
logo
:
linkedin
,
...
...
@@ -31,20 +35,29 @@ const SocialMediaList = (props:ISocialMediaList) => {
logo
:
twitter
,
name
:
"
twitter
"
},
{
logo
:
youtube
,
name
:
"
youtube
"
},
]
return
(
<
div
className
=
{
className
}
>
{
list
.
map
((
item
:
any
,
key
:
number
)
=>
{
return
(
<
div
className
=
{
`border`
}
key
=
{
key
}
>
<
div
className
=
""
>
<
Logo
image
=
{
item
.
logo
}
title
=
{
item
.
name
}
className
=
{
"
w-20
"
}
/>
<
div
className
=
'flex flex-col'
>
<
div
>
<
h3
className
=
'font-bold pb-3'
>
Résaux sociaux
</
h3
>
</
div
>
<
div
className
=
{
`
${
layout
==
"
row
"
?
classRow
:
classCol
}
`
}
>
{
list
.
map
((
item
:
any
,
key
:
number
)
=>
{
return
(
<
div
className
=
{
`pb-0`
}
key
=
{
key
}
>
<
div
className
=
{
`tooltip
${
layout
==
"
row
"
?
'
tooltip-bottom
'
:
'
tooltip-right
'
}
`
}
data-tip
=
{
item
.
name
}
>
<
Logo
image
=
{
item
.
logo
}
className
=
{
"
w-10 h-10
"
}
/>
</
div
>
</
div
>
</
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