-
Вход
-
+
);
};
diff --git a/ospabhost/src/pages/pricing.tsx b/ospabhost/src/pages/pricing.tsx
index 29f2117..afdb308 100644
--- a/ospabhost/src/pages/pricing.tsx
+++ b/ospabhost/src/pages/pricing.tsx
@@ -1,36 +1,44 @@
-import React from 'react';
-import Navbar from '../components/Navbar';
-import Footer from '../components/Footer';
-import Button from '../components/Button';
+import Navbar from "../components/Navbar";
+import { motion } from "framer-motion";
-export default function Pricing() {
+const Pricing: React.FC = () => {
const plans = [
- { name: "Мини", price: "200 р/мес", features: ["1 vCPU", "1GB RAM", "25GB SSD"] },
- { name: "Стандарт", price: "500 р/мес", features: ["2 vCPU", "2GB RAM", "50GB SSD"] },
- { name: "Профессионал", price: "700 р/мес", features: ["4 vCPU", "8GB RAM", "100GB SSD"] },
+ { title: "Basic VPS", price: "$5/мес", features: ["1 CPU", "1 GB RAM", "20 GB SSD"] },
+ { title: "Pro VPS", price: "$15/мес", features: ["2 CPU", "4 GB RAM", "50 GB SSD"] },
+ { title: "Enterprise", price: "$30/мес", features: ["4 CPU", "8 GB RAM", "100 GB SSD"] },
];
return (
-
-
{}} />
+
+
-
- Выбери свой тариф
-
- {plans.map(plan => (
-
-
{plan.name}
-
{plan.price}
-
- {plan.features.map(f => - ✅ {f}
)}
-
-
-
- ))}
+
+
+
Наши тарифы
+
+ {plans.map((plan, idx) => (
+
+ {plan.title}
+ {plan.price}
+
+ {plan.features.map((f, i) => (
+ - {f}
+ ))}
+
+
+
+ ))}
+
-
-
-
+
);
-}
+};
+
+export default Pricing;
diff --git a/ospabhost/src/pages/register.tsx b/ospabhost/src/pages/register.tsx
new file mode 100644
index 0000000..c082491
--- /dev/null
+++ b/ospabhost/src/pages/register.tsx
@@ -0,0 +1,77 @@
+import { useState } from "react";
+import { useAuth } from "../context/AuthContext";
+import { useNavigate } from "react-router-dom";
+import Navbar from "../components/Navbar";
+
+export default function Register() {
+ const { register } = useAuth();
+ const [name, setName] = useState("");
+ const [email, setEmail] = useState("");
+ const [password, setPassword] = useState("");
+ const [password2, setPassword2] = useState("");
+ const navigate = useNavigate();
+
+ const handleSubmit = (e: React.FormEvent) => {
+ e.preventDefault();
+ if (!name || !email || !password || !password2) {
+ alert("Заполните все поля");
+ return;
+ }
+ if (password !== password2) {
+ alert("Пароли не совпадают");
+ return;
+ }
+ if (register(name, email, password, password2)) {
+ navigate("/dashboard");
+ } else {
+ alert("Ошибка регистрации");
+ }
+ };
+
+ return (
+
+ );
+}