Skip to content

Commit

Permalink
[Update]title 및 TopNav CSS 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ChungO5 committed Jul 28, 2024
1 parent d14da3f commit 9621faa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>TinoGames</title>
<title>티노 게임</title>
</head>
<body>
<!-- fontawesome -->
Expand Down
10 changes: 8 additions & 2 deletions src/components/organisms/TopNavigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,20 @@ const TopBar = styled.div`
.button {
margin: auto;
background-color: #5383e8;
color: white;
color: #ffffff;
text-decoration: none;
display: block;
border: 0px;
font-size: 18px;
i {
font-size: 25px;
}
&.login {
color: #ccc;
}
&.login:hover {
color: #ffffff;
}
}
div {
width: 60px;
Expand Down Expand Up @@ -125,7 +131,7 @@ const TopNavigationBar = () => {
</div>
{userId === null ? (
<div className="rightMenu">
<Link to="/login" className="button">
<Link to="/login" className="button login">
로그인
</Link>
</div>
Expand Down
8 changes: 8 additions & 0 deletions src/pages/GamePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const GamePage = () => {
const loaderRef = useRef(null);
const rankingRef = useRef(null);

// 게임 정보 호출
useEffect(() => {
const getData = async () => {
try {
Expand All @@ -40,6 +41,7 @@ const GamePage = () => {
getData();
}, [params]);

// 게임 랭킹 호출
useEffect(() => {
const getData = async () => {
try {
Expand All @@ -63,6 +65,7 @@ const GamePage = () => {
getData();
}, [params]);

// 리뷰 호출
useEffect(() => {
const getData = async () => {
try {
Expand All @@ -86,6 +89,7 @@ const GamePage = () => {
getData();
}, [params, reviewSort]);

// MY랭킹 새로고침
const rankingRefresh = async () => {
setBtnDisable(true);
try {
Expand All @@ -100,6 +104,7 @@ const GamePage = () => {
setBtnDisable(false);
};

// 리뷰 작성 & 수정
const reviewsubmit = async (reviewText) => {
try {
if (reviewEdit === true) {
Expand Down Expand Up @@ -166,6 +171,7 @@ const GamePage = () => {
}
};

// 리뷰 무한 스크롤
useEffect(() => {
const fetchMoreData = async () => {
try {
Expand Down Expand Up @@ -200,6 +206,7 @@ const GamePage = () => {
return () => observer.disconnect();
}, [loaderRef, reviewPage, params, reviewSort]);

// 랭킹 무한 스크롤
useEffect(() => {
const fetchMoreData = async () => {
try {
Expand Down Expand Up @@ -232,6 +239,7 @@ const GamePage = () => {
}
return () => observer.disconnect();
}, [rankingRef, params, rankingPage]);

return (
<div>
<GameDetail
Expand Down

0 comments on commit 9621faa

Please sign in to comment.