Skip to content

Commit

Permalink
Merge pull request #124 from KAU-2024-Sanhak/pr-merge
Browse files Browse the repository at this point in the history
Pr merge
  • Loading branch information
jyc0011 authored Nov 27, 2024
2 parents 8895548 + b497ceb commit 2421d01
Show file tree
Hide file tree
Showing 76 changed files with 47 additions and 45 deletions.
3 changes: 1 addition & 2 deletions src/main/frontend/.env.local
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# NEXT_PUBLIC_API_URL=http://3.34.208.68:8080
NEXT_PUBLIC_API_URL=http://localhost:8080
NEXT_PUBLIC_API_URL=http://localhost:8080
6 changes: 3 additions & 3 deletions src/main/frontend/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// // next.config.js
// module.exports = {
// output: 'export',
// reactStrictMode: true,
// };
// output: 'export',
// reactStrictMode: true,
//};
Binary file modified src/main/frontend/public/asset/png/skill/apache_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/appium_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/assembly_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/binary_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/cassandra_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/cloudflare_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/cryptography_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/dask_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/espresso_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/expressjs_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/fastapi_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/flask_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/fresh_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/ggplot2_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/h2database_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/http_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/injection_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/ips_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified src/main/frontend/public/asset/png/skill/keras_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/knexjs_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/kubernetes_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/laravel_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/linux_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/microsoft_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/frontend/public/asset/png/skill/mybatis_img.png
Binary file modified src/main/frontend/public/asset/png/skill/numpy_img.png
Binary file modified src/main/frontend/public/asset/png/skill/nuxtjs_img.png
Binary file modified src/main/frontend/public/asset/png/skill/onnx_img.png
Binary file modified src/main/frontend/public/asset/png/skill/pandas_img.png
Diff not rendered.
Binary file modified src/main/frontend/public/asset/png/skill/pytorch_img.png
Binary file modified src/main/frontend/public/asset/png/skill/reactnative_img.png
Binary file modified src/main/frontend/public/asset/png/skill/rspec_img.png
Binary file modified src/main/frontend/public/asset/png/skill/scikitlearn_img.png
Binary file modified src/main/frontend/public/asset/png/skill/seaborn_img.png
Binary file modified src/main/frontend/public/asset/png/skill/sharp_img.png
Binary file modified src/main/frontend/public/asset/png/skill/spark_img.png
Binary file modified src/main/frontend/public/asset/png/skill/sqlalchemy_img.png
Binary file modified src/main/frontend/public/asset/png/skill/swift_img.png
Binary file modified src/main/frontend/public/asset/png/skill/tailwind_img.png
Binary file modified src/main/frontend/public/asset/png/skill/tcpip_img.png
Binary file modified src/main/frontend/public/asset/png/skill/tensorflow_img.png
Binary file added src/main/frontend/public/asset/png/tool/xcode.png
2 changes: 1 addition & 1 deletion src/main/frontend/src/app/mypage/RecommendCompany.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function RecommendCompany({
<div className="line-clamp-1 mb-2 relative z-10">{company.title}</div>
<div className="mb-1 relative z-10">{categoryLabels[company.category]}</div>
<div className="mb-5 relative z-10">기업 적합도: {company.congruence}%</div>
<div className="cursor-pointer text-xs relative z-10 ml-auto" onClick={() => window.open(`${company.openingUrl}`, '_blank')}>{'원티드에서 공고 확인하기 ->'}</div>
<div className="cursor-pointer text-xs relative z-10 ml-auto" onClick={() => window.open(`${company.openingUrl}`, '_blank')}>{'기업 홈페이지에서 확인하기 ->'}</div>
</div>
);
}
8 changes: 4 additions & 4 deletions src/main/frontend/src/app/mypage/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export default function UserProfile({
},[userInfo])

return (
<div className='w-full h-fit min-h-64 flex justify-between border-b border-gray-cc pb-5'>
<div className='w-1/2 flex flex-row items-center justify-between'>
<div className='w-full h-fit min-h-64 flex lg:flex-col justify-between border-b border-gray-cc pb-5 lg:px-10'>
<div className='w-1/2 flex flex-row items-center justify-between lg:w-full'>
<div className='w-full flex items-center'>
<div className="w-64 h-64 object-cover rounded-xl border border-gray-cc">
{isEditing ? (
Expand Down Expand Up @@ -193,9 +193,9 @@ export default function UserProfile({
</div>
</div>

<div className='w-[555px] max-h-[256px] bg-primary rounded-xl flex flex-wrap content-start p-4 overflow-y-auto scrollbar'>
<div className='w-1/2 max-h-[256px] bg-primary rounded-xl flex flex-wrap content-start p-4 ml-4 overflow-y-auto scrollbar xl:w-3/7 lg:w-full'>
{badgeInfo?.map((skill) => (
<SkillBadge key={skill.id} skill={skill} />
<SkillBadge key={skill.id} skill={skill} />
))}
</div>
</div>
Expand Down
57 changes: 30 additions & 27 deletions src/main/frontend/src/app/mypage/pageComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default function MypagePage() {
const [currentRoadmap, setCurrentRoadmap] = useState(0);
const [currentCard, setCurrentCard] = useState(0);
const [recommendCompanyList, setRecommendCompanyList] = useState<UserRecommendCompany[]>([]);
const [isLoadingRoadmaps, setIsLoadingRoadmaps] = useState(true);

const roadmapSlideSettings = {
dots: true, // 슬라이더 하단에 점 표시
Expand Down Expand Up @@ -112,9 +111,7 @@ export default function MypagePage() {
setRoadmapInfos(data);
} catch (error) {
console.error('Error fetching roadmaps:', error);
} finally {
setIsLoadingRoadmaps(false);
}
}
};
fetchRoadmaps();

Expand Down Expand Up @@ -161,42 +158,48 @@ export default function MypagePage() {

return (
<div className="w-full h-full flex flex-col items-center mt-5">
<div className='w-[1400px] h-full px-24'>
<div className='max-w-[1400px] h-full px-24 xl:px-20 lg:px-12'>
<div className='w-full flex flex-col pb-5'>
<UserProfile userInfo={userInfo} badgeInfo={badgeInfo} onSave={onSaveProfile}/>
</div>
<div className='w-full flex justify-between mb-10 border-b border-gray-cc pb-10'>
<div className='w-3/5 flex flex-col justify-start'>
<div className='flex flex-col'>
<div className='flex items-center text-center text-2xl font-gmarketsansMedium'><img className='w-6 h-6 mb-1 mr-1' src='asset/png/icon_filter_roadmap.png' alt='커스텀로드맵' />커스텀 로드맵</div>
<div className='text-xl font-gmarketsansMedium'>{roadmapInfos[currentRoadmap]?.name || ''}</div>
<div className='text-xl font-gmarketsansMedium'>{roadmapInfos[currentRoadmap]?.name || '-'}</div>
</div>
<Slider {...roadmapSlideSettings} className="w-full mx-auto">
{isLoadingRoadmaps ? (
<div>Loading...</div>
) : roadmapInfos.length > 0 ? (
roadmapInfos.map((roadmap, index) => (
<div key={index} className="w-full h-full flex justify-center items-center p-5">
<Roadmap isEditMode={false} roadmapSkills={roadmap.skills} style={'h-[75dvh] max-h-[600px] mb-4'} />
</div>
))
) : (
<div>No roadmaps available</div>
)}
</Slider>
{roadmapInfos.length > 0 ? (
<Slider {...roadmapSlideSettings} className="w-full mx-auto">
{roadmapInfos.map((roadmap, index) => (
<div key={index} className="w-full h-full flex justify-center items-center p-5">
<Roadmap isEditMode={false} roadmapSkills={roadmap.skills} style={'h-[75dvh] max-h-[600px] mb-4'} />
</div>
))}
</Slider>
) : (
<div className="w-full h-full flex justify-center items-center p-5">
<div className='w-full h-[75dvh] max-h-[600px] mb-4 box-border flex flex-col items-center justify-center rounded-xl shadow-[4px_4px_8px_rgba(0,0,0,0.3)] font-gmarketsansMedium'>빈 커스텀 로드맵</div>
</div>
)}
</div>
<div className='w-[435px] flex flex-col'>
<div className='flex flex-col'>
<div className='flex items-center text-center text-2xl font-gmarketsansMedium'><img className='w-6 h-6 mb-1 mr-1' src='asset/png/icon_filter_card.png' alt='AI 경험 카드' />AI경험카드</div>
<div className='text-xl font-gmarketsansMedium'>{cardInfos[currentCard]?.title || ''}</div>
<div className='text-xl font-gmarketsansMedium'>{cardInfos[currentCard]?.title || '-'}</div>
</div>
<Slider {...cardSlideSettings} className="w-full mx-auto">
{cardInfos.map((card, index) => (
<div key={index} className="w-full h-full flex justify-center items-center p-5">
<Card card={card} />
</div>
))}
</Slider>
{cardInfos.length > 0 ? (
<Slider {...cardSlideSettings} className="w-full mx-auto">
{cardInfos.map((card, index) => (
<div key={index} className="w-full h-full flex justify-center items-center p-5">
<Card card={card} />
</div>
))}
</Slider>
) : (
<div className="w-full h-full flex justify-center items-center p-5">
<div className='w-[400px] h-[75dvh] max-h-[600px] flex items-center justify-center relative mb-4 font-gmarketsansMedium bg-white rounded-xl shadow-[4px_4px_8px_rgba(0,0,0,0.3)]'>빈 AI경험카드</div>
</div>
)}
</div>
</div>
<div>
Expand Down
16 changes: 8 additions & 8 deletions src/main/frontend/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ const config: Config = {
white: '#FFFFFF',
transparent: 'transparent',
},
screens: {
'sm': '980px',
'md': '1098px',
'lg': '1280px',
'desktop': '1440px',
'custom-928': '928px',
'custom-min': '723px',
},
extend: {
maxWidth: {
'custom': '1400px',
},
screens: {
'2xl': { max: '1400px' }, // 기존 2xl을 1400px로 변경
'xl': { max: '1280px' }, // 데스크톱
'lg': { max: '1024px' }, // 태블릿 (가로)
'md': { max: '768px' }, // 태블릿 (세로)
'sm': { max: '640px' }, // 작은 화면
'xs': { max: '480px' }, // 모바일
},
fontFamily: {
pretendard: ["pretendard",'sans-serif'],
dsdigi: ["DS-DIGI"],
Expand Down

0 comments on commit 2421d01

Please sign in to comment.