@@ -41,67 +41,63 @@ export default function Tip() {
4141 }
4242
4343 return (
44- < div className = "min-h-screen bg-gray-50 py-6 px-4 sm:px-6 lg:px-8 transition-all duration-500 ease-in-out" >
45- < div
46- className = { `max-w-2xl mx-auto transform transition-all duration-700 ${
47- isVisible ? "translate-y-0 opacity-100" : "translate-y-10 opacity-0"
48- } `}
49- >
50- < div className = "bg-white rounded-lg shadow-md p-4 space-y-8 hover:shadow-xl transition-shadow duration-300" >
51- { /*질문부분 */ }
52- < div className = "space-y-4" >
53- < h2 className = "text-xl font-semibold text-gray-800 text-center animate-bounce" >
54- 🌟오늘의 팁🌟
55- </ h2 >
56- < div
57- className = { `p-4 bg-blue-50 rounded-lg transform transition-all duration-500 ${
58- isVisible
59- ? "translate-x-0 opacity-100"
60- : "translate-x-[-50px] opacity-0"
61- } `}
62- >
63- < p className = "text-gray-700 text-lg text-center" >
64- { currentQuestion ?. tip }
65- </ p >
66- </ div >
67- </ div >
68-
69- { /* 답변 */ }
70- < div className = "space-y-4" >
71- < h3 className = "text-lg font-medium text-gray-700 text-center" >
72- 해결방법
73- </ h3 >
74- < div
75- className = { `p-4 bg-green-50 rounded-lg transform transition-all duration-500 delay-300 ${
76- isVisible
77- ? "translate-x-0 opacity-100"
78- : "translate-x-[50px] opacity-0"
79- } `}
80- >
81- < p className = "text-lg text-gray-600 text-center" >
82- { currentQuestion ?. answer }
83- </ p >
84- </ div >
44+ < div
45+ className = { `max-w-2xl mx-auto transform transition-all duration-700 ${
46+ isVisible ? "translate-y-0 opacity-100" : "translate-y-10 opacity-0"
47+ } `}
48+ >
49+ < div className = "bg-white rounded-lg shadow-md p-4 space-y-8 hover:shadow-xl transition-shadow duration-300" >
50+ { /*질문부분 */ }
51+ < div className = "space-y-4" >
52+ < h2 className = "text-xl font-semibold text-gray-800 text-center animate-bounce" >
53+ 🌟오늘의 팁🌟
54+ </ h2 >
55+ < div
56+ className = { `p-4 bg-blue-50 rounded-lg transform transition-all duration-500 ${
57+ isVisible
58+ ? "translate-x-0 opacity-100"
59+ : "translate-x-[-50px] opacity-0"
60+ } `}
61+ >
62+ < p className = "text-gray-700 text-lg text-center" >
63+ { currentQuestion ?. tip }
64+ </ p >
8565 </ div >
66+ </ div >
8667
68+ { /* 답변 */ }
69+ < div className = "space-y-4" >
70+ < h3 className = "text-lg font-medium text-gray-700 text-center" >
71+ 해결방법
72+ </ h3 >
8773 < div
88- className = { `flex flex-col items-center p-5 mx-auto mt-0 transform transition-all duration-500 delay-500 ${
74+ className = { `p-4 bg-green-50 rounded-lg transform transition-all duration-500 delay-300 ${
8975 isVisible
90- ? "translate-y -0 opacity-100"
91- : "translate-y-10 opacity-0"
76+ ? "translate-x -0 opacity-100"
77+ : "translate-x-[50px] opacity-0"
9278 } `}
9379 >
94- < button
95- onClick = { ( ) => {
96- navigate ( "/parents" ) ;
97- } }
98- className = "bg-gray-200 text-gray-700 rounded-2xl w-52 h-12 text-xl
80+ < p className = "text-lg text-gray-600 text-center" >
81+ { currentQuestion ?. answer }
82+ </ p >
83+ </ div >
84+ </ div >
85+
86+ < div
87+ className = { `flex flex-col items-center p-5 mx-auto mt-0 transform transition-all duration-500 delay-500 ${
88+ isVisible ? "translate-y-0 opacity-100" : "translate-y-10 opacity-0"
89+ } `}
90+ >
91+ < button
92+ onClick = { ( ) => {
93+ navigate ( "/parents" ) ;
94+ } }
95+ className = "bg-gray-200 text-gray-700 rounded-2xl w-52 h-12 text-xl
9996 shadow-md hover:shadow-lg transition-all duration-300
10097 hover:bg-gray-300 hover:-translate-y-1 active:translate-y-0"
101- >
102- 홈으로 돌아가기
103- </ button >
104- </ div >
98+ >
99+ 홈으로 돌아가기
100+ </ button >
105101 </ div >
106102 </ div >
107103 </ div >
0 commit comments