-
-
Coming Soon
-
This page is under construction. Stay tuned for updates!
+const ComingSoon: React.FC = () => {
+ return (
+
+
Coming Soon
+
We're building this page. Check back shortly.
-
-);
+ );
+};
+
+export default ComingSoon;
+
+
-export default ComingSoon;
\ No newline at end of file
diff --git a/src/pages/ProtectedRoute.tsx b/src/pages/ProtectedRoute.tsx
new file mode 100644
index 0000000..cf97dd0
--- /dev/null
+++ b/src/pages/ProtectedRoute.tsx
@@ -0,0 +1,30 @@
+import React from 'react';
+import { Navigate } from 'react-router-dom';
+import { useAuth } from '@/contexts/AuthContext';
+
+interface ProtectedRouteProps {
+ children: React.ReactNode;
+}
+
+const ProtectedRoute: React.FC
= ({ children }) => {
+ const { user, loading } = useAuth();
+
+ if (loading) {
+ return (
+
+ );
+ }
+
+ if (!user) {
+ return ;
+ }
+
+ return <>{children}>;
+};
+
+export default ProtectedRoute;
diff --git a/src/pages/ResumeTemplateDetail.tsx b/src/pages/ResumeTemplateDetail.tsx
index 5a678b7..73203ca 100644
--- a/src/pages/ResumeTemplateDetail.tsx
+++ b/src/pages/ResumeTemplateDetail.tsx
@@ -498,3 +498,19 @@ const ResumeTemplateDetail: React.FC = () => {
};
export default ResumeTemplateDetail;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+