summaryrefslogtreecommitdiff
path: root/src/zoom/ServerWord.tsx
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-05-21 14:00:28 +0700
committerpolwex <polwex@sortug.com>2025-05-21 14:00:28 +0700
commite839a5f61f0faa21ca8b4bd5767f7575d5e576ee (patch)
tree53e5bcc3977b6ebef687521a7ac387a89aeb21c8 /src/zoom/ServerWord.tsx
parent4f2bd597beaa778476b84c10b571db1b13524301 (diff)
the card flip animation is legit
Diffstat (limited to 'src/zoom/ServerWord.tsx')
-rw-r--r--src/zoom/ServerWord.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/zoom/ServerWord.tsx b/src/zoom/ServerWord.tsx
index d98e54b..75b631d 100644
--- a/src/zoom/ServerWord.tsx
+++ b/src/zoom/ServerWord.tsx
@@ -39,9 +39,9 @@ export default async function Wordd({
lang: string;
}) {
const data = db.fetchWordBySpelling(word, "en");
- console.log({ data, word });
if (!data) return <p>oh...</p>;
+ console.log(data.senses[0]);
return (
<Card className="overflow-y-scroll max-h-[80vh]">
<CardHeader>
@@ -125,10 +125,10 @@ const ExampleDisplay = ({ examples }: { examples: Example[] }) => {
<li key={idx} className="text-xs text-gray-600">
<span className="italic">"{ex.text}"</span>
{ex.ref && (
- <span className="text-gray-400 text-xxs"> ({ex.ref})</span>
+ <span className="text-gray-400 text-xs"> ({ex.ref})</span>
)}
{ex.type !== "quote" && (
- <span className="ml-1 text-xxs bg-sky-100 text-sky-700 px-1 rounded-sm">
+ <span className="ml-1 text-xs bg-sky-100 text-sky-700 px-1 rounded-sm">
{ex.type}
</span>
)}
@@ -162,7 +162,7 @@ const RelatedTermsDisplay = ({
{term.word}
</a>
{/*term.source && (
- <span className="text-xxs text-gray-400"> ({term.source})</span>
+ <span className="text-xs text-gray-400"> ({term.source})</span>
)*/}
{idx < terms.length - 1 && ", "}
</React.Fragment>
@@ -207,7 +207,7 @@ const SubSenseDisplay = ({
{subSense.categories.map((cat, idx) => (
<span
key={idx}
- className="text-xxs bg-gray-100 text-gray-700 px-1.5 py-0.5 rounded-full"
+ className="text-xs bg-gray-100 text-gray-700 px-1.5 py-0.5 rounded-full"
>
{cat}
</span>
@@ -229,7 +229,7 @@ const SubSenseDisplay = ({
{subSense.tags.map((tag, idx) => (
<span
key={idx}
- className="text-xxs bg-purple-100 text-purple-700 px-1.5 py-0.5 rounded-full"
+ className="text-xs bg-purple-100 text-purple-700 px-1.5 py-0.5 rounded-full"
>
{tag}
</span>