-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from Actualiza-Tu-Carro/119-actualizarfooter
Reduccion tamaño logo, redes sociales. Ampliacion del margen entre ru…
- Loading branch information
Showing
3 changed files
with
44 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,49 @@ | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
|
||
const socialMediaImages = { | ||
Instagram: 'https://i.postimg.cc/cLC0Nzb2/instagram.png', | ||
Facebook: 'https://i.postimg.cc/XYP3N8MJ/facebook.png', | ||
Twitter: 'https://i.postimg.cc/bJxjTfZD/twiter.png', | ||
Pinterest: 'https://i.postimg.cc/5tFJXC1m/pinterest.png', | ||
Youtube: 'https://i.postimg.cc/V6Q8nkkP/youtube.png', | ||
}; | ||
const socialMediaImages = [ | ||
{ | ||
name: 'Instagram', | ||
image: 'https://i.postimg.cc/cLC0Nzb2/instagram.png', | ||
route: 'https://instagram.com/', | ||
}, | ||
{ | ||
name: 'Facebook', | ||
image: 'https://i.postimg.cc/XYP3N8MJ/facebook.png', | ||
route: 'https://facebook.com/', | ||
}, | ||
{ | ||
name: 'Twitter', | ||
image: 'https://i.postimg.cc/bJxjTfZD/twiter.png', | ||
route: 'https://twitter.com/', | ||
}, | ||
{ | ||
name: 'Pinterest', | ||
image: 'https://i.postimg.cc/5tFJXC1m/pinterest.png', | ||
route: 'https://pinterest.com/', | ||
}, | ||
{ | ||
name: 'Youtube', | ||
image: 'https://i.postimg.cc/V6Q8nkkP/youtube.png', | ||
route: 'https://youtube.com/', | ||
}, | ||
]; | ||
|
||
import React, { FC } from 'react'; | ||
|
||
interface ImagesListProps {} | ||
|
||
const ImagesList: FC<ImagesListProps> = () => | ||
Object.entries(socialMediaImages).map( | ||
([socialMediaName, socialMediaImageUrl]) => ( | ||
socialMediaImages.map((socialMedia) => ( | ||
<Link href={socialMedia.route}> | ||
<Image | ||
key={socialMediaName} | ||
src={socialMediaImageUrl} | ||
width={50} | ||
height={50} | ||
key={socialMedia.name} | ||
src={socialMedia.image} | ||
width={40} | ||
height={40} | ||
alt="" | ||
/> | ||
) | ||
); | ||
</Link> | ||
)); | ||
|
||
export default ImagesList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters