Skip to content

Commit

Permalink
Merge pull request #74 from Funssion-SWM/develop
Browse files Browse the repository at this point in the history
Fix: 자잘한 이슈 수정
  • Loading branch information
dongree authored Nov 19, 2023
2 parents 7874111 + bf10e2a commit ca8c906
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/components/create/QuestionEditorForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function QuestionEditorForm() {
return;
}
notifyToast('성공적으로 등록되었습니다.', 'success');
router.push(`/questions`);
router.push(`/questions/${res.questionId}`);
router.refresh();
});
};
Expand Down
34 changes: 21 additions & 13 deletions src/components/landing/LandingContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,21 @@ export default function LandingContainer() {
const router = useRouter();

return (
<div className="snap-y snap-mandatory overflow-y-scroll h-screen">
<section className="snap-y snap-mandatory overflow-y-scroll h-screen">
{/* <EventHeader /> */}
<div
className="flex relative flex-col justify-center items-center h-full sm:snap-always sm:snap-center bg-gradient-to-t from-soma-blue-30 from-0% via-white via-80%"
ref={firstScreenRef}
>
<Image src={logo} width={300} alt="logo" />
<h1 className="text-4xl sm:text-5xl mt-5 font-bold text-center overflow-hidden">
<Image
src={logo}
width={350}
alt="logo"
className={`transition-opacity ${
readyState ? 'opacity-100' : 'opacity-0 invisible'
} duration-1000 ease-in-out`}
/>
<h1 className="text-4xl sm:text-6xl mt-5 font-bold text-center overflow-hidden">
<TypeIt
options={{
strings: [''],
Expand All @@ -43,7 +50,7 @@ export default function LandingContainer() {
},
}}
>
개발 기록을 쉽고 즐겁게
무한한 개발 이야기 공간
</TypeIt>
</h1>
<div
Expand All @@ -52,9 +59,9 @@ export default function LandingContainer() {
} duration-1000 ease-in-out`}
>
<p className="text-sm sm:text-2xl my-7 text-center ">
자동 텍스트 생성 기능을 통해 글을 쉽고 빠르게 작성하세요
다양한 개발 컨텐츠를 쉽고 간편하게 만들어 보세요
<br />
블럭 기반 에디터를 활용해 개발 기록을 간편하게 작성해보세요
인포럼과 함께 긍정적인 개발 생태계를 만들어봐요
</p>
<button
className="bg-soma-blue-40 w-72 h-16 shadow-2xl text-white px-3.5 py-2 rounded-3xl transition hover:bg-soma-blue-50 sm:text-2xl"
Expand Down Expand Up @@ -95,9 +102,9 @@ export default function LandingContainer() {
텍스트 자동 생성 기능
</p>
<p className="text-sm sm:text-xl font-normal">
작성 중 ++를 입력해 텍스트를 자동 생성해보세요!
++ 명령어를 입력해 텍스트를 자동 생성해보세요!
<br />
글을 다 작성하면 자동생성된 요약과 태그를 제공합니다.
글을 다 작성하면 자동생성된 요약과 태그를 제공합니다!
{/* <br />
검색보다 빠르고 간편하게 정보를 제공합니다. */}
</p>
Expand All @@ -117,8 +124,9 @@ export default function LandingContainer() {
간편한 에디팅 기능
</p>
<p className="text-sm sm:text-xl font-normal">
바로 반영되는 마크다운을 사용해보세요!
<br />/ 키와 드래그를 이용하여 다양한 편집 기능을 사용해보세요!
/ 키와 드래그를 이용하여 다양한 편집 기능을 사용해보세요!
<br />
바로 반영되는 마크다운 문법을 사용해보세요!
</p>
</div>
<Image
Expand Down Expand Up @@ -158,9 +166,9 @@ export default function LandingContainer() {
채용 도우미 서비스
</p>
<p className="text-sm sm:text-xl font-normal">
원하는 직무의 구직자를 인포럼에서 찾아보세요!
원하는 직무의 개발자를 인포럼에서 찾아보세요!
<br />
키워드에 맞는 질문을 자동 생성해 미니인터뷰를 진행해보세요!
키워드에 맞는 질문을 자동 생성해 미니면접을 진행해보세요!
</p>
</div>
<Image
Expand Down Expand Up @@ -217,6 +225,6 @@ export default function LandingContainer() {
/>
</button>
</div> */}
</div>
</section>
);
}
4 changes: 2 additions & 2 deletions src/components/search/user-for-job/UserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ export default function UserCard({
<div className="flex justify-between items-center px-3 pt-3">
<div className="flex items-center gap-2">
<div className="relative">
<Link href={`/me/${id}`} prefetch={false}>
<a href={`/me/${id}`} target="_blank" rel="noopener noreferrer">
<Image
src={imagePath || basicProfileImg}
alt="profileImg"
width={40}
height={40}
className="rounded-full w-10 h-10 object-cover"
/>
</Link>
</a>
<Image
src={getImageSrcFromRank(rank)}
alt="rank"
Expand Down
2 changes: 1 addition & 1 deletion src/components/search/user-for-job/UserListContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function UserListContainer({

return (
<section className="w-full mt-10 sm:mt-20">
<div className={`sm:text-3xl text-xl font-bold my-5`}>User List</div>
<h3 className={`sm:text-3xl text-xl font-bold my-5`}>User List</h3>
<ul className="grid gap-4 grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
{userList.map((userForJobInfo) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default function Header({
href="/search/user-for-job"
className="text-soma-blue-40 text-sm font-semibold hover:text-soma-blue-50 transition-all"
>
구직 희망자 찾기
구직자 찾기
</Link>
)}
{/* <div className="relative">
Expand Down
4 changes: 2 additions & 2 deletions src/service/questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function getQuestionsByMemoId(
export async function createQuestion(
bodyData: PostQuestionData,
memoId: number
): Promise<Question | ErrorResponse> {
): Promise<{ questionId: number; message: string } | ErrorResponse> {
const url = new URL(`${process.env.NEXT_PUBLIC_SERVER_IP_ADDRESS}/questions`);
if (memoId) {
const params = { memoId: memoId.toString() };
Expand All @@ -83,7 +83,7 @@ export async function createQuestion(
export async function updateQuestion(
bodyData: PostQuestionData,
id: number
): Promise<Question | ErrorResponse> {
): Promise<IsSuccessResponse | ErrorResponse> {
return fetch(`${process.env.NEXT_PUBLIC_SERVER_IP_ADDRESS}/questions/${id}`, {
method: 'PUT',
headers: {
Expand Down
10 changes: 10 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ module.exports = {
maxHeight: {
'for-fit-screen': 'calc(100vh - 120px)',
},
fontSize: {
'6xl': [
'3.5rem',
{
lineHeight: '3.75rem',
letterSpacing: '-0.02em',
fontWeight: '700',
},
],
},
},
},
plugins: [
Expand Down

0 comments on commit ca8c906

Please sign in to comment.