diff --git a/components/layout/Footer.tsx b/components/layout/Footer.tsx
deleted file mode 100644
index dc26da8..0000000
--- a/components/layout/Footer.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import React from "react";
-
-const Footer = (): JSX.Element => {
- return (
-
- );
-};
-
-export default Footer;
diff --git a/lib/findValidDateRange.ts b/lib/findValidDateRange.ts
deleted file mode 100644
index 51e5cbd..0000000
--- a/lib/findValidDateRange.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { startOfMonth, endOfMonth } from "date-fns";
-
-interface ValidDateRange {
- start: Date;
- end: Date;
-}
-
-/**
- * A function that will determine the valid date range for the navigation of the charts.
- * @returns An object with a start and end key with the given date for the start and end of the range.
- */
-const findValidDateRange = (): ValidDateRange => {
- const currDate = new Date(); // Current date.
- const startDate = startOfMonth(currDate); // Will eventually be the creation date of the account or the creation date the selected chart. Whichever is older.
- const endDate = endOfMonth(currDate); // Always needs to be the last day on the current month within the current year.
-
- return {
- start: startDate,
- end: endDate
- };
-};
-
-export default findValidDateRange;
diff --git a/src/components/buttons/GitHub.tsx b/src/components/buttons/GitHub.tsx
new file mode 100644
index 0000000..ef4c367
--- /dev/null
+++ b/src/components/buttons/GitHub.tsx
@@ -0,0 +1,24 @@
+import React from "react";
+import { Box, Link, Button, BoxProps, Text } from "@chakra-ui/react";
+import { Icon } from "@iconify/react";
+import { motion } from "framer-motion";
+
+const MotionBox = motion(Box);
+
+const GitHub = (): JSX.Element => {
+ return (
+
+
+ }>
+ {"View Codebase"}
+
+
+
+ );
+};
+
+export default GitHub;
diff --git a/src/components/buttons/data/links.ts b/src/components/buttons/data/links.ts
index 9835682..059dc00 100644
--- a/src/components/buttons/data/links.ts
+++ b/src/components/buttons/data/links.ts
@@ -1,7 +1,7 @@
export interface LinkObj {
href?: string;
name?: string;
- type: "primary" | "secondary" | "updates" | "ko-fi";
+ type: "primary" | "secondary" | "ko-fi" | "GitHub";
}
type Links = LinkObj[];
@@ -19,6 +19,9 @@ const links: Links = [
href: "https://t.me/LucidCreationsMedia",
name: "Dev Updates",
type: "secondary"
+ },
+ {
+ type: "GitHub"
}
];
diff --git a/src/components/buttons/index.tsx b/src/components/buttons/index.tsx
index 44450a0..07cfba0 100644
--- a/src/components/buttons/index.tsx
+++ b/src/components/buttons/index.tsx
@@ -3,6 +3,7 @@ import { Box, HStack, VStack } from "@chakra-ui/react";
import CustomButton from "./Custom";
import links, { LinkObj } from "./data/links";
import KoFi from "./KoFi";
+import GitHub from "./GitHub";
const Buttons = (): JSX.Element => {
return (
@@ -32,6 +33,10 @@ const Buttons = (): JSX.Element => {
if (type === "ko-fi") {
return ;
}
+
+ if (type === "GitHub") {
+ return ;
+ }
})}
{
if (type === "ko-fi") {
return ;
}
+
+ if (type === "GitHub") {
+ return ;
+ }
})}