diff --git a/src/app/(app)/(default_layout)/(roadmaps)/roadmaps/page.tsx b/src/app/(app)/(default_layout)/(roadmaps)/roadmaps/page.tsx index 2814efd5d..aa3a71100 100644 --- a/src/app/(app)/(default_layout)/(roadmaps)/roadmaps/page.tsx +++ b/src/app/(app)/(default_layout)/(roadmaps)/roadmaps/page.tsx @@ -41,12 +41,12 @@ export async function generateMetadata() { const heroDescription = (
-

+

Explore our curated lists of coding questions, ranging from Javascript, React, Node, Web Development. Perfect for your daily coding practice.

-

Can't find what you're looking for?

+

Can't find what you're looking for?

+ {user && ( diff --git a/src/components/app/navigation/sidebar-footer.tsx b/src/components/app/navigation/sidebar-footer.tsx index 3c0a0eb48..98222fdf6 100644 --- a/src/components/app/navigation/sidebar-footer.tsx +++ b/src/components/app/navigation/sidebar-footer.tsx @@ -14,7 +14,7 @@ export default function SidebarFooter({ user }: SidebarFooterProps) { const pathname = usePathname(); return ( -
+
{!user && ( - + {children} diff --git a/src/components/app/shared/feedback/feedback-modal.tsx b/src/components/app/shared/feedback/feedback-modal.tsx index 8ee9dc07b..ec2156b6c 100644 --- a/src/components/app/shared/feedback/feedback-modal.tsx +++ b/src/components/app/shared/feedback/feedback-modal.tsx @@ -48,7 +48,7 @@ export function FeedbackModal({ placeholder="Enter your feedback here..." value={feedback} onChange={(e) => setFeedback(e.target.value)} - className="mb-4 text-white border border-black-50" + className="mb-4 text-black dark:text-white border border-secondary dark:border-black-50" disabled={isPending} />
@@ -72,7 +72,7 @@ export function FeedbackModal({ repeat: Number.POSITIVE_INFINITY, ease: 'linear', }} - className="w-5 h-5 border-2 border-white border-t-transparent rounded-full" + className="size-5 border-2 border-black dark:border-white border-t-transparent rounded-full" /> ) : ( = ({
{/* */} -

Daily Missions

+

Daily Missions

@@ -83,7 +83,7 @@ function MissionItem({
-

{mission.title}

+

{mission.title}

{userMissionRecord?.status === 'COMPLETED' && ( )} diff --git a/src/components/app/shared/upgrade/upgrade-card.tsx b/src/components/app/shared/upgrade/upgrade-card.tsx index be1e2611c..d09f8f8ed 100644 --- a/src/components/app/shared/upgrade/upgrade-card.tsx +++ b/src/components/app/shared/upgrade/upgrade-card.tsx @@ -11,8 +11,8 @@ export default function UpgradeCard({ description?: string; }) { return ( -
-
+
+
{title || 'Looking for a more personalized experience?'}
diff --git a/src/components/app/study-paths/study-path-card.tsx b/src/components/app/study-paths/study-path-card.tsx index f82d43b02..c3975f7fe 100644 --- a/src/components/app/study-paths/study-path-card.tsx +++ b/src/components/app/study-paths/study-path-card.tsx @@ -20,19 +20,21 @@ export async function StudyPathCard({ studyPath }: { studyPath: StudyPath }) {
-

{studyPath.title}

-

{studyPath.description}

+

{studyPath.title}

+

+ {studyPath.description} +

-
+
{/** if 100% then show 100% else show the progress */} {Math.round( user?.studyPathEnrollments?.find((e) => e.studyPathUid === studyPath.uid)?.progress ?? @@ -40,7 +42,7 @@ export async function StudyPathCard({ studyPath }: { studyPath: StudyPath }) { ) === 100 ? (
-

completed

+

completed

) : ( `${Math.round( @@ -50,7 +52,7 @@ export async function StudyPathCard({ studyPath }: { studyPath: StudyPath }) { )}
e.studyPathUid === studyPath.uid)?.progress ?? 0 diff --git a/src/components/app/study-paths/study-path-goal-modal.tsx b/src/components/app/study-paths/study-path-goal-modal.tsx index 148ec13a0..3be9d2b7e 100644 --- a/src/components/app/study-paths/study-path-goal-modal.tsx +++ b/src/components/app/study-paths/study-path-goal-modal.tsx @@ -221,7 +221,7 @@ export default function StudyPathGoalModal({ user, studyPath, goal }: StudyPathG - + - Set a Goal + Set a Goal -

+

Set a goal date to complete this study path. Receive a daily reminder to complete the next question.

-

+

Your recommended completion date is{' '} {recommendedCompletionDate?.toLocaleDateString('en-US', { month: 'long', diff --git a/src/components/app/study-paths/study-path-sidebar.tsx b/src/components/app/study-paths/study-path-sidebar.tsx index 612b55d6e..12af9a60f 100644 --- a/src/components/app/study-paths/study-path-sidebar.tsx +++ b/src/components/app/study-paths/study-path-sidebar.tsx @@ -104,7 +104,7 @@ export default async function StudyPathSidebar({ studyPath }: { studyPath: Study

) : ( <> -

+

{Math.round( user?.studyPathEnrollments?.find((e) => e.studyPathUid === studyPath.uid) ?.progress ?? 0 @@ -112,7 +112,7 @@ export default async function StudyPathSidebar({ studyPath }: { studyPath: Study % completed

e.studyPathUid === studyPath.uid) ?.progress ?? 0 @@ -137,8 +137,8 @@ export default async function StudyPathSidebar({ studyPath }: { studyPath: Study />
-
-
+
+

Set a Goal

diff --git a/src/components/marketing/global/navigation/mobile-menu.tsx b/src/components/marketing/global/navigation/mobile-menu.tsx index dd3049b65..696e2e52c 100644 --- a/src/components/marketing/global/navigation/mobile-menu.tsx +++ b/src/components/marketing/global/navigation/mobile-menu.tsx @@ -9,6 +9,7 @@ import { HamburgerMenuIcon, Cross1Icon, ChevronDownIcon } from '@radix-ui/react- import { ArrowRight } from 'lucide-react'; import { cn } from '@/lib/utils'; import { useUser } from '@/hooks/use-user'; +import { ThemeToggle } from '@/components/theme-toggle'; interface MenuItem { label: string; @@ -165,6 +166,10 @@ export function MobileMenu() {
+
+ Theme + +
{isLoggedIn ? (