Skip to content

Commit

Permalink
style: scss style file 수정
Browse files Browse the repository at this point in the history
assets: favicon 변경
  • Loading branch information
moong23 committed Jul 4, 2023
1 parent 0fb101b commit 7522034
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 8 deletions.
Binary file modified public/favicon.ico
Binary file not shown.
14 changes: 7 additions & 7 deletions src/scss/color.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
$color_white: #ffffff;
$color_white_25: "#FFFFFF40";
$color_white_40: "#FFFFFF66";
$color_white_25: #ffffff40;
$color_white_40: #ffffff66;

$color_black_100: "#000235";
$color_black_30: "#0002354D";
$color_black_40: "#00023566";
$color_black_5: "#0002350D";
$color_black_100: #000235;
$color_black_30: #0002354d;
$color_black_40: #00023566;
$color_black_5: #0002350d;

$color_point: "#FF7145";
$color_point: #ff7145;
2 changes: 1 addition & 1 deletion src/scss/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ input[type="checkbox"] {

&-orange {
color: $color_white;
background-color: orange; //$color_point;
background-color: $color_point;
padding: 1.4rem 2rem;
border-radius: 1rem;
}
Expand Down
37 changes: 37 additions & 0 deletions src/utils/axios.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import axios from "axios";

const fetchWrapper = async ({ method, url, body, params }: any) => {
const config = {
baseUrl: process.env.REACT_APP_API_URL,
withCredentials: "true",
...params,
};
try {
const data =
(method === "get" && (await axios.get(url, config))) ||
(method === "post" && (await axios.post(url, body, config))) ||
(method === "put" && (await axios.put(url, body, config))) ||
(method === "patch" && (await axios.patch(url, body, config))) ||
(method === "delete" && (await axios.delete(url, config))) ||
{};

return data;
} catch (error) {
console.error(error);
return error;
}
};

export const GET = (url: string, params?: any) =>
fetchWrapper({ method: "get", url, params });

export const POST = (url: string, body: any, params?: any) =>
fetchWrapper({ method: "post", url, body, params });

export const PUT = (url: string, body: any, params: any) =>
fetchWrapper({ method: "put", url, body, params });

export const PATCH = (url: string, body: any, params: any) =>
fetchWrapper({ method: "patch", url, body, params });

export const DELETE = (url: string) => fetchWrapper({ method: "delete", url });

0 comments on commit 7522034

Please sign in to comment.