From eda87db35ed4486e478eb68573aed42a740635c0 Mon Sep 17 00:00:00 2001 From: Jayesh Nayak Date: Wed, 6 Mar 2024 18:57:50 +0530 Subject: [PATCH] feat: added footer web-view --- src/components/shared/marginals/footer.jsx | 83 +++++++++++++++++++++ src/data/footerData.js | 84 ++++++++++++++++++++++ src/pages/playground.jsx | 53 +++++++------- 3 files changed, 196 insertions(+), 24 deletions(-) create mode 100644 src/components/shared/marginals/footer.jsx create mode 100644 src/data/footerData.js diff --git a/src/components/shared/marginals/footer.jsx b/src/components/shared/marginals/footer.jsx new file mode 100644 index 0000000..14adff8 --- /dev/null +++ b/src/components/shared/marginals/footer.jsx @@ -0,0 +1,83 @@ +import footerData from '../../../data/footerData.js'; +import { Heading, Paragraph } from '../typography/index.jsx'; + +export default function Footer() { + return ( +
+
+
+
+ star +
+
+
+
+ logo +
+
+
+ + {footerData.contact.title} + + + {footerData.contact.desc} + + + Email: {footerData.contact.email} + +
+ {footerData.contact.socials.map(({ name, link, icon }) => ( + + {name} + + ))} +
+
+
+ + {footerData.links.title} + +
+
+ {footerData.links.links1.map(({ name, link }) => ( + + + {name} + + + ))} +
+
+ {footerData.links.links2.map(({ name, link }) => ( + + + {name} + + + ))} +
+
+
+
+
+
+
+ ); +} diff --git a/src/data/footerData.js b/src/data/footerData.js new file mode 100644 index 0000000..35669a1 --- /dev/null +++ b/src/data/footerData.js @@ -0,0 +1,84 @@ +const footerData = { + contact: { + title: 'Contact Us', + desc: 'NITR 1999 Silver Jubilee Group', + email: 'recrourkela1999@gmail.com', + socials: [ + { + name: 'Facebook', + link: '', + icon: 'https://res.cloudinary.com/dme9vltjf/image/upload/v1709710971/Vector_1_qkkjnj.png', + }, + { + name: 'WhatsApp', + link: '', + icon: 'https://res.cloudinary.com/dme9vltjf/image/upload/v1709710970/Vector_2_gnwyks.png', + }, + { + name: 'LinkedIn', + link: '', + icon: 'https://res.cloudinary.com/dme9vltjf/image/upload/v1709710971/Group_36701_dhutzn.png', + }, + ], + }, + + links: { + title: 'Useful Links', + links1: [ + { + index: 0, + name: 'Register', + link: '/', + }, + { + index: 1, + name: 'Payment', + link: '/', + }, + { + index: 2, + name: 'Donation', + link: '/', + }, + { + index: 3, + name: 'Schedule', + link: '/', + }, + { + index: 9, + name: 'FAQ', + link: '/', + }, + ], + links2: [ + { + index: 4, + name: 'Home', + link: '/', + }, + { + index: 5, + name: 'Gallery', + link: '/', + }, + { + index: 6, + name: 'Who is Coming?', + link: '/', + }, + { + index: 7, + name: 'Volunteers', + link: '/', + }, + { + index: 8, + name: 'Privacy', + link: '/', + }, + ], + }, +}; + +export default footerData; diff --git a/src/pages/playground.jsx b/src/pages/playground.jsx index f599ae5..84402b3 100644 --- a/src/pages/playground.jsx +++ b/src/pages/playground.jsx @@ -1,31 +1,36 @@ import { Heading, HeroText, Paragraph, PersonalizedText, Text } from '../components/shared'; +import Footer from '../components/shared/marginals/footer.jsx'; export default function Playground() { return ( -
- Hero Text - Personalized Text - Heading 1 - Heading 2 - Heading 3 - Paragraph body1 - Paragraph body2 - Paragraph body3 - Text button - Text nav - Text navButton - Text footer + <> +
+ Hero Text + Personalized Text + Heading 1 + Heading 2 + Heading 3 + Paragraph body1 + Paragraph body2 + Paragraph body3 + Text button + Text nav + Text navButton + Text footer - - Colors - -
    -
  • Primary
  • -
  • Primary Foreground
  • -
  • Primary Yellow
  • -
  • Black
  • -
  • Black Foreground
  • -
-
+ + Colors + + +
+ +