diff --git a/src/components/header.js b/src/components/header.js index 3897130..be49931 100644 --- a/src/components/header.js +++ b/src/components/header.js @@ -1,9 +1,10 @@ import { useEffect, useState } from "react" import { Select, Input, Button } from "antd" -import { CrownFilled, DownloadOutlined, DownOutlined } from "@ant-design/icons" +import { CrownFilled, DownloadOutlined, DownOutlined, PlayCircleFilled, VideoCameraOutlined } from "@ant-design/icons" import FrameWorks from "../constants/frameworks" import Premium from "../sidebar/utils/premium" +import VideoPopUp from "./video-popup" const items = [ @@ -26,23 +27,33 @@ function Header({projectName, onProjectNameChange, framework, onFrameworkChange,
- {console.log("value: ", key); onFrameworkChange(key); }} + onChange={(key) => {onFrameworkChange(key)}} + className="tw-min-w-[150px]" + /> + +
+ Watch demo + +
+
+
- + { + + const [popUpOpen, setPopUpOpen] = useState(false) + + + const handleVideoOpen = () => { + setPopUpOpen(true) + } + + const handleVideoClose = (event) => { + event.stopPropagation() + + setPopUpOpen(false) + } + + return ( +
+ {children} + + +
+ +
+
+ +
+ ) +} + +export default VideoPopUp \ No newline at end of file