-
Notifications
You must be signed in to change notification settings - Fork 0
/
boxs.html
167 lines (146 loc) · 4.99 KB
/
boxs.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>تسجيل الدخول / إنشاء حساب</title>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #74b9ff, #a29bfe);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
background-color: white;
width: 900px;
border-radius: 20px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
display: flex;
overflow: hidden;
}
.form-container {
width: 50%;
padding: 40px;
display: flex;
flex-direction: column;
justify-content: center;
}
.form-container h2 {
margin-bottom: 20px;
color: #2d3436;
text-align: center;
}
.form-container input {
width: 100%;
padding: 12px;
margin: 10px 0;
border-radius: 8px;
border: 1px solid #ccc;
box-sizing: border-box;
}
.form-container input:focus {
border-color: #6c5ce7;
outline: none;
}
.form-container button {
width: 100%;
padding: 12px;
margin-top: 15px;
border: none;
border-radius: 8px;
background-color: #0984e3;
color: white;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease;
}
.form-container button:hover {
background-color: #74b9ff;
}
.switch-container {
width: 50%;
background-color: #6c5ce7;
color: white;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 40px;
transition: all 0.5s ease;
}
.switch-container h2 {
margin-bottom: 10px;
}
.switch-container p {
margin-bottom: 20px;
text-align: center;
}
.switch-container button {
background-color: white;
color: #6c5ce7;
border: none;
padding: 12px 24px;
border-radius: 8px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease;
}
.switch-container button:hover {
background-color: #dfe6e9;
}
/* التحويل بين النماذج */
.container.sign-up-mode .switch-container {
transform: translateX(-100%);
}
.container.sign-up-mode .form-container {
transform: translateX(100%);
}
.form-container, .switch-container {
transition: transform 0.5s ease;
}
</style>
</head>
<body>
<div class="container" id="container">
<!-- نموذج تسجيل الدخول -->
<div class="form-container" id="loginForm">
<h2>تسجيل الدخول</h2>
<form>
<input type="email" placeholder="البريد الإلكتروني" required>
<input type="password" placeholder="كلمة المرور" required>
<button type="submit">تسجيل الدخول</button>
</form>
</div>
<!-- نموذج إنشاء حساب -->
<div class="form-container" id="signUpForm" style="transform: translateX(100%);">
<h2>إنشاء حساب</h2>
<form>
<input type="text" placeholder="الاسم الكامل" required>
<input type="email" placeholder="البريد الإلكتروني" required>
<input type="password" placeholder="كلمة المرور" required>
<input type="password" placeholder="تأكيد كلمة المرور" required>
<button type="submit">إنشاء حساب</button>
</form>
</div>
<!-- قسم التبديل بين النماذج -->
<div class="switch-container">
<h2>مرحبًا بك!</h2>
<p>هل لديك حساب بالفعل؟</p>
<button onclick="toggleForms()">تسجيل الدخول</button>
<p>أو</p>
<button onclick="toggleForms()">إنشاء حساب جديد</button>
</div>
</div>
<script>
const container = document.getElementById('container');
function toggleForms() {
container.classList.toggle('sign-up-mode');
}
</script>
</body>
</html>