Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

156 řádky
5.8 KiB

  1. /** @jsxRuntime classic */
  2. /** @jsx jsx */
  3. import { jsx, Box, Container } from 'theme-ui';
  4. import Masonry from 'react-masonry-component';
  5. import SectionHeading from 'components/section-heading';
  6. import BlogPost from 'components/cards/blog-post';
  7. import thumb1 from 'assets/images/blog/1.jpg';
  8. import thumb2 from 'assets/images/blog/2.jpg';
  9. import thumb3 from 'assets/images/blog/3.jpg';
  10. import thumb4 from 'assets/images/blog/4.jpg';
  11. import thumb5 from 'assets/images/blog/5.jpg';
  12. import thumb6 from 'assets/images/blog/6.jpg';
  13. import thumb7 from 'assets/images/blog/7.jpg';
  14. import thumb8 from 'assets/images/blog/8.jpg';
  15. import thumb9 from 'assets/images/blog/9.jpg';
  16. const data = [
  17. {
  18. id: 1,
  19. slug: '#how-to',
  20. thumbnail: thumb1,
  21. showDescription: true,
  22. // title: `How to work with prototype design with adobe xd featuring tools`,
  23. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  24. },
  25. {
  26. id: 1,
  27. slug: '#how-to',
  28. thumbnail: thumb2,
  29. showDescription: true,
  30. // title: `How to work with prototype design with adobe xd featuring tools`,
  31. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  32. },
  33. {
  34. id: 1,
  35. slug: '#how-to',
  36. thumbnail: thumb3,
  37. showDescription: true,
  38. // title: `How to work with prototype design with adobe xd featuring tools`,
  39. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  40. },
  41. {
  42. id: 1,
  43. slug: '#how-to',
  44. thumbnail: thumb4,
  45. showDescription: true,
  46. // title: `How to work with prototype design with adobe xd featuring tools`,
  47. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  48. },
  49. {
  50. id: 1,
  51. slug: '#how-to',
  52. thumbnail: thumb5,
  53. showDescription: true,
  54. // title: `How to work with prototype design with adobe xd featuring tools`,
  55. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  56. },
  57. {
  58. id: 1,
  59. slug: '#how-to',
  60. thumbnail: thumb6,
  61. showDescription: true,
  62. // title: `How to work with prototype design with adobe xd featuring tools`,
  63. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  64. },
  65. {
  66. id: 1,
  67. slug: '#how-to',
  68. thumbnail: thumb7,
  69. showDescription: true,
  70. // title: `How to work with prototype design with adobe xd featuring tools`,
  71. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  72. },
  73. {
  74. id: 1,
  75. slug: '#how-to',
  76. thumbnail: thumb8,
  77. showDescription: true,
  78. // title: `How to work with prototype design with adobe xd featuring tools`,
  79. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  80. },
  81. {
  82. id: 1,
  83. slug: '#how-to',
  84. thumbnail: thumb9,
  85. showDescription: true,
  86. // title: `How to work with prototype design with adobe xd featuring tools`,
  87. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  88. },
  89. // {
  90. // id: 2,
  91. // slug: '#how-to',
  92. // thumbnail: null,
  93. // showDescription: false,
  94. // title: `Anti bias receives honorable gift mention at Fast Company’s most Innovation by Design Awards`,
  95. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  96. // },
  97. // {
  98. // id: 3,
  99. // slug: '#how-to',
  100. // thumbnail: thumb3,
  101. // showDescription: false,
  102. // title: `Multiple task wireframing with team management perform better`,
  103. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  104. // },
  105. // {
  106. // id: 4,
  107. // slug: '#how-to',
  108. // thumbnail: thumb2,
  109. // showDescription: true,
  110. // title: `Multiple art board prototype with Figma`,
  111. // description: `Beyond launched anti bias, a Chrome extension that replaces LinkedIn profile photos`,
  112. // },
  113. // {
  114. // id: 5,
  115. // slug: '#how-to',
  116. // thumbnail: thumb4,
  117. // showDescription: false,
  118. // title: `Team presentation with latest user interface & experience reach more`,
  119. // description: `The 2019 Innovation by Design Awards honor the designers and businesses solving the problems of today and tomorrow. It is one of the most sought-after design`,
  120. // },
  121. ];
  122. const masonryOptions = { originTop: true };
  123. const Blog = () => {
  124. return (
  125. <Box as="section" id="blog" sx={styles.section}>
  126. <Container>
  127. <SectionHeading
  128. sx={styles.heading}
  129. title="Thamrin Group Gallery"
  130. />
  131. <Masonry options={masonryOptions} sx={styles.postContainer}>
  132. {data?.map((post) => (
  133. <BlogPost key={post.id} post={post} />
  134. ))}
  135. </Masonry>
  136. </Container>
  137. </Box>
  138. );
  139. };
  140. export default Blog;
  141. const styles = {
  142. section: {
  143. pt: [8, null, null, 9, null, 11],
  144. pb: [8, null, null, 9, null, 11],
  145. position: 'relative',
  146. },
  147. heading: {
  148. mb: [6, 6, 7, 11],
  149. },
  150. };