File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,14 @@ export const IdeaPage = () => {
6969 return loading ? (
7070 < Spinny />
7171 ) : error ? (
72- < > { error } </ >
72+ < div className = 'section-card flex flex-col items-center justify-center min-h-[60vh]' >
73+ < p className = 'text-error' > { error } </ p >
74+ </ div >
7375 ) : (
74- < section >
75- < h1 className = 'header ' > { idea ?. name } </ h1 >
76- < p > { idea ?. description } </ p >
77- < div className = 'stats stats-vertical lg:stats-horizontal shadow' >
76+ < section className = 'section-card' >
77+ < h1 className = 'section-heading ' > { idea ?. name } </ h1 >
78+ < p className = 'text-lg text-gray-700 mb-4' > { idea ?. description } </ p >
79+ < div className = 'stats stats-vertical lg:stats-horizontal shadow my-4 ' >
7880 < div className = 'stat' >
7981 < div className = 'stat-title' > Upvotes</ div >
8082 < div className = 'stat-value' > { idea ?. upvotes } </ div >
@@ -86,7 +88,7 @@ export const IdeaPage = () => {
8688 </ div >
8789 </ div >
8890 { isLogged && (
89- < >
91+ < div className = 'flex gap-4 mt-4 justify-center' >
9092 < UpvoteButton { ...{ ideaId, onSuccess : onUpvoteSuccess , onError } } />
9193 < DownvoteButton
9294 { ...{
@@ -95,7 +97,7 @@ export const IdeaPage = () => {
9597 onError,
9698 } }
9799 />
98- </ >
100+ </ div >
99101 ) }
100102 </ section >
101103 ) ;
You can’t perform that action at this time.
0 commit comments