diff --git a/src/option/GithubStarBanner.tsx b/src/option/GithubStarBanner.tsx new file mode 100644 index 0000000..298b63b --- /dev/null +++ b/src/option/GithubStarBanner.tsx @@ -0,0 +1,60 @@ +import type React from 'react'; +import { useState } from 'react'; +import { Github } from 'lucide-react'; +import { motion } from 'framer-motion'; + +const GitHubStarBanner: React.FC = () => { + const [isHovered, setIsHovered] = useState(false); + + const handleClick = () => { + window.open('https://github.com/hs-shell/dotbugi', '_blank'); + }; + + return ( +
setIsHovered(true)} + onMouseLeave={() => setIsHovered(false)} + className="mt-4 mb-2 mx-1 py-4 px-2 bg-gradient-to-r from-slate-100 to-slate-200 rounded-lg border border-slate-200 shadow-sm cursor-pointer hover:shadow-md transition-all duration-300 group" + > +
+
+ +
+ + + + + + +
+
+

이 프로젝트가 마음에 드시나요?

+

GitHub에서 스타를 눌러주세요!

+
+
+ ); +}; + +export default GitHubStarBanner; diff --git a/src/option/Sidebar.tsx b/src/option/Sidebar.tsx index 4bd1f89..944719c 100644 --- a/src/option/Sidebar.tsx +++ b/src/option/Sidebar.tsx @@ -1,17 +1,10 @@ -import { - Calendar, - Home, - LayoutDashboard, - NotebookText, - NotepadText, - Palette, - Settings, - Video, - Zap, -} from 'lucide-react'; +'use client'; + +import { Calendar, Github, LayoutDashboard, NotebookText, Palette, Star, Video, Zap } from 'lucide-react'; import type React from 'react'; import { Link, useLocation } from 'react-router-dom'; import icon from '@/assets/icon.png'; +import GitHubStarBanner from './GithubStarBanner'; const Sidebar: React.FC = () => { return ( @@ -26,7 +19,7 @@ const Sidebar: React.FC = () => { }} > @@ -37,7 +30,7 @@ const Sidebar: React.FC = () => { -