feat: auxiliary pages migrated to Next.js (Blog, Videos, Track, Success)
This commit is contained in:
1 parent
976dfcd610
commit
ee0b8a5ff8
8 files changed
+48
-15
No files matched your search
@@ -52,7 +52,10 @@ const ALL_VIDEOS = [
|
||||
}
|
||||
];
|
||||
|
||||
export default function VideosPage({ onBack }: { onBack: () => void }) {
|
||||
import { useRouter } from 'next/navigation';
|
||||
|
||||
export default function VideosPage() {
|
||||
const router = useRouter();
|
||||
const [selectedVideo, setSelectedVideo] = useState<typeof ALL_VIDEOS[0] | null>(null);
|
||||
const [search, setSearch] = useState("");
|
||||
|
||||
@@ -75,7 +78,7 @@ export default function VideosPage({ onBack }: { onBack: () => void }) {
|
||||
</h1>
|
||||
</div>
|
||||
<button
|
||||
onClick={onBack}
|
||||
onClick={() => router.push('/')}
|
||||
className="px-8 py-3 bg-white/5 border border-white/10 rounded-2xl text-white shadow-sm flex items-center gap-2 font-black hover:bg-white/10 transition-all"
|
||||
>
|
||||
<ChevronRight className="w-5 h-5" />
|
||||
|
||||
Reference in new issue
Block a user