From b39350d5a778a58e82904693b5b6c86819f45291 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Wed, 26 Feb 2025 11:44:54 +0800 Subject: [PATCH] feat(layout): add footer components for ProblemDescription and ProblemSolution layouts --- .../@description/components/footer.tsx | 21 +++++++++++++++++++ .../@problem/@description/layout.tsx | 7 ++++++- .../@problem/@solution/components/footer.tsx | 21 +++++++++++++++++++ .../playground/@problem/@solution/layout.tsx | 7 ++++++- 4 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 src/app/(app)/playground/@problem/@description/components/footer.tsx create mode 100644 src/app/(app)/playground/@problem/@solution/components/footer.tsx diff --git a/src/app/(app)/playground/@problem/@description/components/footer.tsx b/src/app/(app)/playground/@problem/@description/components/footer.tsx new file mode 100644 index 0000000..c980eb9 --- /dev/null +++ b/src/app/(app)/playground/@problem/@description/components/footer.tsx @@ -0,0 +1,21 @@ +import { cn } from "@/lib/utils"; + +interface ProblemDescriptionFooterProps { + className?: string; +} + +export default function ProblemDescriptionFooter({ + className, + ...props +}: ProblemDescriptionFooterProps) { + return ( + + ); +} diff --git a/src/app/(app)/playground/@problem/@description/layout.tsx b/src/app/(app)/playground/@problem/@description/layout.tsx index bf5c67b..9045bad 100644 --- a/src/app/(app)/playground/@problem/@description/layout.tsx +++ b/src/app/(app)/playground/@problem/@description/layout.tsx @@ -1,3 +1,5 @@ +import ProblemDescriptionFooter from "./components/footer"; + interface ProblemDescriptionLayoutProps { children: React.ReactNode; } @@ -7,7 +9,10 @@ export default function ProblemDescriptionLayout({ }: ProblemDescriptionLayoutProps) { return (
- {children} +
+ {children} +
+
); } diff --git a/src/app/(app)/playground/@problem/@solution/components/footer.tsx b/src/app/(app)/playground/@problem/@solution/components/footer.tsx new file mode 100644 index 0000000..bac1e73 --- /dev/null +++ b/src/app/(app)/playground/@problem/@solution/components/footer.tsx @@ -0,0 +1,21 @@ +import { cn } from "@/lib/utils"; + +interface ProblemSolutionFooterProps { + className?: string; +} + +export default function ProblemSolutionFooter({ + className, + ...props +}: ProblemSolutionFooterProps) { + return ( + + ); +} diff --git a/src/app/(app)/playground/@problem/@solution/layout.tsx b/src/app/(app)/playground/@problem/@solution/layout.tsx index d3665b0..c5803d7 100644 --- a/src/app/(app)/playground/@problem/@solution/layout.tsx +++ b/src/app/(app)/playground/@problem/@solution/layout.tsx @@ -1,3 +1,5 @@ +import ProblemSolutionFooter from "./components/footer"; + interface ProblemSolutionLayoutProps { children: React.ReactNode; } @@ -7,7 +9,10 @@ export default function ProblemSolutionLayout({ }: ProblemSolutionLayoutProps) { return (
- {children} +
+ {children} +
+
); }