-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff.txt
More file actions
3496 lines (3435 loc) · 112 KB
/
Copy pathdiff.txt
File metadata and controls
3496 lines (3435 loc) · 112 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
diff --git a/src/assets/icon/hamburger_menu.svg b/src/assets/icon/hamburger_menu.svg
index 63d7eca..bd7e5da 100644
--- a/src/assets/icon/hamburger_menu.svg
+++ b/src/assets/icon/hamburger_menu.svg
@@ -1,4 +1,4 @@
-<svg width="24" height="23" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg">
+<svg width="current" height="current" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<line y1="1.5" x2="24" y2="1.5" stroke="#00AAFF" stroke-width="3"/>
<line y1="11.5" x2="24" y2="11.5" stroke="#00AAFF" stroke-width="3"/>
<line y1="21.5" x2="24" y2="21.5" stroke="#00AAFF" stroke-width="3"/>
diff --git a/src/assets/icon/navigate_arrow.svg b/src/assets/icon/navigate_arrow.svg
index 4f10d6a..517a1a6 100644
--- a/src/assets/icon/navigate_arrow.svg
+++ b/src/assets/icon/navigate_arrow.svg
@@ -1,4 +1,4 @@
-<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
+<svg width="current" height="current" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M38.7071 25.7071C39.0976 25.3166 39.0976 24.6834 38.7071 24.2929L32.3431 17.9289C31.9526 17.5384 31.3195 17.5384 30.9289 17.9289C30.5384 18.3195 30.5384 18.9526 30.9289 19.3431L36.5858 25L30.9289 30.6569C30.5384 31.0474 30.5384 31.6805 30.9289 32.0711C31.3195 32.4616 31.9526 32.4616 32.3431 32.0711L38.7071 25.7071ZM12 26L38 26V24L12 24V26Z" fill="white"/>
<circle cx="25" cy="25" r="24" stroke="#FFFCED" stroke-width="2"/>
</svg>
diff --git a/src/components/atoms/footer/FooterContactText.tsx b/src/components/atoms/footer/FooterContactText.tsx
index 6780e09..dffd5da 100644
--- a/src/components/atoms/footer/FooterContactText.tsx
+++ b/src/components/atoms/footer/FooterContactText.tsx
@@ -1,11 +1,19 @@
import React from "react";
+import styled from "styled-components";
+import Colors from "@/constants/ui/Colors";
+import FontStyle from "@/components/ui/FontStyle";
interface FooterContactTextProps {
text: string;
}
+const StyledFooterContactText = styled.div`
+ color: ${Colors.primary};
+ ${FontStyle.captionRegular}
+`;
+
const FooterContactText: React.FC<FooterContactTextProps> = ({ text }) => {
- return <div className=" text-primary captionRegular ">{text}</div>;
+ return <StyledFooterContactText>{text}</StyledFooterContactText>;
};
export default FooterContactText;
diff --git a/src/components/atoms/footer/FooterLogo.tsx b/src/components/atoms/footer/FooterLogo.tsx
index 0e1733f..811c02a 100644
--- a/src/components/atoms/footer/FooterLogo.tsx
+++ b/src/components/atoms/footer/FooterLogo.tsx
@@ -1,25 +1,53 @@
import HiarcLogo from "../../../assets/image/hiarc_logo.png";
import AssetImage from "../image/AssetImage";
+import React from "react";
+import styled from "styled-components";
+import Colors from "@/constants/ui/Colors";
+import FontStyle from "@/components/ui/FontStyle";
+
+const FooterLogoContainer = styled.div`
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 16px; /* equivalent to Tailwind's space-x-4 */
+`;
+
+const TextContainer = styled.div`
+ display: flex;
+ flex-direction: column;
+ gap: 4px; /* equivalent to Tailwind's gap-1 */
+`;
+
+const Title = styled.div`
+ ${FontStyle.subhead3Bold}
+
+ color: ${Colors.primary};
+ letter-spacing: -0.02em; /* tracking-tighter; adjust if needed */
+ font-weight: 600; /* semi-bold */
+ white-space: nowrap;
+`;
+
+const Subtitle = styled.p`
+ color: ${Colors.primary};
+ ${FontStyle.captionRegular}
+ white-space: nowrap;
+ margin: 0;
+`;
const FooterLogo: React.FC = () => {
return (
- <div className="flex items-center justify-center space-x-4">
- {/* AssetImage 사용 */}
+ <FooterLogoContainer>
<AssetImage
src={HiarcLogo}
minWidth={40}
- maxWidth={120}
- height="w-14 h-14"
+ maxWidth={40}
+ height={56} /* Converted from "w-14 h-14" to 56px (3.5rem) */
/>
- <div className="flex flex-col gap-1">
- <div className="text-base text-primary tracking-tighter subhead2SemiBold whitespace-nowrap">
- HI-ARC 하이아크
- </div>
- <p className="text-primary captionRegular whitespace-nowrap">
- 홍익대학교 컴퓨터공학과 알고리즘 학회
- </p>
- </div>
- </div>
+ <TextContainer>
+ <Title>HI-ARC 하이아크</Title>
+ <Subtitle>홍익대학교 컴퓨터공학과 알고리즘 학회</Subtitle>
+ </TextContainer>
+ </FooterLogoContainer>
);
};
diff --git a/src/components/atoms/header/HamburgerButton.tsx b/src/components/atoms/header/HamburgerButton.tsx
index af496ed..d65ecdd 100644
--- a/src/components/atoms/header/HamburgerButton.tsx
+++ b/src/components/atoms/header/HamburgerButton.tsx
@@ -1,6 +1,73 @@
import React, { useState, useEffect, useRef } from "react";
-import HamburgerMenuIcon from "@/assets/icon/hamburger_menu.svg?react";
import { useNavigate } from "react-router-dom";
+import styled from "styled-components";
+import HamburgerMenuIcon from "@/assets/icon/hamburger_menu.svg?react";
+import Colors from "@/constants/ui/Colors";
+import FontStyles from "@/constants/ui/FontStyles";
+
+const Container = styled.div`
+ position: relative;
+ display: flex;
+ align-items: center;
+`;
+
+const ToggleButton = styled.button`
+ border: none;
+ background: none;
+ color: ${Colors.primary};
+ transition: color 300ms;
+ &:hover {
+ color: #1d4ed8;
+ }
+ &:focus {
+ outline: none;
+ }
+`;
+
+const DropdownMenu = styled.div<{ $isOpen: boolean }>`
+ position: absolute;
+ right: 0;
+ top: 100%;
+ width: 10rem;
+ background-color: #fff;
+ border: 1px solid ${Colors.primary};
+ border-radius: 0.375rem;
+ box-shadow:
+ 0 10px 15px -3px rgba(0, 0, 0, 0.1),
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);
+ z-index: 50;
+ transition: opacity 300ms ease-in-out;
+ opacity: ${(props) => (props.$isOpen ? "1" : "0")};
+ pointer-events: ${(props) => (props.$isOpen ? "auto" : "none")};
+`;
+
+const MenuList = styled.ul`
+ padding: 0.5rem 0;
+ margin: 0;
+ list-style: none;
+`;
+
+const MenuItemButton = styled.button`
+ display: block;
+ width: 100%;
+ text-align: left;
+ padding: 0.5rem 1rem;
+ color: ${Colors.primary};
+ ${FontStyles.body3Medium}
+ font-weight: 600; /* Semi-bold */
+ background: none;
+ border: none;
+ cursor: pointer;
+ transition: background-color 200ms;
+ &:hover {
+ background-color: ${Colors.gray100};
+ }
+`;
+
+const StyledHamburgerIcon = styled(HamburgerMenuIcon)`
+ width: 2rem;
+ height: 2rem;
+`;
const HamburgerButton: React.FC = () => {
const navigate = useNavigate();
@@ -11,13 +78,13 @@ const HamburgerButton: React.FC = () => {
{ label: "스터디", onClick: () => navigate("/study") },
{ label: "수상경력", onClick: () => navigate("/award") },
];
+
const [menuOpen, setMenuOpen] = useState(false);
const dropdownRef = useRef<HTMLDivElement | null>(null);
- // 메뉴 토글 함수
const toggleMenu = () => setMenuOpen((prev) => !prev);
- // 외부 클릭 감지 후 메뉴 닫기
+ // Close menu when clicking outside
useEffect(() => {
const handleClickOutside = (event: MouseEvent) => {
if (
@@ -38,55 +105,27 @@ const HamburgerButton: React.FC = () => {
}, [menuOpen]);
return (
- <div className="relative flex items-center" ref={dropdownRef}>
- {/* 햄버거 버튼 */}
- <button
- onClick={toggleMenu}
- className={`
- text-primary
- transition
- duration-300
- hover:text-blue-700
- focus:outline-none
- `}
- >
- <HamburgerMenuIcon className="w-8 h-8" />
- </button>
-
- {/* 드롭다운 메뉴 (페이드인/아웃 적용) */}
- <div
- className={`
- absolute
- right-0
- top-full
- w-40
- bg-white
- border
- border-primary
- rounded-md
- shadow-lg
- z-50
- transition-opacity duration-300 ease-in-out
- ${menuOpen ? "opacity-100 scale-100" : "opacity-0 scale-100 pointer-events-none"}
- `}
- >
- <ul className="py-2">
+ <Container ref={dropdownRef}>
+ <ToggleButton onClick={toggleMenu}>
+ <StyledHamburgerIcon />
+ </ToggleButton>
+ <DropdownMenu $isOpen={menuOpen}>
+ <MenuList>
{menuItems.map((item, index) => (
<li key={index}>
- <button
+ <MenuItemButton
onClick={() => {
item.onClick();
- setMenuOpen(false); // 메뉴 클릭 시 닫힘
+ setMenuOpen(false);
}}
- className="block w-full text-left px-4 py-2 text-primary subhead2SemiBold hover:bg-gray-100 transition duration-200"
>
{item.label}
- </button>
+ </MenuItemButton>
</li>
))}
- </ul>
- </div>
- </div>
+ </MenuList>
+ </DropdownMenu>
+ </Container>
);
};
diff --git a/src/components/atoms/header/HeaderMenuButton.tsx b/src/components/atoms/header/HeaderMenuButton.tsx
index a75edd6..5fa33b8 100644
--- a/src/components/atoms/header/HeaderMenuButton.tsx
+++ b/src/components/atoms/header/HeaderMenuButton.tsx
@@ -1,35 +1,36 @@
+import Colors from "@/constants/ui/Colors";
+import FontStyles from "@/constants/ui/FontStyles";
import React from "react";
+import styled from "styled-components";
interface HeaderMenuButtonProps {
text: string;
onClick: () => void;
}
+const StyledButton = styled.button`
+ color: ${Colors.primary};
+ ${FontStyles.subhead3ExtraBold}
+ background-color: transparent;
+ border: none;
+ cursor: pointer;
+ padding: 0.25rem 0.5rem;
+ border-radius: 0.375rem;
+ transition:
+ background-color 500ms ease,
+ color 500ms ease;
+
+ &:hover {
+ background-color: ${Colors.primary};
+ color: ${Colors.white};
+ }
+`;
+
const HeaderMenuButton: React.FC<HeaderMenuButtonProps> = ({
text,
onClick,
}) => {
- return (
- <button
- onClick={onClick}
- className={`
- text-primary
- subhead3ExtraBold
- bg-transparent
- border-none
- cursor-pointer
- px-2
- py-1
- rounded-md
- transition
- duration-500
- hover:bg-primary
- hover:text-white
- `}
- >
- {text}
- </button>
- );
+ return <StyledButton onClick={onClick}>{text}</StyledButton>;
};
export default HeaderMenuButton;
diff --git a/src/components/atoms/header/HiTingButton.tsx b/src/components/atoms/header/HiTingButton.tsx
deleted file mode 100644
index caf27d1..0000000
--- a/src/components/atoms/header/HiTingButton.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import React from "react";
-
-const HiTingButton: React.FC = () => {
- return (
- <a
- href="https://hi-rating-front-end.vercel.app/"
- className={`
- text-primary
- subhead3ExtraBold
- px-4
- py-2
- rounded-md
- hover:bg-primary
- hover:text-white
- transition
- duration-300
- `}
- >
- 하이팅
- </a>
- );
-};
-
-export default HiTingButton;
diff --git a/src/components/atoms/image/AssetImage.tsx b/src/components/atoms/image/AssetImage.tsx
index 7167c19..a4d0e60 100644
--- a/src/components/atoms/image/AssetImage.tsx
+++ b/src/components/atoms/image/AssetImage.tsx
@@ -1,4 +1,7 @@
+import FontStyle from "@/components/ui/FontStyle";
+import Colors from "@/constants/ui/Colors";
import React from "react";
+import styled from "styled-components";
interface AssetImageProps {
src: string;
@@ -9,64 +12,57 @@ interface AssetImageProps {
caption?: string;
}
-const AssetImage: React.FC<AssetImageProps> = ({
- src,
- maxWidth = "w-full",
- minWidth,
- height = "h-auto",
- padding = "p-0",
- caption,
-}) => {
- // Tailwind 클래스로 변환하는 함수들
- const getSizeClass = (value: number | string): string => {
- if (typeof value === "number") {
- return `h-[${value}px] max-h-full`;
- }
- return value === "h-auto" ? "h-full" : `${value} max-h-full`;
- };
+// 숫자는 px 단위로, 문자열은 그대로 반환하는 헬퍼 함수
+const parseValue = (value: number | string): string =>
+ typeof value === "number" ? `${value}px` : value;
- const getWidthClass = (value: number | string): string => {
- if (typeof value === "number") {
- return `max-w-[${value}px] w-full`;
- }
- return value === "w-full" ? "w-full max-w-full" : `max-w-[${value}px]`;
- };
+const Container = styled.div<{ padding: number | string }>`
+ position: relative;
+ padding: ${({ padding }) => parseValue(padding)};
+`;
- const getMinWidthClass = (value: number | string): string => {
- if (typeof value === "number") {
- return `min-w-[${value}px]`;
- }
- return value === "w-full" ? "min-w-full" : value;
- };
+interface StyledImageProps {
+ $maxWidth: number | string;
+ $minWidth?: number | string;
+ height: number | string;
+}
- const getPaddingClass = (value: number | string): string => {
- if (typeof value === "number") {
- return `p-[${value}px]`;
- }
- return value;
- };
+const StyledImage = styled.img<StyledImageProps>`
+ object-fit: contain;
+ height: ${({ height }) => parseValue(height)};
+ max-height: 100%;
+ width: 100%;
+ max-width: ${({ $maxWidth }) => parseValue($maxWidth)};
+ ${({ $minWidth }) => $minWidth && `min-width: ${parseValue($minWidth)};`}
+`;
- // 인라인 스타일로 minWidth를 강제 적용
- const minWidthStyle = minWidth
- ? { minWidth: typeof minWidth === "number" ? `${minWidth}px` : minWidth }
- : {};
+const Caption = styled.div`
+ ${FontStyle.body1Medium}
+ position: absolute;
+ bottom: -2rem;
+ color: ${Colors.primary};
+ padding-top: 2.5rem;
+`;
+const AssetImage: React.FC<AssetImageProps> = ({
+ src,
+ maxWidth = "100%",
+ minWidth,
+ height = "auto",
+ padding = "0",
+ caption,
+}) => {
return (
- <div className={`relative ${getPaddingClass(padding)}`}>
- <img
+ <Container padding={padding}>
+ <StyledImage
src={src}
- style={minWidthStyle}
- className={`object-contain ${getSizeClass(height)} ${getWidthClass(
- maxWidth
- )} ${minWidth ? getMinWidthClass(minWidth) : ""}`}
+ $maxWidth={maxWidth}
+ $minWidth={minWidth}
+ height={height}
alt="Asset"
/>
- {caption && (
- <div className="absolute bottom-2 text-primary captionRegular pt-10">
- {caption}
- </div>
- )}
- </div>
+ {caption && <Caption>{caption}</Caption>}
+ </Container>
);
};
diff --git a/src/components/atoms/main_title/CircleContainer.tsx b/src/components/atoms/main_title/CircleContainer.tsx
deleted file mode 100644
index 3f3168c..0000000
--- a/src/components/atoms/main_title/CircleContainer.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-// src/components/CircleContainer.tsx
-import React from "react";
-import Color from "../../ui/Color";
-
-interface CircleContainerProps {
- color: string;
- contentColor?: string;
- size: number;
- isHovered?: boolean;
- animate?: boolean;
- children: React.ReactNode;
-}
-
-const CircleContainer: React.FC<CircleContainerProps> = ({
- color,
- contentColor = Color.primary,
- size,
- children,
- isHovered = true,
- animate = false,
-}) => {
- return (
- <div
- style={{ width: size, height: size, backgroundColor: color }}
- className="flex justify-center items-center rounded-full"
- >
- <div
- style={{
- color: contentColor,
- opacity: isHovered ? 1 : 0,
- fontSize: "clamp(0rem, calc((100vw - 10.4rem) * 0.043), 4rem)",
- wordSpacing: "-0.1rem",
- letterSpacing: "-0.07em",
- }}
- className={`flex rounded-full justify-center items-center transition-opacity duration-500 display1ExtraBold ${
- animate ? (isHovered ? "animate-fadeIn" : "animate-fadeOut") : ""
- }`}
- >
- {children}
- </div>
- </div>
- );
-};
-
-export default CircleContainer;
diff --git a/src/components/atoms/main_title/CurvedCornerCell.tsx b/src/components/atoms/main_title/CurvedCornerCell.tsx
deleted file mode 100644
index 97a64d3..0000000
--- a/src/components/atoms/main_title/CurvedCornerCell.tsx
+++ /dev/null
@@ -1,103 +0,0 @@
-// src/components/CurvedCornerCell.tsx
-import React from "react";
-import CurvedCornerType from "../../../enum/CurevedCornerType";
-import Color from "../../ui/Color";
-
-interface CurvedCornerCellProps {
- backgroundColor: string;
- cellSize: number;
- curveSize: number;
- color: string;
- type: string;
- isHovered: boolean;
- delay?: boolean;
- sequence?: number;
-}
-
-const CurvedCornerCell: React.FC<CurvedCornerCellProps> = ({
- backgroundColor,
- cellSize,
- curveSize,
- color,
- type,
- isHovered,
- delay = false,
- sequence,
-}) => {
- // type에 따른 회전 값 설정
- const getRotation = (type: string) => {
- switch (type) {
- case CurvedCornerType.TOP_RIGHT:
- return 0;
- case CurvedCornerType.BOTTOM_RIGHT:
- return 90;
- case CurvedCornerType.BOTTOM_LEFT:
- return 180;
- case CurvedCornerType.TOP_LEFT:
- return 270;
- default:
- return 0;
- }
- };
-
- const rotation = getRotation(type);
-
- // 배경 사각형의 크기 및 전환 딜레이 계산
- const rectWidth = isHovered ? "97%" : "0%";
- const rectHeight = isHovered ? "97%" : "0%";
- let transitionDelay = "0ms";
- if (isHovered) {
- transitionDelay = sequence === 1 ? "0ms" : delay ? "500ms" : "0ms";
- } else {
- transitionDelay = sequence === 1 ? "500ms" : "0ms";
- }
-
- return (
- <div
- style={{
- width: cellSize,
- height: cellSize,
- transform: `rotate(${rotation}deg)`,
- backgroundColor: Color.transparent, // 컨테이너 배경 (투명)
- }}
- className="relative flex items-center justify-center overflow-hidden pointer-events-none"
- >
- {/* 확장되는 사각형 (가장 아래 레이어) */}
- <div
- style={{
- backgroundColor: backgroundColor,
- width: rectWidth,
- height: rectHeight,
- transformOrigin: "bottom left",
- transitionProperty: "transform, width, height",
- transitionDuration: "0.5s",
- transitionTimingFunction: "ease",
- transitionDelay: transitionDelay,
- }}
- className="absolute bottom-[1px] left-[1px] rounded-[10%] z-[-1]"
- />
- {/* 왼쪽 상단 곡선 */}
- <div
- style={{
- width: curveSize,
- height: curveSize,
- backgroundColor: color,
- transform: "rotate(180deg)",
- }}
- className="absolute top-0 left-0 rounded-tl-full z-10"
- />
- {/* 오른쪽 하단 곡선 */}
- <div
- style={{
- width: curveSize,
- height: curveSize,
- backgroundColor: color,
- transform: "rotate(180deg)",
- }}
- className="absolute bottom-0 right-0 rounded-br-full z-10"
- />
- </div>
- );
-};
-
-export default CurvedCornerCell;
diff --git a/src/components/atoms/main_title/MenuButton.tsx b/src/components/atoms/main_title/MenuButton.tsx
deleted file mode 100644
index 5d0066e..0000000
--- a/src/components/atoms/main_title/MenuButton.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-// src/components/MenuButton.tsx
-import Color from "@/components/ui/Color";
-import React from "react";
-
-interface MenuButtonProps {
- color?: string; // 예: Color.primary
- buttonText: string;
- width: number;
- height: number;
- onClick?: React.MouseEventHandler<HTMLButtonElement>;
- onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
- onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
-}
-
-const MenuButton: React.FC<MenuButtonProps> = ({
- color = Color.primary,
- buttonText,
- width,
- height,
- onClick,
- onMouseEnter,
- onMouseLeave,
-}) => {
- return (
- <button
- style={{
- width: `${width}px`,
- height: `${height}px`,
- borderRadius: `${height}px`,
- backgroundColor: color,
- }}
- onClick={onClick}
- onMouseEnter={onMouseEnter}
- onMouseLeave={onMouseLeave}
- className="flex justify-center items-center cursor-pointer border-none"
- >
- <div
- className="text-white"
- style={{
- fontSize: "clamp(0rem, calc((100vw - 10.4rem) * 0.036), 3.6rem)",
- fontWeight: 700,
- fontFamily: '"NanumSquareNeoHeavy"',
- wordSpacing: "-0.1rem",
- letterSpacing: "-0.07em",
- }}
- >
- {buttonText}
- </div>
- </button>
- );
-};
-
-export default MenuButton;
diff --git a/src/components/atoms/main_title/MobileCircleContainer.tsx b/src/components/atoms/main_title/MobileCircleContainer.tsx
deleted file mode 100644
index fbbcdb6..0000000
--- a/src/components/atoms/main_title/MobileCircleContainer.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-// src/components/MobileCircleContainer.tsx
-import React from "react";
-import Color from "../../ui/Color";
-
-interface MobileCircleContainerProps {
- color: string;
- contentColor?: string;
- size: number;
- isHovered?: boolean;
- animate?: boolean;
- children: React.ReactNode;
-}
-
-const MobileCircleContainer: React.FC<MobileCircleContainerProps> = ({
- color,
- contentColor = Color.primary,
- size,
- children,
- isHovered = true,
- animate = false,
-}) => {
- return (
- <div
- style={{ width: size, height: size, backgroundColor: color }}
- className="flex justify-center items-center rounded-full"
- >
- <div
- style={{
- color: contentColor,
- opacity: isHovered ? 1 : 0,
- fontSize: "clamp(0rem, calc((100vw - 10.4rem) * 0.086), 4rem)",
- wordSpacing: "-0.1rem",
- letterSpacing: "-0.07em",
- }}
- className={`flex rounded-full justify-center items-center transition-opacity duration-500 display1ExtraBold ${
- animate ? (isHovered ? "animate-fadeIn" : "animate-fadeOut") : ""
- }`}
- >
- {children}
- </div>
- </div>
- );
-};
-
-export default MobileCircleContainer;
diff --git a/src/components/atoms/main_title/MobileMenuButton.tsx b/src/components/atoms/main_title/MobileMenuButton.tsx
deleted file mode 100644
index 9402cd0..0000000
--- a/src/components/atoms/main_title/MobileMenuButton.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-// src/components/MobileMenuButton.tsx
-import Color from "@/components/ui/Color";
-import React from "react";
-
-interface MobileMenuButtonProps {
- color?: string; // 예: Color.primary
- buttonText: string;
- width: number;
- height: number;
- onClick?: React.MouseEventHandler<HTMLButtonElement>;
- onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
- onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
-}
-
-const MobileMenuButton: React.FC<MobileMenuButtonProps> = ({
- color = Color.primary,
- buttonText,
- width,
- height,
- onClick,
- onMouseEnter,
- onMouseLeave,
-}) => {
- return (
- <button
- style={{
- width: `${width}px`,
- height: `${height}px`,
- borderRadius: `${height}px`,
- backgroundColor: color,
- }}
- onClick={onClick}
- onMouseEnter={onMouseEnter}
- onMouseLeave={onMouseLeave}
- className="flex justify-center items-center cursor-pointer border-none"
- >
- <div
- className="text-white"
- style={{
- fontSize: "clamp(0rem, calc((100vw - 10.4rem) * 0.072), 3.6rem)",
- fontWeight: 700,
- fontFamily: '"NanumSquareNeoHeavy"',
- wordSpacing: "-0.1rem",
- letterSpacing: "-0.07em",
- }}
- >
- {buttonText}
- </div>
- </button>
- );
-};
-
-export default MobileMenuButton;
diff --git a/src/components/atoms/main_title/MobileRoundedRectangleContainer copy.tsx b/src/components/atoms/main_title/MobileRoundedRectangleContainer copy.tsx
deleted file mode 100644
index 9cee805..0000000
--- a/src/components/atoms/main_title/MobileRoundedRectangleContainer copy.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-// src/components/MobileRoundedRectangleContainer.tsx
-import React from "react";
-import Color from "../../ui/Color";
-// FontStyle를 Tailwind 커스텀 클래스(`display1ExtraBold`)로 대체한다고 가정합니다.
-
-interface MobileRoundedRectangleContainerProps {
- color: string;
- width: number;
- height: number;
- text: string;
-}
-
-const MobileRoundedRectangleContainer: React.FC<
- MobileRoundedRectangleContainerProps
-> = ({ color, width, height, text }) => {
- return (
- <div
- style={{
- width: `${width}px`,
- height: `${height}px`,
- borderRadius: `${height}px`,
- backgroundColor: color,
- }}
- className="flex justify-center items-center"
- >
- <div
- style={{
- color: Color.primary,
- fontSize: "clamp(0rem, calc((100vw - 10.4rem) * 0.086), 4.3rem)",
- wordSpacing: "-0.1rem",
- letterSpacing: "-0.07em",
- }}
- className="display1ExtraBold" // Tailwind 커스텀 폰트 스타일 클래스
- >
- {text}
- </div>
- </div>
- );
-};
-
-export default MobileRoundedRectangleContainer;
diff --git a/src/components/atoms/main_title/MobileRoundedRectangleContainer.tsx b/src/components/atoms/main_title/MobileRoundedRectangleContainer.tsx
deleted file mode 100644
index 9cee805..0000000
--- a/src/components/atoms/main_title/MobileRoundedRectangleContainer.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-// src/components/MobileRoundedRectangleContainer.tsx
-import React from "react";
-import Color from "../../ui/Color";
-// FontStyle를 Tailwind 커스텀 클래스(`display1ExtraBold`)로 대체한다고 가정합니다.
-
-interface MobileRoundedRectangleContainerProps {
- color: string;
- width: number;
- height: number;
- text: string;
-}
-
-const MobileRoundedRectangleContainer: React.FC<
- MobileRoundedRectangleContainerProps
-> = ({ color, width, height, text }) => {
- return (
- <div
- style={{
- width: `${width}px`,
- height: `${height}px`,
- borderRadius: `${height}px`,
- backgroundColor: color,
- }}
- className="flex justify-center items-center"
- >
- <div
- style={{
- color: Color.primary,
- fontSize: "clamp(0rem, calc((100vw - 10.4rem) * 0.086), 4.3rem)",
- wordSpacing: "-0.1rem",
- letterSpacing: "-0.07em",
- }}
- className="display1ExtraBold" // Tailwind 커스텀 폰트 스타일 클래스
- >
- {text}
- </div>
- </div>
- );
-};
-
-export default MobileRoundedRectangleContainer;
diff --git a/src/components/atoms/main_title/RoundedRectangleContainer.tsx b/src/components/atoms/main_title/RoundedRectangleContainer.tsx
deleted file mode 100644
index 1ce2377..0000000
--- a/src/components/atoms/main_title/RoundedRectangleContainer.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-// src/components/RoundedRectangleContainer.tsx
-import React from "react";
-import Color from "../../ui/Color";
-// FontStyle를 Tailwind 커스텀 클래스(`display1ExtraBold`)로 대체한다고 가정합니다.
-
-interface RoundedRectangleContainerProps {
- color: string;
- width: number;
- height: number;
- text: string;
-}
-
-const RoundedRectangleContainer: React.FC<RoundedRectangleContainerProps> = ({
- color,
- width,
- height,
- text,
-}) => {
- return (
- <div
- style={{
- width: `${width}px`,
- height: `${height}px`,
- borderRadius: `${height}px`,
- backgroundColor: color,
- }}
- className="flex justify-center items-center"
- >
- <div
- style={{
- color: Color.primary,
- fontSize: "clamp(0rem, calc((100vw - 10.4rem) * 0.043), 4.3rem)",
- wordSpacing: "-0.1rem",
- letterSpacing: "-0.07em",
- }}
- className="display1ExtraBold" // Tailwind 커스텀 폰트 스타일 클래스
- >
- {text}
- </div>
- </div>
- );
-};
-
-export default RoundedRectangleContainer;
diff --git a/src/components/atoms/section_grid_view/SectionRoundedRectangleContainer.tsx b/src/components/atoms/section_grid_view/SectionRoundedRectangleContainer.tsx
index 779a090..8e04db6 100644
--- a/src/components/atoms/section_grid_view/SectionRoundedRectangleContainer.tsx
+++ b/src/components/atoms/section_grid_view/SectionRoundedRectangleContainer.tsx
@@ -1,4 +1,5 @@
import React from "react";
+import styled from "styled-components";
import Color from "../../ui/Color";
import NavigateArrow from "@/assets/icon/navigate_arrow.svg?react";
@@ -12,6 +13,44 @@ interface SectionRoundedRectangleContainerProps {
onClick?: () => void;
}
+const Container = styled.div<{
+ width: number;
+ height: number;
+ bgColor: string;
+ isButton: boolean;
+}>`
+ display: flex;
+ align-items: center;
+ width: ${({ width }) => width}px;
+ height: ${({ height }) => height}px;
+ border-radius: ${({ height }) => height}px;
+ background-color: ${({ bgColor }) => bgColor};
+ ${({ isButton }) => isButton && "cursor: pointer;"}
+`;
+
+const TextContainer = styled.div`
+ flex: 1;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+`;
+
+const Text = styled.span<{ textColor: string }>`