Skip to content

Commit

Permalink
[#112] modify styles
Browse files Browse the repository at this point in the history
  • Loading branch information
hanseulhee committed Jun 27, 2023
1 parent 7a24809 commit c9b7022
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/components/Nav/BottomCategory.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css } from "@emotion/react";
import { useRouter } from "next/router";
import Link from "next/link";
import { useRouter } from "next/router";
import { ReactNode } from "react";

interface Props {
Expand All @@ -12,7 +12,7 @@ interface Props {
function BottomCategory({ path, category, icon }: Props) {
const router = useRouter();
const click = {
color: router.asPath === path ? "#000000" : "#888888",
color: router.asPath === path ? "#000000" : "#757575",
fontWeight: router.asPath === path ? "700" : "500",
};
return (
Expand Down
24 changes: 12 additions & 12 deletions src/components/Nav/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ function SearchBar({ search, onChange }: Props) {
return (
<div css={wrapper}>
<div css={inputWrapper}>
<label htmlFor="search"></label>
<input
type="text"
id="search"
css={inputCss}
placeholder="오늘은 또 무얼 먹어볼까? 🔍"
value={search}
onChange={onChange}
/>
<label htmlFor="search">
<input
type="text"
id="search"
css={inputCss}
placeholder="오늘은 또 무얼 먹어볼까? 🔍"
value={search}
onChange={onChange}
/>
</label>
</div>
</div>
);
Expand Down Expand Up @@ -49,8 +50,7 @@ const inputCss = (theme: Theme) => css`
border-radius: 12px;
width: 100%;
height: 100%;
padding: 0.77rem 0.815rem;
font-weight: ${theme.fontWeight.normal};
padding: 0.7rem 0.815rem;
font-size: 0.87rem;
font-weight: ${theme.fontWeight.normal};
`;
2 changes: 1 addition & 1 deletion src/components/Nav/TopCategory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function TopCategory({ path, category }: Props) {
const router = useRouter();

const click = {
color: router.asPath === path ? "#000000" : "#565656",
color: router.asPath === path ? "#000000" : "#757575",
fontSize: "0.94rem",
fontWeight: router.asPath === path ? "700" : "500",
};
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Notice/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { css } from "@emotion/react";
import InformCard from "components/Card/InformCard";
import bgLottieRandom from "assets/lottieJSON/random.json";
import bgLottieHi from "assets/lottieJSON/cardHi.json";
import bgLottieComm from "assets/lottieJSON/cardComm.json";
import bgLottieHi from "assets/lottieJSON/cardHi.json";
import bgLottieInquiry from "assets/lottieJSON/cardInquiry.json";
import bgLottieReview from "assets/lottieJSON/cardReview.json";
import bgLottieRandom from "assets/lottieJSON/random.json";
import InformCard from "components/Card/InformCard";
import Intro from "components/Notice/Intro";

function Notice() {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/Theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const theme = {
white: "#fafafa",
border: "#f2f2f2",
black: "#000000",
yellow: "#fbbe18",
yellow: "#ffbb00",
grey100: "#f9f9f9",
grey500: "#888888",
grey900: "#5d5d5d",
Expand Down

0 comments on commit c9b7022

Please sign in to comment.