diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..e6b7581
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,12 @@
+{
+ "printWidth": 80,
+ "tabWidth": 2,
+ "useTabs": false,
+ "semi": true,
+ "singleQuote": false,
+ "trailingComma": "es5",
+ "bracketSpacing": true,
+ "arrowParens": "always",
+ "endOfLine": "lf",
+ "plugins": ["prettier-plugin-tailwindcss"]
+}
diff --git a/next.config.ts b/next.config.ts
index 6734ff2..ecfa0b1 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -1,7 +1,12 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
- domains: ["encrypted-tbn0.gstatic.com"],
+ domains: [
+ "encrypted-tbn0.gstatic.com",
+ "www.gunsan.go.kr",
+ "www.ktriptips.com",
+ "www.saemangeum.go.kr",
+ ],
},
};
diff --git a/package-lock.json b/package-lock.json
index b0def38..fe3869a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -28,6 +28,8 @@
"@types/webpack": "^5.28.5",
"eslint": "^9",
"eslint-config-next": "15.3.3",
+ "prettier": "^3.6.2",
+ "prettier-plugin-tailwindcss": "^0.6.13",
"tailwindcss": "^4.1.9",
"typescript": "^5"
}
@@ -7557,6 +7559,101 @@
"node": ">= 0.8.0"
}
},
+ "node_modules/prettier": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz",
+ "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
+ "node_modules/prettier-plugin-tailwindcss": {
+ "version": "0.6.13",
+ "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.6.13.tgz",
+ "integrity": "sha512-uQ0asli1+ic8xrrSmIOaElDu0FacR4x69GynTh2oZjFY10JUt6EEumTQl5tB4fMeD6I1naKd+4rXQQ7esT2i1g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.21.3"
+ },
+ "peerDependencies": {
+ "@ianvs/prettier-plugin-sort-imports": "*",
+ "@prettier/plugin-pug": "*",
+ "@shopify/prettier-plugin-liquid": "*",
+ "@trivago/prettier-plugin-sort-imports": "*",
+ "@zackad/prettier-plugin-twig": "*",
+ "prettier": "^3.0",
+ "prettier-plugin-astro": "*",
+ "prettier-plugin-css-order": "*",
+ "prettier-plugin-import-sort": "*",
+ "prettier-plugin-jsdoc": "*",
+ "prettier-plugin-marko": "*",
+ "prettier-plugin-multiline-arrays": "*",
+ "prettier-plugin-organize-attributes": "*",
+ "prettier-plugin-organize-imports": "*",
+ "prettier-plugin-sort-imports": "*",
+ "prettier-plugin-style-order": "*",
+ "prettier-plugin-svelte": "*"
+ },
+ "peerDependenciesMeta": {
+ "@ianvs/prettier-plugin-sort-imports": {
+ "optional": true
+ },
+ "@prettier/plugin-pug": {
+ "optional": true
+ },
+ "@shopify/prettier-plugin-liquid": {
+ "optional": true
+ },
+ "@trivago/prettier-plugin-sort-imports": {
+ "optional": true
+ },
+ "@zackad/prettier-plugin-twig": {
+ "optional": true
+ },
+ "prettier-plugin-astro": {
+ "optional": true
+ },
+ "prettier-plugin-css-order": {
+ "optional": true
+ },
+ "prettier-plugin-import-sort": {
+ "optional": true
+ },
+ "prettier-plugin-jsdoc": {
+ "optional": true
+ },
+ "prettier-plugin-marko": {
+ "optional": true
+ },
+ "prettier-plugin-multiline-arrays": {
+ "optional": true
+ },
+ "prettier-plugin-organize-attributes": {
+ "optional": true
+ },
+ "prettier-plugin-organize-imports": {
+ "optional": true
+ },
+ "prettier-plugin-sort-imports": {
+ "optional": true
+ },
+ "prettier-plugin-style-order": {
+ "optional": true
+ },
+ "prettier-plugin-svelte": {
+ "optional": true
+ }
+ }
+ },
"node_modules/prop-types": {
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
diff --git a/package.json b/package.json
index eeb0e6a..95647b6 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,8 @@
"@types/webpack": "^5.28.5",
"eslint": "^9",
"eslint-config-next": "15.3.3",
+ "prettier": "^3.6.2",
+ "prettier-plugin-tailwindcss": "^0.6.13",
"tailwindcss": "^4.1.9",
"typescript": "^5"
}
diff --git a/public/file.svg b/public/file.svg
deleted file mode 100644
index 004145c..0000000
--- a/public/file.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/globe.svg b/public/globe.svg
deleted file mode 100644
index 567f17b..0000000
--- a/public/globe.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/next.svg b/public/next.svg
deleted file mode 100644
index 5174b28..0000000
--- a/public/next.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/vercel.svg b/public/vercel.svg
deleted file mode 100644
index 7705396..0000000
--- a/public/vercel.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/window.svg b/public/window.svg
deleted file mode 100644
index b2b2a44..0000000
--- a/public/window.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/app/_components/LandingPage/index.tsx b/src/app/_components/LandingPage/index.tsx
index e0e0b7a..72be1ab 100644
--- a/src/app/_components/LandingPage/index.tsx
+++ b/src/app/_components/LandingPage/index.tsx
@@ -1,9 +1,9 @@
"use client";
-import Logo from "@/assets/icons/logo.png";
+import { useEffect } from "react";
import { createNewUser } from "@/utils/createNewUser";
import Image from "next/image";
-import { useEffect } from "react";
+import Logo from "@/assets/icons/logo.png";
export default function LandingPage({
routing,
@@ -18,14 +18,14 @@ export default function LandingPage({
}, [routing]);
return (
-
-
+
+
-
-
+
+
새길에 오신 것을 환영해요!
-
+
먼저 간단한 정보부터 시작해볼까요?
diff --git a/src/app/_components/SurveyScreen/ProgressBar.jsx b/src/app/_components/SurveyScreen/ProgressBar.jsx
index e7ca533..3de8aca 100644
--- a/src/app/_components/SurveyScreen/ProgressBar.jsx
+++ b/src/app/_components/SurveyScreen/ProgressBar.jsx
@@ -1,8 +1,8 @@
export default function ProgressBar({ progress }) {
return (
-
+
diff --git a/src/app/_components/SurveyScreen/SurveyOption.tsx b/src/app/_components/SurveyScreen/SurveyOption.tsx
index ade20be..f4b448c 100644
--- a/src/app/_components/SurveyScreen/SurveyOption.tsx
+++ b/src/app/_components/SurveyScreen/SurveyOption.tsx
@@ -1,7 +1,7 @@
import clsx from "clsx";
import Image from "next/image";
-import checkDefault from "@/assets/icons/check.png";
-import checkActive from "@/assets/icons/check_current.png";
+import checkDefault from "@/assets/icons/check_default.svg";
+import checkActive from "@/assets/icons/check_active.svg";
interface SurveyOptionProps {
text: string;
@@ -18,13 +18,13 @@ export default function SurveyOption({
diff --git a/src/app/_components/SurveyScreen/hooks/useSurvey.ts b/src/app/_components/SurveyScreen/hooks/useSurvey.ts
index dd03636..9bfb13e 100644
--- a/src/app/_components/SurveyScreen/hooks/useSurvey.ts
+++ b/src/app/_components/SurveyScreen/hooks/useSurvey.ts
@@ -7,7 +7,7 @@ interface UseSurveyProps {
routing?: (page: string) => void;
}
-export default function useSurvey({ type, routing }: UseSurveyProps) {
+export function useSurvey({ type, routing }: UseSurveyProps) {
const router = useRouter();
const questions = surveyData[type];
diff --git a/src/app/_components/SurveyScreen/index.tsx b/src/app/_components/SurveyScreen/index.tsx
index cc8599e..8610953 100644
--- a/src/app/_components/SurveyScreen/index.tsx
+++ b/src/app/_components/SurveyScreen/index.tsx
@@ -1,6 +1,6 @@
"use client";
-import useSurvey from "./hooks/useSurvey";
+import { useSurvey } from "./hooks/useSurvey";
import ProgressBar from "@/app/_components/SurveyScreen/ProgressBar";
import SurveyOption from "./SurveyOption";
import Button from "@/components/Button";
@@ -22,18 +22,18 @@ export default function SurveyScreen({ type, routing }: SurveyScreenProps) {
} = useSurvey({ type, routing });
return (
-
+
-
+
-
+
{questions[currentQuestion].title}
-
+
{questions[currentQuestion].contents}
-
+
{questions[currentQuestion].items.map((item, index) => (
))}
-
+
{currentQuestion > 0 && (