Amber Shopify Project created using ReactJS+React-Redux with GraphQL API integration. Storefront Shopify API: https://github.com/Shopify/shopify-app-js/tree/main/packages/api-clients/storefront-api-client#readme
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SocialMedia.jsx 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import React from 'react';
  2. import { Box, Typography } from '@mui/material';
  3. import InstagramIcon from '@mui/icons-material/Instagram';
  4. import FacebookIcon from '@mui/icons-material/Facebook';
  5. import TwitterIcon from '@mui/icons-material/Twitter';
  6. const SocialMedia = () => {
  7. const socialMedia = [
  8. { icon: <InstagramIcon color="primary" />, name: 'Instagram' },
  9. { icon: <FacebookIcon color="primary" />, name: 'Facebook' },
  10. { icon: <TwitterIcon color="primary" />, name: 'Twitter' },
  11. ];
  12. return (
  13. <Box
  14. sx={{
  15. display: 'flex',
  16. justifyContent: 'center',
  17. alignItems: 'center',
  18. gap: 5,
  19. padding: 2,
  20. py: 4,
  21. borderTop:"1px solid #CFCFCF",
  22. borderBottom:"1px solid #CFCFCF"
  23. }}
  24. >
  25. {socialMedia.map((media, index) => (
  26. <Box
  27. key={index}
  28. sx={{
  29. display: 'flex',
  30. flexDirection: 'row',
  31. alignItems: 'center',
  32. gap: 1,
  33. }}
  34. >
  35. {media.icon}
  36. <Typography variant="body1" sx={{ fontWeight: 'bold' }}>
  37. {media.name}
  38. </Typography>
  39. </Box>
  40. ))}
  41. </Box>
  42. );
  43. };
  44. export default SocialMedia;