File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ type WordCardProps = {
1010// Tailwind class names need to be explicitly coded to be included in the CSS code
1111const articleToClassName : Record < GermanNounArticle , string > = {
1212 der : 'border-blue-200 bg-blue-100 hover:bg-blue-300 text-blue-900' ,
13- die : 'border-red -200 bg-red -100 hover:bg-red -300 text-red -900' ,
13+ die : 'border-pink -200 bg-pink -100 hover:bg-pink -300 text-pink -900' ,
1414 das : 'border-green-200 bg-green-100 hover:bg-green-300 text-green-900' ,
1515}
1616
@@ -19,7 +19,7 @@ export default function WordCard({
1919} : WordCardProps ) {
2020 return (
2121 < article
22- className = { `animate-wiggle flex rounded justify-center items-center h-30 text-2xl text-blue-900 capitalize border transition-all ${ articleToClassName [ article ] } ` }
22+ className = { `animate-wiggle flex justify-center items-center aspect-video text-xl sm: text-2xl text-blue-900 capitalize border transition-all ${ articleToClassName [ article ] } ` }
2323 >
2424 { article } { word }
2525 </ article >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ type WordListProps = { wortschatz: Wortschatz }
77
88export default function WordList ( { wortschatz } : WordListProps ) {
99 return (
10- < div className = "grid gap-4 grid-cols-1 sm:grid-cols-2 md :grid-cols-3 " >
10+ < div className = "grid gap-4 grid-cols-2 sm:grid-cols-3 lg :grid-cols-4 " >
1111 { wortschatz . map ( ( wortschatzEntry ) => (
1212 < WordCard
1313 key = { wortschatzEntry . word }
You can’t perform that action at this time.
0 commit comments