Changes
This commit is contained in:
parent
fd3e1ac8d7
commit
b8f6f38e8c
4 changed files with 468 additions and 0 deletions
28
src/pages/DominoRetilingPuzzlePage.tsx
Normal file
28
src/pages/DominoRetilingPuzzlePage.tsx
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import Layout from '@/components/Layout';
|
||||
import DominoRetilingPuzzle from '@/components/DominoRetilingPuzzle';
|
||||
import { useLocation, Link } from 'react-router-dom';
|
||||
import { ArrowLeft } from 'lucide-react';
|
||||
|
||||
const DominoRetilingPuzzlePage = () => {
|
||||
const location = useLocation();
|
||||
const fromPuzzles = location.search.includes('from=puzzles');
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
{fromPuzzles && (
|
||||
<div className="max-w-4xl mx-auto px-6 pt-4">
|
||||
<Link
|
||||
to="/themes/puzzles"
|
||||
className="inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors"
|
||||
>
|
||||
<ArrowLeft className="w-4 h-4 mr-1" />
|
||||
Back to Puzzles
|
||||
</Link>
|
||||
</div>
|
||||
)}
|
||||
<DominoRetilingPuzzle />
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
||||
export default DominoRetilingPuzzlePage;
|
||||
Loading…
Add table
Add a link
Reference in a new issue