diff --git a/frontend/src/components/AnswerCard.tsx b/frontend/src/components/AnswerCard.tsx index 10b7fcce..a5736d3e 100644 --- a/frontend/src/components/AnswerCard.tsx +++ b/frontend/src/components/AnswerCard.tsx @@ -24,7 +24,7 @@ export const AnswerCard: React.FC = ({ author, }) => { return ( - +

{title} @@ -49,7 +49,7 @@ export const AnswerCard: React.FC = ({ {author.name} diff --git a/frontend/src/components/AnswerItem.tsx b/frontend/src/components/AnswerItem.tsx index 207badc0..9ffe68fc 100644 --- a/frontend/src/components/AnswerItem.tsx +++ b/frontend/src/components/AnswerItem.tsx @@ -21,7 +21,7 @@ export const AnswerItem: React.FC = ({ const { token } = useAuthStore(); return ( - +
@@ -64,7 +64,7 @@ export const AnswerItem: React.FC = ({ answer.author?.profilePicture || "https://placehold.co/100x100" } - alt={answer.author?.name} + alt={"Profile picture"} className="h-8 w-8 rounded-full object-cover" /> {answer.author?.name} diff --git a/frontend/src/components/CodeSnippet.tsx b/frontend/src/components/CodeSnippet.tsx index d5a734de..b59b6162 100644 --- a/frontend/src/components/CodeSnippet.tsx +++ b/frontend/src/components/CodeSnippet.tsx @@ -5,7 +5,7 @@ import { useExecuteCode } from "@/services/api/programmingForumComponents"; import { CodeExecution } from "@/services/api/programmingForumSchemas"; import React from "react"; import { Light as SyntaxHighlighter } from "react-syntax-highlighter"; -import { docco } from "react-syntax-highlighter/dist/esm/styles/hljs"; +import { a11yLight } from "react-syntax-highlighter/dist/esm/styles/hljs"; interface CodeSnippetProps { code: string; @@ -37,15 +37,15 @@ export const CodeSnippet: React.FC = ({ code, language }) => { return (
-

+

{languageUserFriendlyName[ language.replace("-exec", "") as keyof typeof languageUserFriendlyName ] ?? "Unknown"}{" "} Code Snippet -

+

{ return (
diff --git a/frontend/src/components/DifficultyBar.tsx b/frontend/src/components/DifficultyBar.tsx index bafd92b1..80f6125b 100644 --- a/frontend/src/components/DifficultyBar.tsx +++ b/frontend/src/components/DifficultyBar.tsx @@ -107,7 +107,7 @@ export const DifficultyBar: React.FC = ({ {/* Difficulty Bar */}

- The community finds this question {getHighestVotedDifficulty()} difficulty. + The community finds this question: {getHighestVotedDifficulty()} difficulty.

Easy: {localCounts.easy} votes,{" "} diff --git a/frontend/src/components/DifficultyFilter.tsx b/frontend/src/components/DifficultyFilter.tsx index aabdba6c..d3e01181 100644 --- a/frontend/src/components/DifficultyFilter.tsx +++ b/frontend/src/components/DifficultyFilter.tsx @@ -21,7 +21,7 @@ export function DifficultyFilter({ value, onChange }: DifficultyFilterProps) { onChange(val === "all" ? undefined : (val as DifficultyLevel)) } > - + diff --git a/frontend/src/components/ExerciseCard.tsx b/frontend/src/components/ExerciseCard.tsx index de717f0e..221a8db6 100644 --- a/frontend/src/components/ExerciseCard.tsx +++ b/frontend/src/components/ExerciseCard.tsx @@ -20,7 +20,7 @@ export const ExerciseCard: React.FC = ({ link, }) => { return ( - +

{title} diff --git a/frontend/src/components/HighlightedQuestionCard.tsx b/frontend/src/components/HighlightedQuestionCard.tsx index 8926b146..3d9214e8 100644 --- a/frontend/src/components/HighlightedQuestionCard.tsx +++ b/frontend/src/components/HighlightedQuestionCard.tsx @@ -54,7 +54,7 @@ export const HighlightedQuestionCard: React.FC> = ({ )} Go to question diff --git a/frontend/src/components/QuestionCard.tsx b/frontend/src/components/QuestionCard.tsx index b88a32bc..6e674181 100644 --- a/frontend/src/components/QuestionCard.tsx +++ b/frontend/src/components/QuestionCard.tsx @@ -27,7 +27,7 @@ export const QuestionCard = React.forwardRef( ({ id, title, content, votes, answerCount, author, difficulty }, ref) => { return (
@@ -65,7 +65,7 @@ export const QuestionCard = React.forwardRef( )} Go to question diff --git a/frontend/src/components/Tag.tsx b/frontend/src/components/Tag.tsx index 4af752b7..d12ea132 100644 --- a/frontend/src/components/Tag.tsx +++ b/frontend/src/components/Tag.tsx @@ -45,7 +45,7 @@ export const Tag = ({ )} See all questions → diff --git a/frontend/src/components/TagCard.tsx b/frontend/src/components/TagCard.tsx index a186610f..da470d9c 100644 --- a/frontend/src/components/TagCard.tsx +++ b/frontend/src/components/TagCard.tsx @@ -12,13 +12,13 @@ export const TagCard = React.forwardRef( ({ tag }, ref) => { return (
-

+

{tag.name} -

+

{tag.description} diff --git a/frontend/src/routes/create-question.tsx b/frontend/src/routes/create-question.tsx index 63acc598..9b509f46 100644 --- a/frontend/src/routes/create-question.tsx +++ b/frontend/src/routes/create-question.tsx @@ -282,15 +282,19 @@ export default function QuestionCreationPage() { name="difficulty" render={({ field }) => ( + diff --git a/frontend/src/routes/feed.tsx b/frontend/src/routes/feed.tsx index f95e1031..9020665f 100644 --- a/frontend/src/routes/feed.tsx +++ b/frontend/src/routes/feed.tsx @@ -79,7 +79,7 @@ export const Feed = () => {

diff --git a/frontend/src/routes/profile.tsx b/frontend/src/routes/profile.tsx index 27858f73..13ef94f6 100644 --- a/frontend/src/routes/profile.tsx +++ b/frontend/src/routes/profile.tsx @@ -204,7 +204,7 @@ export default function Profile() { size="icon" className="rounded-full bg-red-500 text-white" > - + diff --git a/frontend/src/routes/question.tsx b/frontend/src/routes/question.tsx index d7f28b5b..5d2f7c26 100644 --- a/frontend/src/routes/question.tsx +++ b/frontend/src/routes/question.tsx @@ -151,7 +151,7 @@ export default function QuestionPage() { src={ question.author.profilePicture || "https://placehold.co/640x640" } - alt={question.author.name + " profile picture"} + alt={"Profile picture"} className="h-8 w-8 rounded-full object-cover" /> {question.author.name} diff --git a/frontend/src/routes/tag.tsx b/frontend/src/routes/tag.tsx index a5d4b96e..97ef006d 100644 --- a/frontend/src/routes/tag.tsx +++ b/frontend/src/routes/tag.tsx @@ -102,7 +102,7 @@ export default function TagPage() { {tag.logoImage && ( {`The @@ -161,6 +161,7 @@ export default function TagPage() { to={tag.stackExchangeTag} className="flex items-center gap-2 text-sm font-semibold text-gray-500" target="_blank" + aria-label={`Visit Stack Exchange for ${tag.name}`} > Stack Exchange @@ -177,15 +178,16 @@ export default function TagPage() {
-

Questions

+

Questions

{!!token && ( )} diff --git a/mobile/app/question/[questionId].tsx b/mobile/app/question/[questionId].tsx index 9d840ef9..e60174ff 100644 --- a/mobile/app/question/[questionId].tsx +++ b/mobile/app/question/[questionId].tsx @@ -316,7 +316,7 @@ export default function QuestionPage() { - + {question.content} diff --git a/mobile/components/AnswerCard.tsx b/mobile/components/AnswerCard.tsx index 760e3300..fb9864c7 100644 --- a/mobile/components/AnswerCard.tsx +++ b/mobile/components/AnswerCard.tsx @@ -26,7 +26,7 @@ export const AnswerCard: React.FC = ({ author, }) => { return ( - + {title} diff --git a/mobile/components/AnswerItem.tsx b/mobile/components/AnswerItem.tsx index 6037089c..e0d173f8 100644 --- a/mobile/components/AnswerItem.tsx +++ b/mobile/components/AnswerItem.tsx @@ -23,7 +23,7 @@ export const AnswerItem: React.FC = ({ const { token } = useAuthStore(); return ( - + diff --git a/mobile/components/QuestionCard.tsx b/mobile/components/QuestionCard.tsx index d597697f..0c26f135 100644 --- a/mobile/components/QuestionCard.tsx +++ b/mobile/components/QuestionCard.tsx @@ -42,7 +42,7 @@ export const QuestionCard: React.FC = ({ return ( @@ -96,7 +96,7 @@ export const QuestionCard: React.FC = ({ )} diff --git a/mobile/components/ui/card/styles.tsx b/mobile/components/ui/card/styles.tsx index 33acd888..c59d9044 100644 --- a/mobile/components/ui/card/styles.tsx +++ b/mobile/components/ui/card/styles.tsx @@ -1,6 +1,6 @@ import { isWeb } from "@gluestack-ui/nativewind-utils/IsWeb"; import { tva } from "@gluestack-ui/nativewind-utils/tva"; -const baseStyle = isWeb ? "flex flex-col relative z-0" : "bg-neutral-150 "; +const baseStyle = isWeb ? "flex flex-col relative z-0" : "#e5e5e5 "; export const cardStyle = tva({ base: baseStyle, @@ -11,7 +11,7 @@ export const cardStyle = tva({ lg: "p-6 rounded-xl", }, variant: { - elevated: "bg-neutral-150 shadow-xl", + elevated: "#e5e5e5 shadow-xl", outline: "border border-outline-200 ", ghost: "rounded-none", filled: "bg-background-50",