Skip to content

Commit af36e26

Browse files
committed
style: Improved responsiveness
1 parent 5aa67c7 commit af36e26

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/components/WordCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type WordCardProps = {
1010
// Tailwind class names need to be explicitly coded to be included in the CSS code
1111
const 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>

src/app/components/WordList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type WordListProps = { wortschatz: Wortschatz }
77

88
export 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}

0 commit comments

Comments
 (0)