diff --git a/packages/web/src/components/UpdatePage/UpdatePage.jsx b/packages/web/src/components/UpdatePage/UpdatePage.jsx
index 74e58b4..3590c91 100644
--- a/packages/web/src/components/UpdatePage/UpdatePage.jsx
+++ b/packages/web/src/components/UpdatePage/UpdatePage.jsx
@@ -1,108 +1,170 @@
-import { React, useState } from "react";
+import React, { useState, useEffect } from "react";
import {
+ Box,
Flex,
Text,
Button,
- Stack,
+ VStack,
+ HStack,
List,
ListItem,
- ListIcon,
Icon,
Image,
+ useColorModeValue,
+ Container,
+ Heading,
+ Badge,
+ Divider,
+ useDisclosure,
+ Modal,
+ ModalOverlay,
+ ModalContent,
+ ModalBody,
+ ModalCloseButton,
} from "@chakra-ui/react";
import { useNavigate } from "react-router-dom";
-import { ChevronRightIcon, ArrowBackIcon } from "@chakra-ui/icons";
+import { ArrowBackIcon, ExternalLinkIcon } from "@chakra-ui/icons";
import { SiInstagram } from "react-icons/si";
+import { motion } from "framer-motion";
import updatepage from "../../assets/images/updatepage.png";
+const MotionBox = motion(Box);
+
export default function UpdatePage() {
const navigate = useNavigate();
- const [screenWidth, setScreenWidth] = useState(window.screen.width);
+ const { isOpen, onOpen, onClose } = useDisclosure();
+ const [selectedImage, setSelectedImage] = useState("");
+ const [updates, setUpdates] = useState([
+ {
+ date: "9/25/2023",
+ title: "Website Launch",
+ description: "ZotnFound is now live! Explore our new features and start finding lost items.",
+ items: [
+ { type: "image", content: updatepage },
+ { type: "text", content: "WEBSITE IS LIVE!" },
+ { type: "text", content: "New user-friendly interface" },
+ { type: "text", content: "Enhanced search capabilities" },
+ ],
+ tag: "Major Update",
+ },
+ // Add more updates here
+ ]);
+
+ const bgColor = useColorModeValue("gray.50", "gray.900");
+ const cardBgColor = useColorModeValue("white", "gray.800");
+ const borderColor = useColorModeValue("gray.200", "gray.600");
+ const tagColor = useColorModeValue("green.500", "green.200");
const handleClick = () => {
navigate("/");
};
- window.onresize = () => {
- setScreenWidth(window.screen.width);
+ const openImageModal = (imageSrc) => {
+ setSelectedImage(imageSrc);
+ onOpen();
};
return (
-
-
-
-
-
-
-
- ZotnFound Updates
-
-
-
-
-
-
-
-
-
-
- FOLLOW:
-
-
-
-
+
+
+
+
+ }
+ onClick={handleClick}
+ size="lg"
+ variant="outline"
+ >
+ Return Home
+
+
+ ZotnFound Updates
+
+ }
+ colorScheme="pink"
+ size="lg"
+ >
+ Follow Us
+
- {/* update messages */}
-
- 9/25/2023
-
-
-
-
-
-
-
- WEBSITE IS LIVE!
-
-
-
- {/* ^^^^^ update messages ^^^^^^*/}
+
+ {updates.map((update, index) => (
+
+
+
+
+ {update.tag}
+
+
+ {update.date}
+
+
+
+ {update.title}
+
+
+ {update.description}
+
+
+
+ {update.items.map((item, itemIndex) => (
+
+
+ {item.type === "image" ? (
+ openImageModal(item.content)}
+ transition="transform 0.3s"
+ _hover={{ transform: "scale(1.05)" }}
+ />
+ ) : (
+ • {item.content}
+ )}
+
+
+ ))}
+
+
+
+ ))}
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
);
}