@@ -16,7 +16,6 @@ export const Container = styled.div<{ $isMobile: boolean }>`
16
16
export const TrackNameContainer = styled . div `
17
17
width: 100%;
18
18
margin-bottom: 32px;
19
-
20
19
display: flex;
21
20
justify-content: start;
22
21
align-items: center;
@@ -25,9 +24,8 @@ export const TrackNameContainer = styled.div`
25
24
26
25
export const TrackName = styled . h2 < { $isMobile : boolean } > `
27
26
width: 338px;
28
-
29
27
color: var(--FarmSystem_Green07, #175321);
30
- font-size: ${ ( { $isMobile } ) => ( $isMobile ? "24px " : "32px" ) } ;
28
+ font-size: ${ ( { $isMobile } ) => ( $isMobile ? "22px " : "32px" ) } ;
31
29
font-style: normal;
32
30
font-weight: 700;
33
31
line-height: normal;
@@ -37,12 +35,14 @@ export const TrackName = styled.h2<{ $isMobile: boolean }>`
37
35
export const TrackDescription = styled . p < { $isMobile : boolean } > `
38
36
width: 100%;
39
37
max-width: 1040px;
40
- height: 200px;
38
+ height: 100%;
39
+ margin-bottom: 30px;
40
+ text-align: left;
41
41
color: var(--FarmSystem_Black, #191919);
42
- font-size: ${ ( { $isMobile } ) => ( $isMobile ? "16px " : "19px" ) } ;
42
+ font-size: ${ ( { $isMobile } ) => ( $isMobile ? "14px " : "19px" ) } ;
43
43
font-style: normal;
44
44
font-weight: 300;
45
- line-height: ${ ( { $isMobile } ) => ( $isMobile ? "30px " : "35px" ) } ; /* 150% */
45
+ line-height: ${ ( { $isMobile } ) => ( $isMobile ? "25px " : "35px" ) } ; /* 150% */
46
46
` ;
47
47
48
48
export const PhasesContainer = styled . div < { $isMobile : boolean } > `
@@ -54,9 +54,9 @@ export const PhasesContainer = styled.div<{ $isMobile: boolean }>`
54
54
flex-wrap: wrap;
55
55
` ;
56
56
57
- export const PhaseCard = styled . div < { $isMobile : boolean } > `
57
+ export const PhaseCard = styled . div < { $isDesktop : boolean } > `
58
58
display: flex;
59
- width: ${ ( { $isMobile } ) => ( $isMobile ? "100% " : "300px " ) } ;
59
+ width: ${ ( { $isDesktop } ) => ( $isDesktop ? "300px " : "100% " ) } ;
60
60
padding: 20px;
61
61
flex-direction: column;
62
62
justify-content: center;
@@ -72,6 +72,7 @@ export const PhaseTitle = styled.h3<{ $isMobile: boolean }>`
72
72
font-size: ${ ( { $isMobile } ) => ( $isMobile ? "18px" : "24px" ) } ;
73
73
font-weight: 700;
74
74
line-height: normal;
75
+ margin-top: 15px;
75
76
margin-bottom: ${ ( { $isMobile } ) => ( $isMobile ? "0px" : "11px" ) } ;
76
77
font-style: normal;
77
78
` ;
@@ -87,51 +88,51 @@ export const PhaseContent = styled.ul<{ $isMobile: boolean }>`
87
88
font-style: normal;
88
89
font-weight: 400;
89
90
line-height: 30px; /* 150% */
91
+
90
92
` ;
91
93
92
94
export const Li = styled . li < { $isMobile : boolean } > `
93
95
font-size: ${ ( { $isMobile } ) => ( $isMobile ? "14px" : "16px" ) } ;
94
96
color: var(--FarmSystem_Black, #191919);
95
97
` ;
96
98
97
-
98
- /** 전체를 감싸는 컨테이너 (기존 S.Container가 있다고 가정) */
99
- // export const Container = styled.div` ... `;
100
- // 이미 프로젝트 내에 S.Container가 있으시면 그대로 사용하세요.
101
-
102
- /** "담당 교수" 제목 + 아래 컨텐츠를 감싸는 영역 */
103
99
export const ProfessorNameContainer = styled . div < { $isMobile : boolean } > `
104
100
width: 100%;
105
101
margin-bottom: ${ ( { $isMobile } ) => ( $isMobile ? "10px" : "15px" ) } ;
106
102
` ;
107
103
108
- /** "담당 교수" 텍스트 */
109
- export const ProfessorText = styled . p < { $isMobile : boolean } > `
104
+ export const ProfessorText = styled . p < { $isMobile : boolean } > `
110
105
color: var(--FarmSystem_Green07, #175321);
111
- font-size: ${ ( { $isMobile } ) => ( $isMobile ? "18px " : "24px" ) } ;
106
+ font-size: ${ ( { $isMobile } ) => ( $isMobile ? "20px " : "24px" ) } ;
112
107
font-weight: 700;
113
- margin: 0 ;
108
+ margin: ${ ( { $isMobile } ) => ( $isMobile ? "10px" : "0px" ) } ;
114
109
text-align: left;
115
110
` ;
116
111
117
- /** 전체 레이아웃을 좌우 2개 컬럼(왼쪽 : 사진/이름/연락처, 오른쪽: 학력/전공/연구)으로 배치 */
118
- export const ProfessorProfile = styled . div < { $isMobile : boolean } > `
112
+ /** 교수 정보 전체 레이아웃 (좌 : 사진/이름/연락처, 우: 최종학력 등) */
113
+ export const ProfessorProfile = styled . div < { $isDesktop : boolean ; $ isMobile : boolean } > `
119
114
display: flex;
120
- flex-direction: ${ ( { $isMobile } ) => ( $isMobile ? "column" : "row" ) } ;
121
- justify-content: space-between;
115
+ flex-direction: ${ ( { $isDesktop } ) => ( $isDesktop ? "row" : "column" ) } ;
116
+
117
+ /* 오른쪽 정보가 너무 오른쪽으로 치우치지 않도록 flex-start */
118
+ justify-content: flex-start;
119
+
120
+ /* 데스크탑에서는 gap을 넉넉히 주어 좌우 공간 확보 */
121
+ gap: ${ ( { $isMobile } ) => ( $isMobile ? "20px" : "10px" ) } ;
122
122
align-items: flex-start;
123
- gap: ${ ( { $isMobile } ) => ( $isMobile ? "20px" : "30px" ) } ;
124
123
width: 100%;
125
124
` ;
126
125
127
- /** 왼쪽 컬럼( 사진/이름/연락처/홈페이지 ) */
128
- export const ProfessorProfileContent = styled . div < { $isMobile : boolean } > `
126
+ /** 왼쪽 섹션 (교수 사진/이름/연락처) */
127
+ export const ProfessorProfileContent = styled . div < { $isDesktop : boolean } > `
129
128
display: flex;
130
129
flex-direction: column;
131
- width: ${ ( { $isMobile } ) => ( $isMobile ? "100%" : "60%" ) } ;
130
+
131
+ /* 예: 데스크탑에서 60% */
132
+ width: ${ ( { $isDesktop } ) => ( $isDesktop ? "50%" : "100%" ) } ;
132
133
` ;
133
134
134
- /** 교수 사진 + 이름을 가로로 배치하는 컨테이너 */
135
+ /** 사진 + 이름을 가로/세로 배치하는 컨테이너 */
135
136
export const PhotoNameRow = styled . div < { $isMobile : boolean } > `
136
137
display: flex;
137
138
flex-direction: ${ ( { $isMobile } ) => ( $isMobile ? "column" : "row" ) } ;
@@ -140,34 +141,36 @@ export const PhotoNameRow = styled.div<{ $isMobile: boolean }>`
140
141
margin-bottom: 15px;
141
142
` ;
142
143
143
- /** 교수 사진 */
144
144
export const ProfessorImage = styled . img < { $isMobile : boolean } > `
145
145
width: ${ ( { $isMobile } ) => ( $isMobile ? "90px" : "120px" ) } ;
146
- height: ${ ( { $isMobile } ) => ( $isMobile ? "90px " : "120px " ) } ;
146
+ height: ${ ( { $isMobile } ) => ( $isMobile ? "100px " : "140px " ) } ;
147
147
object-fit: cover;
148
148
border-radius: 10px;
149
149
border: 1px solid #ddd;
150
150
` ;
151
151
152
- /** 교수 이름 */
153
152
export const ProfessorName = styled . p < { $isMobile : boolean } > `
154
153
font-size: ${ ( { $isMobile } ) => ( $isMobile ? "18px" : "22px" ) } ;
155
154
font-weight: 700;
156
155
color: #404040;
157
- margin: 0;
156
+ margin-top: 10px;
157
+ text-align: ${ ( { $isMobile } ) => ( $isMobile ? "center" : "left" ) } ;
158
158
` ;
159
159
160
- /** 연락처/이메일/연구실을 나열하는 리스트 */
161
160
export const ContactList = styled . ul < { $isMobile : boolean } > `
162
161
list-style: none;
163
162
padding: 0;
164
- margin: 0 0 10px;
163
+ margin: 10px 0 10px 10px;
165
164
display: flex;
166
165
flex-direction: column;
167
166
gap: ${ ( { $isMobile } ) => ( $isMobile ? "6px" : "8px" ) } ;
167
+
168
+ /* ProfessorName의 스타일 상속을 방지하기 위해 명시적으로 재설정 */
169
+ font-size: ${ ( { $isMobile } ) => ( $isMobile ? "14px" : "16px" ) } ;
170
+ font-weight: normal;
171
+ color: #635c55;
168
172
` ;
169
173
170
- /** 연락처/이메일/연구실 각각의 아이템 */
171
174
export const ContactItem = styled . li < { $isMobile : boolean } > `
172
175
font-size: ${ ( { $isMobile } ) => ( $isMobile ? "14px" : "16px" ) } ;
173
176
color: #635c55;
@@ -176,7 +179,7 @@ export const ContactItem = styled.li<{ $isMobile: boolean }>`
176
179
gap: 6px;
177
180
` ;
178
181
179
- /** 홈페이지 버튼 */
182
+ /** 홈페이지 버튼 (필요 시 사용) */
180
183
export const HomepageButton = styled . a < { $isMobile : boolean } > `
181
184
width: fit-content;
182
185
background-color: #fcfcfc;
@@ -194,31 +197,37 @@ export const HomepageButton = styled.a<{ $isMobile: boolean }>`
194
197
}
195
198
` ;
196
199
197
- /** 오른쪽 컬럼(최종학력/전공분야/연구분야) */
198
200
export const ProfessorContent = styled . div < { $isMobile : boolean } > `
199
- width: ${ ( { $isMobile } ) => ( $isMobile ? "100%" : "35%" ) } ;
201
+ width: 100%;
202
+ margin-top: ${ ( { $isMobile } ) => ( $isMobile ? "0" : "20px" ) } ;
203
+ ` ;
204
+
205
+ export const ProfileContainer = styled . div < { $isDesktop : boolean ;
206
+ $isMobile : boolean ; $isTablet : boolean ; } > `
207
+ width: ${ ( { $isDesktop } ) => ( $isDesktop ? "50%" : "100%" ) } ;
208
+ heigt: 300px;
209
+ display: grid;
210
+ grid-template-columns: ${ ( { $isDesktop, $isTablet, $isMobile } ) =>
211
+ $isDesktop ? "120px 1fr" : $isTablet ? "100px 1fr" : $isMobile ? "50px 1fr" : "50px 1fr" } ; gap: ${ ( { $isDesktop } ) => ( $isDesktop ? "12px" : "8px" ) } ;
212
+ background-color: #fafafa;
213
+ padding: ${ ( { $isDesktop } ) => ( $isDesktop ? "30px" : "10px" ) } ;
214
+ border-radius: 8px;
215
+ margin-right: 40px;
200
216
` ;
201
217
202
- /** 오른쪽 리스트(최종학력, 전공분야, 연구분야) */
203
- export const ProfileList = styled . ul < { $isMobile : boolean } > `
204
- list-style: none;
205
- margin: 0;
206
- padding: 0;
207
- display: flex;
208
- flex-direction: column;
209
- gap: ${ ( { $isMobile } ) => ( $isMobile ? "8px" : "10px" ) } ;
218
+ export const ProfileLabel = styled . div < { $isMobile : boolean } > `
219
+ font-weight: 600;
220
+ color: #404040;
221
+ text-align: left;
222
+ font-size: ${ ( { $isMobile } ) => ( $isMobile ? "12px" : "16px" ) } ;
223
+
224
+
210
225
` ;
211
226
212
- /** 오른쪽 리스트 아이템 */
213
- export const ProfileListItem = styled . li < { $isMobile : boolean } > `
214
- display: flex;
215
- flex-direction: ${ ( { $isMobile } ) => ( $isMobile ? "column" : "row" ) } ;
216
- gap: 6px;
217
- font-size: ${ ( { $isMobile } ) => ( $isMobile ? "14px" : "16px" ) } ;
227
+ export const ProfileValue = styled . div < { $isMobile : boolean } > `
228
+ font-weight: 400;
218
229
color: #635c55;
219
- ` ;
230
+ line-height: 1.4;
231
+ font-size: ${ ( { $isMobile } ) => ( $isMobile ? "12px" : "16px" ) } ;
220
232
221
- /** 불릿/라벨( ex: • 최종학력 ) */
222
- export const ProfileInfo = styled . p < { $isMobile : boolean } > `
223
- margin: 0;
224
233
` ;
0 commit comments