From f13059f912c4f6f5ac397d4780ca91cea1071999 Mon Sep 17 00:00:00 2001 From: "Mr.Paradox" Date: Fri, 25 Oct 2024 12:19:27 +0530 Subject: [PATCH] Cleaning up svgs from footer (#1502) Co-authored-by: adiiittt --- public/footer-logos/all-logos.ts | 4 + public/footer-logos/logos-svg/github-logo.tsx | 17 ++++ public/footer-logos/logos-svg/insta-logo.tsx | 32 +++++++ public/footer-logos/logos-svg/x-logo.tsx | 24 +++++ public/footer-logos/logos-svg/yt-logo.tsx | 26 +++++ src/components/Greeting.tsx | 2 +- src/components/landing/footer.tsx | 96 ++++--------------- 7 files changed, 124 insertions(+), 77 deletions(-) create mode 100644 public/footer-logos/all-logos.ts create mode 100644 public/footer-logos/logos-svg/github-logo.tsx create mode 100644 public/footer-logos/logos-svg/insta-logo.tsx create mode 100644 public/footer-logos/logos-svg/x-logo.tsx create mode 100644 public/footer-logos/logos-svg/yt-logo.tsx diff --git a/public/footer-logos/all-logos.ts b/public/footer-logos/all-logos.ts new file mode 100644 index 000000000..de7cb6c87 --- /dev/null +++ b/public/footer-logos/all-logos.ts @@ -0,0 +1,4 @@ +export { default as GitHubLogo } from './logos-svg/github-logo'; +export { default as InstaLogo } from './logos-svg/insta-logo'; +export { default as XLogo } from './logos-svg/x-logo'; +export { default as YtLogo } from './logos-svg/yt-logo'; diff --git a/public/footer-logos/logos-svg/github-logo.tsx b/public/footer-logos/logos-svg/github-logo.tsx new file mode 100644 index 000000000..359883464 --- /dev/null +++ b/public/footer-logos/logos-svg/github-logo.tsx @@ -0,0 +1,17 @@ +import React from 'react'; + +const GitHubLogo = () => ( + + + +); + +export default GitHubLogo; diff --git a/public/footer-logos/logos-svg/insta-logo.tsx b/public/footer-logos/logos-svg/insta-logo.tsx new file mode 100644 index 000000000..477c2f3bd --- /dev/null +++ b/public/footer-logos/logos-svg/insta-logo.tsx @@ -0,0 +1,32 @@ +import React from 'react'; + +const InstaLogo = () => ( + + + + + +); + +export default InstaLogo; diff --git a/public/footer-logos/logos-svg/x-logo.tsx b/public/footer-logos/logos-svg/x-logo.tsx new file mode 100644 index 000000000..94a84f518 --- /dev/null +++ b/public/footer-logos/logos-svg/x-logo.tsx @@ -0,0 +1,24 @@ +import React from 'react'; + +const XLogo = () => ( + + + + +); + +export default XLogo; diff --git a/public/footer-logos/logos-svg/yt-logo.tsx b/public/footer-logos/logos-svg/yt-logo.tsx new file mode 100644 index 000000000..5c8f0a14a --- /dev/null +++ b/public/footer-logos/logos-svg/yt-logo.tsx @@ -0,0 +1,26 @@ +import React from 'react'; + +const YtLogo = () => ( + + + + +); + +export default YtLogo; diff --git a/src/components/Greeting.tsx b/src/components/Greeting.tsx index 38f265e41..1f7c2341d 100644 --- a/src/components/Greeting.tsx +++ b/src/components/Greeting.tsx @@ -13,7 +13,7 @@ export const Greeting = () => { } else if (currentHour >= 17 && currentHour <= 20) { greeting = 'Good Evening'; } else { - greeting = 'Surprise to see you here!'; + greeting = 'Happy to see you back!'; } return greeting; diff --git a/src/components/landing/footer.tsx b/src/components/landing/footer.tsx index 702c074d8..fb720bd4f 100644 --- a/src/components/landing/footer.tsx +++ b/src/components/landing/footer.tsx @@ -1,5 +1,11 @@ import Link from 'next/link'; import { Separator } from '../ui/separator'; +import { + GitHubLogo, + InstaLogo, + XLogo, + YtLogo, +} from '../../../public/footer-logos/all-logos'; const Footer = () => { return ( @@ -32,105 +38,43 @@ const Footer = () => { Follow us
+ + {/* X Button */} - - - - + + + {/* Instagram Button */} - - - - - + + + {/* YT Button */} - - - - + + + {/* Github Button */} - - - + +