diff --git a/public/images/dolphin.png b/public/images/dolphin.png deleted file mode 100644 index ddb219ec..00000000 Binary files a/public/images/dolphin.png and /dev/null differ diff --git a/public/images/turtle.png b/public/images/turtle.png deleted file mode 100644 index b3ac662f..00000000 Binary files a/public/images/turtle.png and /dev/null differ diff --git a/public/images/walrus.png b/public/images/walrus.png deleted file mode 100644 index 9808c689..00000000 Binary files a/public/images/walrus.png and /dev/null differ diff --git a/src/app/page.tsx b/src/app/page.tsx index d31a91fc..2e9759bf 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -7,12 +7,9 @@ import Image from "next/image"; import Link from "next/link"; import Pagination from "@/components/Pagination"; import Posts from "@/components/Posts"; -import Dolphin from "@/images/dolphin.png"; import First from "@/images/first.svg"; import Second from "@/images/second.svg"; import Third from "@/images/third.svg"; -import Turtle from "@/images/turtle.png"; -import Walrus from "@/images/walrus.png"; import { cn } from "@/lib/utils"; import useAuthStore from "@/stores/isAuth"; import useIsSearchBarFocusStore from "@/stores/isSearchBarFocus"; @@ -51,7 +48,6 @@ const Home = () => { const [recruit, setRecruit] = useState(true); const [post, setPost] = useState(); const [type, setType] = useState("all"); - const [activeIndex, setActiveIndex] = useState(0); const [keyword, setKeyword] = useState(""); const [debouncedValue, setDebouncedValue] = useState(""); const [deadline, setDeadline] = useState(false); @@ -164,10 +160,6 @@ const Home = () => { setPost(data); }; - const handleNext = () => { - setActiveIndex((prevIndex) => (prevIndex + 1) % 3); - }; - const handleInputChange = (e: React.ChangeEvent) => { setKeyword(e.target.value); }; @@ -253,14 +245,6 @@ const Home = () => { } }, [debouncedValue]); - useEffect(() => { - const interval = setInterval(() => { - handleNext(); - }, 4000); - - return () => clearInterval(interval); - }, [activeIndex]); - useEffect(() => { if (!isInitialRender) { setPage(0); @@ -299,99 +283,10 @@ const Home = () => { }; }, []); - const bannerDefaultStyle = - "flex h-250 md:h-300 lg:h-350 w-full justify-center flex-shrink-0 rounded-lg motion-reduce:transition-none float-left"; - return (
-
-
-
-
-
-
- 스테디로 -
-
- 동료를 찾아보세요! -
-
-
- Turtle -
-
-
-
-
-
-
- 스테디는 -
-
- 사랑입니다~! -
-
-
- Turtle -
-
-
-
-
-
-
- 스테디에 -
-
- 도전해 보세요! -
-
-
- Turtle -
-
-
-
-
-
-
setActiveIndex(0)} - >
-
setActiveIndex(1)} - >
-
setActiveIndex(2)} - >
-
-
+
🔥 인기 스테디
@@ -400,7 +295,7 @@ const Home = () => { key={item.id} href={`/steady/detail/${item.id}`} > -
+
{index <= 2 ? ( { ) : ( "" )} -
+
D-{calcDateDifference(item.deadline)}