From 026ec534910898a42d27a396f6ae820a267ec680 Mon Sep 17 00:00:00 2001
From: iqbalmnaufal
Date: Tue, 15 Oct 2024 21:09:36 +0700
Subject: [PATCH 1/3] feat(footer): add social media
---
src/assets/svgs/Instagram.tsx | 9 +++++++++
src/assets/svgs/WhatsApp.tsx | 9 +++++++++
src/components/Footer.tsx | 16 ++++++++++++++--
3 files changed, 32 insertions(+), 2 deletions(-)
create mode 100644 src/assets/svgs/Instagram.tsx
create mode 100644 src/assets/svgs/WhatsApp.tsx
diff --git a/src/assets/svgs/Instagram.tsx b/src/assets/svgs/Instagram.tsx
new file mode 100644
index 0000000..f601333
--- /dev/null
+++ b/src/assets/svgs/Instagram.tsx
@@ -0,0 +1,9 @@
+import * as React from "react";
+
+const Instagram = (props: React.SVGProps) => (
+
+)
+
+export default Instagram
\ No newline at end of file
diff --git a/src/assets/svgs/WhatsApp.tsx b/src/assets/svgs/WhatsApp.tsx
new file mode 100644
index 0000000..8e455f4
--- /dev/null
+++ b/src/assets/svgs/WhatsApp.tsx
@@ -0,0 +1,9 @@
+import * as React from "react";
+
+const WhatsApp = (props: React.SVGProps) => (
+
+)
+
+export default WhatsApp
\ No newline at end of file
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx
index eb42919..f5e0947 100644
--- a/src/components/Footer.tsx
+++ b/src/components/Footer.tsx
@@ -1,5 +1,9 @@
-import Image from "next/image";
import React from "react";
+import Image from "next/image";
+import Link from "next/link";
+
+import Instagram from "@/assets/svgs/Instagram";
+import WhatsApp from "@/assets/svgs/Whatsapp";
const Footer = () => {
return (
@@ -30,7 +34,15 @@ const Footer = () => {
akademisi,pemerintah, dan industri teknologi di Jawa Timur, guna
mendorong inovasi dan pertumbuhan sektor digital.
- © 2024, All Rights Reserved
+
+
+
+
+
+
+
+
+ JDD Team © 2024, All Rights Reserved
From 8f42f7e125b10a406e0c82656df5c99ff6452c46 Mon Sep 17 00:00:00 2001
From: iqbalmnaufal
Date: Tue, 15 Oct 2024 21:17:56 +0700
Subject: [PATCH 2/3] feat(footer): integrate into firebase
---
src/components/Footer.tsx | 11 ++++++++---
src/lib/firebase.ts | 15 +++++++++++++++
src/lib/schema.ts | 5 +++++
3 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx
index f5e0947..8268bdc 100644
--- a/src/components/Footer.tsx
+++ b/src/components/Footer.tsx
@@ -5,7 +5,12 @@ import Link from "next/link";
import Instagram from "@/assets/svgs/Instagram";
import WhatsApp from "@/assets/svgs/Whatsapp";
-const Footer = () => {
+import { getSocialMedia } from "@/lib/firebase";
+import { SocialMedia } from "@/lib/schema";
+
+const Footer = async () => {
+ const socialMedia = (await getSocialMedia()) as SocialMedia
+
return (